espressif/esptool-js

Upload of bin to esp32 DOIT DEVKIT doesn't work as expected

danielminson opened this issue · 5 comments

Hello, I am having trouble with the flashing process of specific board esp32 DOIT DEVKIT. Even with the upload process getting to 100%, the program flashed does not run even after resseting the board. The .bin file is attached as a zip and is a blink code (D2 turning on and off every second). I even tried flashing in different addresses 0x0 and 0x1000. Thank you for the attention.

Captura de tela 2023-02-17 121915
firmware.zip

I made it work with the writing address 0x00010000, but the process showed that the address was 0x1000 (as shown in the screeshot attached). I seem to understand that there's a problem with the setup, probably removing all the zeros.
image

igrr commented

Hi @danielminson,

The .bin file is attached as a zip and is a blink code (D2 turning on and off every second). I even tried flashing in different addresses 0x0 and 0x1000.

Your binary is an application binary. If you have built the binary using ESP-IDF or Arduino or PlatformIO, there are actually multiple binaries that need to be flashed:

  • the bootloader (at offset 0x1000)
  • the partition table (at offset 0x8000)
  • the application (the offset might be different, often it is 0x10000)

I made it work with the writing address 0x00010000, but the process showed that the address was 0x1000 (as shown in the screeshot attached)

I'm sorry, where exactly in the screenshot do you see 0x1000 (i.e. 4096, decimal)? The screenshot attached to your 2nd comment shows offset 0x10000 (i.e. 65536, decimal), which is the same as 0x00010000.

219697871-5ff12dc0-cb12-4bf8-a695-7f267e25eec5

Hello, my bad. I miswrote 1000 when it was supposed to be 10000. I did not know that I was supposed to flash 3 files.

There's any way to know if I always need to flash the bootloader file and the partition table (just flash the application file)?

igrr commented

If the bootloader and the partition table are already flashed and you know that you haven't changed either the bootloader settings (like flash DIO/QIO mode) or the partition table, then you can just reflash the application.

Okay. Thank you very mych