Hello Gaurav Banyal,
The FLASH_ReadResource API is for a special flash memory region called Flash IFR. In particular for the KL03 this region includes a 64 bytes Program Once Field. You can find details about Program Once Field in the Reference Manual.
There is no dedicated API for reading flash as you can simply do it with a pointer or any C code method. Following the logic of the example you could read the written data in a separate buffer like below:
uint32_t read_buffer[BUFFER_LEN];
uint32_t *flash_ptr;
flash_ptr = (uint32_t*)destAdrss;
for (i = 0; i < BUFFER_LEN; i++)
{
read_buffer[i] = *flash_ptr++;
}
I hope this helps to clarify.
Best Regards!,
Jorge Gonzalez
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------