File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -17,3 +17,4 @@ sdkconfig.old
17
17
version.txt
18
18
components /arduino_tinyusb /tinyusb /
19
19
dependencies.lock
20
+ tools /esptool /
Original file line number Diff line number Diff line change @@ -10,4 +10,11 @@ source ./tools/config.sh
10
10
echo " Copying bootloader: $AR_SDK /bin/bootloader_$BOOTCONF .bin"
11
11
12
12
mkdir -p " $AR_SDK /bin"
13
- cp " build/bootloader/bootloader.bin" " $AR_SDK /bin/bootloader_$BOOTCONF .bin"
13
+
14
+ # Workaround for getting the bootloaders to be flashable with esptool v4.x
15
+ # It might still be needed for IDF5, but using the included esptool instead
16
+ # cp "build/bootloader/bootloader.bin" "$AR_SDK/bin/bootloader_$BOOTCONF.bin"
17
+ if [ ! -e " tools/esptool" ]; then
18
+ git clone https://github.com/espressif/esptool tools/esptool
19
+ fi
20
+ ./tools/esptool/esptool.py --chip " $IDF_TARGET " elf2image --dont-append-digest " build/bootloader/bootloader.elf" -o " $AR_SDK /bin/bootloader_$BOOTCONF .bin"
You can’t perform that action at this time.
0 commit comments