LPC845 IAP flash

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC845 IAP flash

1,098 Views
LucaCalicchia
Contributor I

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

 

0 Kudos
Reply
2 Replies

1,082 Views
LucaCalicchia
Contributor I

Hi Jun Zhang,

thanks for the information.

I thought there was a dedicated function, but even so it works very well.

Thank you.

 

Luca

0 Kudos
Reply

1,085 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

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