LPC845 IAP flash

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

LPC845 IAP flash

1,100 次查看
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 项奖励
回复
2 回复数

1,084 次查看
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 项奖励
回复

1,087 次查看
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