You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This firmware uses [arduino-esp32](https://github.com/espressif/arduino-esp32/releases/tag/2.0.9)
4
+
5
+
## Building
6
+
7
+
```
8
+
./compile.sh
9
+
```
10
+
Running the compile script will:
11
+
12
+
1. Download the [arduino-esp32 v2.0.9 core](https://github.com/espressif/arduino-esp32/releases/tag/2.0.9) and build tools
13
+
2. Apply needed [patches](core_esp32.patch)
14
+
3. Compile the firmware using arduino-cli
15
+
4. Export binaries in the build directory inside the `UNOR4USBBridge` folder
16
+
17
+
The `compile.sh` script will produce a bunch of binary files that can be flashed using [esptool](https://github.com/espressif/esptool/releases) from the build directory:
The `export.sh` script will take care of generating a single binary blob including the TLS certificates bundle. Running the export script will:
30
+
31
+
1. Invoke the `compile.sh` script
32
+
2. Generate the certificate bundle using this [script](certificates/gen_crt_bundle.py) and this [certificates list](certificates/certificates.pem)
33
+
3. Combine everything in a single binary blob that can be flashed from address 0x0 using [espflash](https://github.com/esp-rs/espflash/releases)
34
+
35
+
```
36
+
espflash write-bin -b 115200 0x0 S3.bin
37
+
```
38
+
39
+
## Flashing
40
+
41
+
To flash the firmware the board needs to be in `ESP download` mode. This can be done [manually](unor4wifi-updater#option-2) or using the [unor4wifi-updater](unor4wifi-updater) script.
Copy file name to clipboardExpand all lines: unor4wifi-updater/README.md
+11-3Lines changed: 11 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,11 @@
1
+
# UNO R4 WiFi updater script
2
+
3
+
This updater script can be used to automatically put the UNO R4 WiFi in `ESP download` mode and upload the latest firmware.
4
+
5
+
The script uses [unor4wifi-reboot](unor4wifi-reboot) to put the board in `ESP download` mode through an HID message; and [espflash](https://github.com/esp-rs/espflash/releases) to flash the firmware bundle.
6
+
7
+
# How to use the script
8
+
1
9
## On Windows
2
10
* Extract the zip file
3
11
* Disconnect all USB gadgets from your PC
@@ -45,13 +53,13 @@ Running the script from the terminal instead of double click should avoid the co
0 commit comments