Skip to content

Commit 29f8a51

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

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
@@ -12,6 +12,21 @@ This firmware uses [Espressif's IDF](https://github.com/espressif/esp-idf)
1212
1. Load the `Tools -> SerialNINAPassthrough` example sketch on to the board
1313
1. Use `esptool` to flash the compiled firmware
1414

15+
### Building with docker
16+
17+
As an alternative for building we can use the docker image from espressif idf, we can do that as follows:
18+
19+
```
20+
docker run -v $PWD:/data espressif/idf:v3.3.1 -- sh -c 'cd /data && make'
21+
```
22+
23+
You can also flash the firmware with the following snippet:
24+
25+
```
26+
DEVICE=/dev/ttyACM0
27+
docker run --device=$DEVICE -v $PWD:/data espressif/idf:v3.3.1 -- sh -c 'cd /data && make flash ESPPORT=$DEVICE'
28+
```
29+
1530
## Notes
1631
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:
1732
```diff

0 commit comments

Comments
 (0)