AnsweredAssumed Answered

How to program Flash

Question asked by Quincy Wang on Jul 12, 2020
Latest reply on Jul 16, 2020 by Alice_Yang

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?

Attachments

Outcomes