LPC845 IAP flash

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC845 IAP flash

1,107件の閲覧回数
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,091件の閲覧回数
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,094件の閲覧回数
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