ESP8266 4MB with relay from "AI-cloud inside" : issues #19040
-
|
Bonjour is it possible to patch memory ? thanks for help |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 2 replies
-
|
Hello, The below may be relevant to the difference - but I did not directly verify this on hardware myself: Here is the breakdown of the first 4 bytes:
The difference is specifically at Byte 3. When you flash a .bin file to an ESP8266 using esptool.py write_flash, esptool typically auto-detects your physical flash memory size and speed and dynamically modifies Byte 2 and Byte 3 on the fly to match your hardware. However, when you run verify-flash, it compares the raw .bin file (which still has the generic defaults compiled into it, like 0x40 or 0x20) with the customized header now sitting on the chip. Because esptool patched the header during flashing, the verification fails at byte 3. |
Beta Was this translation helpful? Give feedback.
-
|
OK so the verify is 'good' |
Beta Was this translation helpful? Give feedback.
-
|
I have erased then write the memory. Maybe the esp8266 is slow for initialize the flash user memory, the global size is 4MB. I will more test. |
Beta Was this translation helpful? Give feedback.
-
|
hmm - just understanding that you may have a board with less flash than I assumed To see how much flash memory your board has run: if it is less than 2MB you will need a different firmware image. from the download page
based on the diff you shared earlier : 0x00000003 40 20
Meaning: When esptool flashed your board, it auto-detected that your specific ESP8266 actually only has a 1 MB flash chip. So you will need the Firmware (1MiB flash) firmware variant. |
Beta Was this translation helpful? Give feedback.
-
|
my 'esptool flash-id' is same as your. i will test with smaller firmware |
Beta Was this translation helpful? Give feedback.
-
|
with the first firmware , i dump this : so the memory size is 4MB. |
Beta Was this translation helpful? Give feedback.
-
|
you have still not shared what the command or tool is that you are flashing with |
Beta Was this translation helpful? Give feedback.
-
|
I did not follow the tracks, and _ do not know if you connect the ESP8266's TX directly to a dumb terminal or through an IDE. But it might be useful to try all flash mode options. For some low cost devices, using DOUT as flash mode worked, which otherwise would not boot. The sign of the wrong flash moder was usually, that after power on the device is in a reboot loop and spits out junk, at it's boot UART speed of 74880 baud. Normally. you would just see a short boot message at that speed. |
Beta Was this translation helpful? Give feedback.
-
|
all is good. wire issue at REPL. the chip has 4MB flash memory. the verify is KO/OK. question : why Micropython-xx.xx.xx AP (xx:xx:xx the right of mac address) and when is it started ? |
Beta Was this translation helpful? Give feedback.
all is good. wire issue at REPL. the chip has 4MB flash memory. the verify is KO/OK.
Thank's for help
question : why Micropython-xx.xx.xx AP (xx:xx:xx the right of mac address) and when is it started ?