-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1MB PUYA flash chip is not flashed correctly (ESPTOOL-88) #391
Comments
Hi @lordneon, It looks like PUYA flash chips have some unusual behaviours when erased/written. compared to most SPI NOR flash chips. The Arduino ESP8266 project has already added a "quirk" to deal with them in particular: If you try either one of these commands, do you have any further success:
(For the no-stub option, you'll need to run the verify_flash command afterwards to check the flash succeeded as only the stub reads back the contents and checks the MD5Sum). I'll try to get hold of an ESP-01 module with a PUYA flash chip myself, for further testing. |
Hi @projectgus thanks for your response. So with --no-compress flag I get the same checksum error. With the --no-stub option I get the fatal error: "A fatal error occurred: Failed to write to target Flash after seq 18 (result was 0108)" This occurs when I set the baudrate to 9400 as well. Anything else I can try?
|
Hello, has any progress been made on this issue? My friend has a ESP-01 with the puya chip and we have been trying to flash it for some weeks now and the flashing always fails midway. We have been searching the Web for a solution and it seems that we need either a build of the firmware that supports puya or a flashing tool that knows how to flash the chip correctly. I don't have the chip on me right now but I would provide any info requested. |
Hello everyone, |
Flash Chip: PUYA P25D80H (DS: http://www.lightchip.net.cn/inc/lib/product/download.php?ProId=98 )
Full esptool.py command line as run:
esptool.py --port /dev/ttyUSB0 write_flash -fm dout --flash_size=detect 0 esp8266-20180511-v1.9.4.bin
Full output from esptool.py (please copy and paste all lines of output)
What is the expected behaviour?
Successfully writing the firmware.
Do you have any other information from investigating this?
Writing 512k firmware works fine:
The detected flash chip is different to what is physically on the board:
Does anyone have any suggestions on why I am not able to write a 1MB image to a 1MB chip?
The text was updated successfully, but these errors were encountered: