Hello,
hello,
I'm writing about the LPC845 microcontroller.
In particular I need to save data / variables in flash memory. I am using the provided iap_flash sdk as an example.
The problem is that this example shows how to write and erase a memory sector. My question is: can I also read back this data?
thank you,
Luca
Hi Jun Zhang,
thanks for the information.
I thought there was a dedicated function, but even so it works very well.
Thank you.
Luca
HI LucaCalicchia,
For example, you can use below code to read data from address 0x00003800:
volatile uint32_t get_value;
get_value = *(uint32_t *)0x00003800;
Hope this helps,
Jun Zhang