How to program Flash

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

How to program Flash

1,914件の閲覧回数
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,799件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Quincy Wang,

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

Regards,

Alice

0 件の賞賛
返信

1,800件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Quincy Wang,

Please tell me which chip or board,thanks!

Regards,

Alice

0 件の賞賛
返信

1,800件の閲覧回数
wangqyfm
Contributor II

LPC55S69.

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

0 件の賞賛
返信