From da5fd75fd9047c5206725212da791386609002ec Mon Sep 17 00:00:00 2001 From: Thomas Basler Date: Mon, 19 Sep 2022 22:25:04 +0200 Subject: [PATCH] Add all required bin files to artifacts and add documentation regarding target addresses --- .github/workflows/build.yml | 2 ++ README.md | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6d6f602..e4d83f3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -109,6 +109,8 @@ jobs: path: | .pio/build/${{ matrix.environment }}/opendtu-${{ matrix.environment }}.bin .pio/build/${{ matrix.environment }}/partitions.bin + ~/.platformio\packages\framework-arduinoespressif32\tools\sdk\esp32\bin\bootloader_dio_40m.bin + ~/.platformio\packages\framework-arduinoespressif32\tools\partitions\boot_app0.bin release: name: Create Release diff --git a/README.md b/README.md index 06dfeec..960b027 100644 --- a/README.md +++ b/README.md @@ -118,6 +118,16 @@ This can be achieved by editing the 'platformio.ini' file and add/change one or * other options: * clean the sources: `platformio run -e generic -t clean` * erase flash: `platformio run -e generic -t erase` +### using the pre-compiled .bin files +* Use a ESP32 flash tool of your choice and flash the .bin files to the right addresses: +| Address | File | +| ---------| ------------- | +| 0x1000 | bootloader_dio_40m.bin | +| 0x8000 | partitions.bin | +| 0xe000 | boot_app0.bin | +| 0x10000 | firmware.bin | + +Make sure too uncheck the DoNotChgBbin option. Otherwise you will maybe get errors like "invalid header" ## First configuration * After the initial flashing of the microcontroller, an Access Point called "OpenDTU-*" is opened. The default password is "openDTU42".