From d75ac167fa0747290488fee3cecb5b4ff4748657 Mon Sep 17 00:00:00 2001 From: Thomas Basler Date: Sat, 31 Dec 2022 12:57:06 +0100 Subject: [PATCH] Fix building with platform-espressif32 5.3.0 The bootloader.bin is placed in the build output directory by the build script --- .github/workflows/build.yml | 5 +---- README.md | 4 ++-- platformio.ini | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b4a6f403..03333959 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -98,16 +98,13 @@ jobs: - name: Copy 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 with: name: opendtu-${{ matrix.environment }} path: | .pio/build/${{ matrix.environment }}/opendtu-${{ matrix.environment }}.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 - uses: actions/upload-artifact@v3 diff --git a/README.md b/README.md index fb1edd5c..226930f1 100644 --- a/README.md +++ b/README.md @@ -147,7 +147,7 @@ Use a ESP32 flash tool of your choice (see next chapter) and flash the `.bin` fi | Address | File | | ---------| ---------------------- | -| 0x1000 | bootloader_dio_40m.bin | +| 0x1000 | bootloader.bin | | 0x8000 | partitions.bin | | 0xe000 | boot_app0.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 \ write_flash --flash_mode dout --flash_freq 40m --flash_size detect \ - 0x1000 bootloader_dio_40m.bin \ + 0x1000 bootloader.bin \ 0x8000 partitions.bin \ 0xe000 boot_app0.bin \ 0x10000 opendtu-generic.bin diff --git a/platformio.ini b/platformio.ini index 1f73180c..0cab6017 100644 --- a/platformio.ini +++ b/platformio.ini @@ -15,7 +15,7 @@ extra_configs = [env] framework = arduino -platform = espressif32@>=5.2.0 +platform = espressif32@>=5.3.0 build_flags = -D=${PIOENV}