ESP8266 Developer Zone The Official ESP8266 Forum 2017-05-10T15:56:34+08:00 https://bbs.espressif.com:443/feed.php?f=66&t=4393 2017-05-10T15:56:34+08:00 2017-05-10T15:56:34+08:00 https://bbs.espressif.com:443/viewtopic.php?t=4393&p=12943#p12943 <![CDATA[Re: Flash reading cause MCU reset]]> Statistics: Posted by pml1hc — Wed May 10, 2017 3:56 pm


]]>
2017-05-10T15:55:38+08:00 2017-05-09T11:05:28+08:00 https://bbs.espressif.com:443/viewtopic.php?t=4393&p=12916#p12916 <![CDATA[Flash reading cause MCU reset]]>
I'm trying to read 1239 bytes from flash. But after read, MCU is reset.
So does anyone had facing with this problem.
I try to using both pointer and array but the same problem.

Please help me.

My code:

spi_flash_read(0x92000, &u32AtCertsLength, sizeof(uint32));
unsigned char *uint8AtCertbuf2 = (unsigned char*)malloc(u32AtCertsLength);
readATCertfromFlash(0x92000, uint8AtCertbuf2, u32AtCertsLength);

I'm using nodeMCU 32Mbit with memory layout was set 1024+1024 for allow OTA

Statistics: Posted by pml1hc — Tue May 09, 2017 11:05 am


]]>