How to merge the ESP32 S3's single tool to adapt the burn-in tool for burn-in

Issue #547 resolved
xixicarry created an issue

Hi John, How to merge a single firmware for ESP32 S3? This code can successfully merge the firmware of ESP32, but it can't be reused on the motherboard of ESP32 S3, how to adapt it?

esptool.py --chip ESP32 merge_bin -o merged-flash.bin --flash_mode dio --flash_size 4MB 0x1000 esp32/bootloader_dio_40m.bin 0x8000 esp32/partitions2MB.bin 0xe000 esp32/boot_app0.bin 0x10000 .pio/build/ESP32/firmware.bin

Comments (5)

  1. John Maloney repo owner

    You might not need to use ESPTool. If you run the pilot release of MicroBlocks and connect the board via a USB cable, you can just drop a MicroBlocks firmeware .bin file for the ESP32-S3 onto the MicroBlocks IDE to install it.

    Wenjie may have already incorporated this feature into the Chinese version of MicroBlocks but if he hasn't you can run the pilot release in the browser:

    https://microblocks.fun/run-pilot/microblocks.html

    You can get the latest MicroBlocks firmware for the ESP32-S3 here:

    https://microblocks.fun/downloads/pilot/vm/vm_esp32-s3.bin

    This installation technique will also work with custom versions of the MicroBlocks firmware (e.g. a .bin file created with mergebin); you just need the .bin file.

    Another option (which works only in a Chrome/Edge browser) is to use the advanced command "install ESP firmware from URL" command in the gear menu and paste the link above for the ESP32-S3.

    I haven't used mergebin so I'm not sure how to modify it for the ESP32-S3. Documentation for it is here:

    https://docs.espressif.com/projects/esptool/en/latest/esp32c3/esptool/basic-commands.html#merge-binaries-for-flashing-merge-bin

  2. Wenjie Wu

    xixicarry do you want to merge it and use some special tools to batch burn the firmware? I remember you had this requirement before. You can try:

    esptool.py --chip ESP32-S3 merge_bin -o merged-flash.bin --flash_mode dio --flash_size 4MB 0x0 esp32/bootloader_s3.bin 0x8000 esp32/partitionsMicroBlocks.bin 0xe000 esp32/boot_app0.bin 0x10000 .pio/build/longan-core-S3/firmware.bin
    

    you need to replace .pio/build/esp32/firmware.bin

  3. Log in to comment