Fix building with platform-espressif32 5.3.0

The bootloader.bin is placed in the build output directory by the build script
This commit is contained in:
Thomas Basler 2022-12-31 12:57:06 +01:00
parent 8372d167f4
commit d75ac167fa
3 changed files with 4 additions and 7 deletions

View File

@ -98,16 +98,13 @@ jobs:
- name: Copy boot_app0.bin - name: Copy boot_app0.bin
run: cp ~/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin .pio/build/${{ matrix.environment }}/boot_app0.bin run: cp ~/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin .pio/build/${{ matrix.environment }}/boot_app0.bin
- name: Copy bootloader_dio_40m.bin
run: cp ~/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/bin/bootloader_dio_40m.bin .pio/build/${{ matrix.environment }}/bootloader_dio_40m.bin
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3
with: with:
name: opendtu-${{ matrix.environment }} name: opendtu-${{ matrix.environment }}
path: | path: |
.pio/build/${{ matrix.environment }}/opendtu-${{ matrix.environment }}.bin .pio/build/${{ matrix.environment }}/opendtu-${{ matrix.environment }}.bin
.pio/build/${{ matrix.environment }}/partitions.bin .pio/build/${{ matrix.environment }}/partitions.bin
.pio/build/${{ matrix.environment }}/bootloader_dio_40m.bin .pio/build/${{ matrix.environment }}/bootloader.bin
.pio/build/${{ matrix.environment }}/boot_app0.bin .pio/build/${{ matrix.environment }}/boot_app0.bin
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3

View File

@ -147,7 +147,7 @@ Use a ESP32 flash tool of your choice (see next chapter) and flash the `.bin` fi
| Address | File | | Address | File |
| ---------| ---------------------- | | ---------| ---------------------- |
| 0x1000 | bootloader_dio_40m.bin | | 0x1000 | bootloader.bin |
| 0x8000 | partitions.bin | | 0x8000 | partitions.bin |
| 0xe000 | boot_app0.bin | | 0xe000 | boot_app0.bin |
| 0x10000 | opendtu-*.bin | | 0x10000 | opendtu-*.bin |
@ -158,7 +158,7 @@ For further updates you can just use the web interface and upload the `opendtu-*
``` ```
esptool.py --port /dev/ttyUSB0 --chip esp32 --before default_reset --after hard_reset \ esptool.py --port /dev/ttyUSB0 --chip esp32 --before default_reset --after hard_reset \
write_flash --flash_mode dout --flash_freq 40m --flash_size detect \ write_flash --flash_mode dout --flash_freq 40m --flash_size detect \
0x1000 bootloader_dio_40m.bin \ 0x1000 bootloader.bin \
0x8000 partitions.bin \ 0x8000 partitions.bin \
0xe000 boot_app0.bin \ 0xe000 boot_app0.bin \
0x10000 opendtu-generic.bin 0x10000 opendtu-generic.bin

View File

@ -15,7 +15,7 @@ extra_configs =
[env] [env]
framework = arduino framework = arduino
platform = espressif32@>=5.2.0 platform = espressif32@>=5.3.0
build_flags = build_flags =
-D=${PIOENV} -D=${PIOENV}