warp-more-hardware / esp32-firmware

TinkerForge WARP software for more hardware
14 stars 1 forks source link

The PlatformIO upload target for the warpAC011K build environment is broken #27

Closed bs-github closed 1 year ago

bs-github commented 1 year ago

The PlatformIO upload target for the warpAC011K build environment is broken

% pio run -e warpAC011K --upload-port /dev/ttyUSB0 -t upload

builds the right firmware, but the upload is (probably due to the not properly working pio extra_script.py) not working properly.

To Reproduce

Steps to reproduce the behavior:

  1. run % pio run -e warpAC011K --upload-port /dev/ttyUSB0 -t upload with no OTA target reachable via 10.0.0.1

Expected behaviour

Successful uploaded firmware via serial.

Screenshots & Logfiles

interesting lines:

Uploading .pio/build/warpAC011K/firmware.bin
There is no AC011K WARP at 10.0.0.1, skip OTA flashing "/home/michelepa/draft/warp/esp32-firmware/software/build/warpAC011K_firmware_2_0_11_63d78fd5_merged.bin"
see the log ``` Advanced Memory Usage is available via "PlatformIO Home > Project Inspect" RAM: [== ] 20.2% (used 66228 bytes from 327680 bytes) Flash: [===== ] 47.3% (used 1797529 bytes from 3801088 bytes) Building .pio/build/warpAC011K/firmware.bin esptool.py v4.4 Creating esp32 image... Merged 25 ELF sections Successfully created esp32 image. Copying /home/michelepa/draft/warp/esp32-firmware/software/.pio/build/warpAC011K/firmware.bin Merging firmware.bin esptool.py v4.4 Wrote 0x1c7410 bytes to file build/warpAC011K_firmware_2_0_11_63d78fd5_merged.bin, ready to flash to offset 0x1000 Configuring upload protocol... AVAILABLE: cmsis-dap, custom, esp-bridge, esp-prog, espota, esptool, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa CURRENT: upload_protocol = custom Uploading .pio/build/warpAC011K/firmware.bin There is no AC011K WARP at 10.0.0.1, skip OTA flashing "/home/michelepa/draft/warp/esp32-firmware/software/build/warpAC011K_firmware_2_0_11_63d78fd5_merged.bin" ========================================================= [SUCCESS] Took 32.90 seconds ========================================================= Environment Status Duration ------------- -------- ------------ warpAC011K SUCCESS 00:00:32.905 ========================================================== 1 succeeded in 00:00:32.905 ========================================================== ```

Additional context

PlatformIO extra scripts

bs-github commented 1 year ago

Unfortunately this is still broken. Now calling pio run -e warpAC011K -a 10.0.0.1 -t ota does not merge the firmware (does not call the post:merge_firmware_hook.py)