ESP8266 Developer Zone The Official ESP8266 Forum 2016-10-04T04:47:08+08:00 https://bbs.espressif.com:443/feed.php?f=65&t=2835 2016-10-04T04:47:08+08:00 2016-10-04T04:47:08+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2835&p=10050#p10050 <![CDATA[Re: spi_flash_read fails above 512K for a 4M flash]]> I never read two byte. If you check the log again you 'll notice FE was warped to FC in order to read four bytes.

Statistics: Posted by sake402 — Tue Oct 04, 2016 4:47 am


]]>
2016-10-02T12:01:28+08:00 2016-10-02T12:01:28+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2835&p=10029#p10029 <![CDATA[Re: spi_flash_read fails above 512K for a 4M flash]]> That might solve your issue.

Statistics: Posted by Guest — Sun Oct 02, 2016 12:01 pm


]]>
2016-10-02T04:24:44+08:00 2016-10-02T04:24:44+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2835&p=10024#p10024 <![CDATA[Re: spi_flash_read fails above 512K for a 4M flash]]>
And the second line means the address is adjusted to 4 byte alignment before reading

Statistics: Posted by sake402 — Sun Oct 02, 2016 4:24 am


]]>
2016-10-01T11:12:12+08:00 2016-10-01T11:12:12+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2835&p=10017#p10017 <![CDATA[Re: spi_flash_read fails above 512K for a 4M flash]]>
What does the size:2 mean in your log? Does it mean you are reading 2 bytes?

Statistics: Posted by Guest — Sat Oct 01, 2016 11:12 am


]]>
2016-10-01T01:36:57+08:00 2016-10-01T01:36:57+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2835&p=10015#p10015 <![CDATA[spi_flash_read fails above 512K for a 4M flash]]>
Reading flash below 512k is successful, but not above.

I confirmed that the flash is 4M with esp_tool

Code:

esptool.py v1.2-dev
Connecting...
Manufacturer: ef
Device: 4016


And I successfully loaded a 128KBytes spiff binary at address 0x3D7000

Code:

esptool.py --port COM1 write_flash 0x3D7000 output/data.bin
esptool.py v1.2-dev
Connecting...
Running Cesanta flasher stub...
Writing 131072 @ 0x3d7000... 0 (0 %)
Wrote 131072 bytes at 0x3d7000 in 11.7 seconds (89.7 kbit/s)...
Leaving...


But in the code, attempting to read the spiff binary fails

Code:

SPIFF: Reading flash address: 0x3d70fe size: 2
SPIFF: Reading flash fails @ address 0x3d70fc


I am using the RTOS SDK

Statistics: Posted by sake402 — Sat Oct 01, 2016 1:36 am


]]>