Hi
I'm learning to use the sd_flash_write function to write words into flash memory. I've the SD enabled, but not advertising, so I'm able to debug. Scheduler is also initialized.
What I get, it is than when executing this little code:
buf[4] = {0, 0, 0, 0};
for(i=10; i<256;i++){
buf[0] = i;
res = sd_flash_write(FLASH_DIR_LAST_PAGE+(i*4), (uint32_t *)buf, 1);
TIMER_BASE_Delay(1000);
}
my SW hangs hangs and resets after 9 words written. The 10th word is which hangs the SW. Any idea??? Note than I'm waiting about 1 second between each write operation.
For now, I'm trying to handle the flash memory whitout using the pstorage module. Should I use it?
Thanks in advance
Elena