esptool-js icon indicating copy to clipboard operation
esptool-js copied to clipboard

Using this tool to burn MicroPython firmware on ESP8266 always fails

Open drbdrb opened this issue 2 years ago • 12 comments

I use https://espressif.github.io/esptool-js/ to burn MicroPython firmware, version [v1.21.0 (2023-10-05) .bin](http://www.micropython.org/resources/firmware /ESP8266_GENERIC-20231005-v1.21.0.bin), the programming can work normally, but the chip cannot run normally after burning. So far, I have also tried to use esptool.py to burn this firmware. Using esptool.py to burn the same firmware is It can run normally, but burning using esptool.js tool does not work. Hope the author can solve this problem?

drbdrb avatar Nov 29 '23 01:11 drbdrb

Can you provide more detail what issue are you facing with esptool-js @drbdrb ?

brianignacio5 avatar Dec 06 '23 11:12 brianignacio5

It's like this, I use: https://espressif.github.io/esptool-js/ The tool always fails to burn the official firmware of micropython for ESP8266, and the chip cannot function properly after burning! However, using the esptool. py tool to burn the same official firmware for micropython can still run normally.

The burning addresses are all: 0x0000, and the firmware is the same. You can download from this address: https://www.micropython.org/resources/firmware/esp8266_generic-20231005-v1.21.0.bin

I found that when using the esptool. py tool, I need to set the -- flash_ Size=detect is set to: detect, but I changed the flash in the esptool js tool_ Size='detect 'is still unsuccessful.

The chip is ESP8266EX,

Burn write baud rate: 115200,

Location: 0x0000

I recorded a video and sent it to your @brianignacio5 email. Please check and help me see what caused this error?

drbdrb avatar Dec 09 '23 11:12 drbdrb

What did the author do recently? This project hasn't been updated for almost two months? Is there any hope of solving the problem I mentioned above?

drbdrb avatar Jan 20 '24 03:01 drbdrb

@drbdrb esptool.py flash size detect reads out the real flash size from the connected device and patches the firmware. This is not done by esptool.js This is as designed and described and not a bug. You have to flash a firmware with the firmware size built which matches the device flash size.

Jason2866 avatar Jan 29 '24 15:01 Jason2866