ESP8266 Developer Zone The Official ESP8266 Forum 2016-10-01T01:09:36+08:00 https://bbs.espressif.com:443/feed.php?f=6&t=2474 2016-10-01T01:09:36+08:00 2016-10-01T01:09:36+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2474&p=10013#p10013 <![CDATA[Re: SPI Flash Size 0x1440ef]]>
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:09 am


]]>
2016-07-28T11:23:25+08:00 2016-07-28T11:23:25+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2474&p=8162#p8162 <![CDATA[Re: SPI Flash Size 0x1440ef]]>
If I had this problem, I'd try to see if I can upload a BIN file to addresses above 512kB and see if it was programmed successfully.
I doubt there is something wrong with the ESP8266 or the SDK, because if you can read the initial 512kB, it means that the timing and interface is being driven properly by the ESP8266. But just in case, you may try compiling with an earlier SDK as well.

Please keep me updated on this. This seems like an unusual problem.

Regards,
Pratik Panda

Statistics: Posted by Guest — Thu Jul 28, 2016 11:23 am


]]>
2016-07-26T19:19:22+08:00 2016-07-26T19:19:22+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2474&p=8140#p8140 <![CDATA[Re: SPI Flash Size 0x1440ef]]>
Thank you for your reply. The flash chip has the following written on it: 8C429 0G1014 and the supplier has replied confirming the 1MBytes size, but I still cannot read from positions above 512K. Is there a table where I can check the manufacturer / ID / size of chip? Is there any other software mechanism of some sort that might prevent reading from flash? Why are there ESP-09 and RSP-09 modules on market right now?

Looking forward to hearing from you soon,

Pedro

Statistics: Posted by skywave — Tue Jul 26, 2016 7:19 pm


]]>
2016-07-26T14:46:54+08:00 2016-07-26T14:46:54+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2474&p=8129#p8129 <![CDATA[Re: SPI Flash Size 0x1440ef]]>
I do not have a 1MB flash at hand right now, but I tried to read from a 32Mbit flash from places where the code is stored (like it would be on a 1MB flash at 512kB address), and also from unused addresses as shown in the logs here.
You can read the entire flash, both using IRAM or ICACHE type functions, at any location irrespective of where your program is stored.
I would simply doubt the authenticity of the ESP-xx modules! There is a lot of non-standard stuff being used in there. Try using your program on another ESP module and let me know if it works...

Flash read with ICACHE_FLASH_ATTR:
Flash ID: 1458337
Reading from 0x00000100:READ OK
Reading from 0x00001040:READ OK
Reading from 0x00200000:READ OK

Flash read with IRAM_ATTR:
Flash ID: 1458337
Reading from 0x00000100:READ OK
Reading from 0x00001040:READ OK
Reading from 0x00200000:READ OK

Flash read test completed...

Statistics: Posted by Guest — Tue Jul 26, 2016 2:46 pm


]]>
2016-07-26T02:20:18+08:00 2016-07-26T02:20:18+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2474&p=8118#p8118 <![CDATA[SPI Flash Size 0x1440ef]]>
I'm developing a project with the ESP-09 module. When I read the Flash ID it returns: 0x1440ef - I presume this means (0xEF) Winbond (4014) 8MBit -> 1Mbytes Flash chip. However when I try to read from positions above 512K for instance:
spi_flash_read(524288, (uint32 *)b, 128); the read fails with code SPI_FLASH_RESULT_ERR. I am doing something wrong? Shouldn't I be able to read and/or write positions above the 512K threshold or am I mistaken about the flash size?

Looking forward to hearing from you soon,

Pedro

Statistics: Posted by skywave — Tue Jul 26, 2016 2:20 am


]]>