Flash reading cause MCU reset

pml1hc
Posts: 2
Joined: Tue May 09, 2017 9:10 am

Flash reading cause MCU reset

Postby pml1hc » Tue May 09, 2017 11:05 am

Hello all, I'm using RTOS_SDK.

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
Last edited by pml1hc on Wed May 10, 2017 3:55 pm, edited 1 time in total.

pml1hc
Posts: 2
Joined: Tue May 09, 2017 9:10 am

Re: Flash reading cause MCU reset

Postby pml1hc » Wed May 10, 2017 3:56 pm

Hello, Any help?

Who is online

Users browsing this forum: No registered users and 2 guests