B4R Question ESP32 .bin flashing

peacemaker

Expert
Licensed User
Longtime User
Hi, All

For ESP8266 it is simple: B4R compiles by Arduino the single binary file src.ino.bin of the firmware to be flashed into the IC.
For ESP32 i see the generated the binary ones:
  • src.ino.bootloader.bin
  • src.ino.bin
  • src.ino.partitions.bin
  • src.ino.elf (biiig one)
and text partitions.csv:

# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x5000,
otadata, data, ota, 0xe000, 0x2000,
app0, app, ota_0, 0x10000, 0x140000,
app1, app, ota_1, 0x150000,0x140000,
spiffs, data, spiffs, 0x290000,0x160000,
coredump, data, coredump,0x3F0000,0x10000,

But what is the file for OTA manual update ?
How to distribute the firmware for a remote update by 3rd party user ?

If to use a B4J UART flasher - what file\how to flash ?

UPD: found about esptool, but B4R generated only 3 .bin files instead of the needed 4 - how to be ?
 
Last edited:

peacemaker

Expert
Licensed User
Longtime User
<PATH>/esptool.exe --chip esp32 --port <PORT> --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0xe000 <PATH>/boot_app0.bin 0x1000 <PATH>/bootloader_qio_80m.bin 0x10000 <PATH>/Sketch-Name.ino.bin 0x8000 <PATH>/Sketch-Name.ino.partitions.bin

Why no bootloader_qio_80m.bin file ?
UPD: ok, it's clear that it depends on the board memory configuration...
@Erel , is it possible that B4R IDE to be copying this 4th .bin file into the output folder together with all other your compile ?
There is the task to merge all .bin files into a single one, for batch flashing.

SOLVED: https://www.b4x.com/android/forum/threads/esp32-bin-merging-and-flashing.149181/
 
Last edited:
Upvote 0
Top