How to program Flash

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

How to program Flash

1,839 次查看
wangqyfm
Contributor II

I want to program internal Flash (address: 0x10018000 ~ 0x10018200 ), but FLASH_Erase return 102...

The code is running in (or under ?) S-state, I modified it from demo "trustzone_examples\hello_world" in SDK 2.7.1.

Steps:

1. Import trustzone_examples\hello_world into MCUXpresso IDE.

2. Replace 'hello_world_s.c' by 'iap_flash.c', from demo "driver_examples\flashiap".

3. Add "iap1" in Manage SDK components.

4. Compile, OK.

5. Debug code, and FLASH_Erase return 102...

Is there some bugs, or mistake in my code?

标签 (1)
标记 (1)
0 项奖励
回复
3 回复数

1,724 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Quincy Wang,

Change the address  0x10018000 to 0x00018000, it will work well.

Regards,

Alice

0 项奖励
回复

1,725 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Quincy Wang,

Please tell me which chip or board,thanks!

Regards,

Alice

0 项奖励
回复

1,725 次查看
wangqyfm
Contributor II

LPC55S69.

And the RTOS is zephyr, build with board: 'lpcxpresso55s69'.

0 项奖励
回复