espressif / esptool-js

Javascript implementation of flasher tool for Espressif chips, running in web browser using WebSerial.
https://espressif.github.io/esptool-js/
Apache License 2.0
276 stars 108 forks source link

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

Closed danielminson closed 1 year ago

danielminson commented 1 year ago

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

danielminson commented 1 year ago

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 1 year ago

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:

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

danielminson commented 1 year ago

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 1 year ago

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.

danielminson commented 1 year ago

Okay. Thank you very mych