Hi All,
I have tried to access the flash using flashctl examples. I can write to the memory, but there are no examples for reading data from flash memory.
Could you please provide some guidance to complete the reading task?
Kind regards
Staneslouse
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi All,
I have tried to access the flash using flashctl examples. I can write to the memory, but there are no examples for reading data from flash memory.
Could you please provide some guidance to complete the reading task?
Kind regards
Staneslouse
Hi Staneslouse,
Please take a look at this thread (the beginning, it later discusses a separate issue) and let me know if this resolves your problem.
Thanks!
Hi Dylan,
I have tried following method to read the flash but unfortunately, stuck inside the Default_Handler.
void eepromReadByte(uint32_t address)
{
/* 32-bit write to flash in main memory */
gData32Read = *(uint32_t *)( address +16 );
}
kind regards
Staneslouse
What is the address you are trying to read? Considering you jumped to the default handler, I am wondering if you tried to read an address that does not exist on the device. You may want to try debugging and assigning "*(uint32_t *)( address +16 );" to a variable so you can see its value before executing the read, then checking that value against the memory map in the datasheet.