Skip to content

Commit 9d2872a

Browse files
added another instruction to build the firmware based on espressif/idf docker image
1 parent c7d2a08 commit 9d2872a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

+15
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,21 @@ This firmware uses [Espressif's IDF](https://github.com/espressif/esp-idf)
1616
1. Load the `Tools -> SerialNINAPassthrough` example sketch on to the board
1717
1. Use `esptool` to flash the compiled firmware
1818

19+
### Building with docker
20+
21+
As an alternative for building we can use the docker image from espressif idf, we can do that as follows:
22+
23+
```
24+
docker run -v $PWD:/data espressif/idf:v3.3.1 -- sh -c 'cd /data && make'
25+
```
26+
27+
You can also flash the firmware with the following snippet:
28+
29+
```
30+
DEVICE=/dev/ttyACM0
31+
docker run --device=$DEVICE -v $PWD:/data espressif/idf:v3.3.1 -- sh -c 'cd /data && make flash ESPPORT=$DEVICE'
32+
```
33+
1934
## Notes
2035
If updating the NINA firmware for an **Arduino UNO WiFi Rev. 2** or **Arduino Nano RP2040** board via [SerialNINAPassthrough](https://github.com/arduino-libraries/WiFiNINA/blob/master/examples/Tools/SerialNINAPassthrough/SerialNINAPassthrough.ino) sketch, then the `esptool` invocation needs to be changed slightly:
2136
```diff

0 commit comments

Comments
 (0)