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?
LPC55S69.
And the RTOS is zephyr, build with board: 'lpcxpresso55s69'.