diff --git a/.github/workflows/platformio_build.yml b/.github/workflows/platformio_build.yml index 88b7486..698f588 100644 --- a/.github/workflows/platformio_build.yml +++ b/.github/workflows/platformio_build.yml @@ -19,11 +19,14 @@ jobs: python-version: '3.11' - name: Install PlatformIO Core run: pip install --upgrade platformio - + - name: Install ESPtool + run: pip install esptool - name: Build PlatformIO Project run: pio run + - name: Combine into single file + run: esptool.py --chip esp32c3 merge_bin -o fw.bin --flash_size 4MB 0x1000 .pio/build/mini_c3/bootloader.bin 0x8000 .pio/build/mini_c3/partitions.bin 0x10000 .pio/build/mini_c3/firmware.bin - name: Upload esp32c3 uses: actions/upload-artifact@v4 with: - path: .pio/build/mini_c3/firmware.bin - name: firmware-esp32c3.bin + path: ./fw.bin + name: esp32c3-4mb diff --git a/README.md b/README.md index a083919..c76f3e2 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ At first, I'd recommend soldering all the components together. ## Flashing instructions -1. Download the latest build [here](https://nightly.link/mawoka-myblock/td-free/workflows/platformio_build/main/firmware-esp32c3.bin.zip). +1. Download the latest build [here](https://nightly.link/mawoka-myblock/td-free/workflows/platformio_build/main/esp32c3-4mb.zip). They are directly built by GitHub. 2. Extract the downloaded zip file. 3. Install esp-tool.