Ok, from the debug info, it's really in SRAM.
Hi buddy, I want to clarify my requirement as follow:
For function secure system. Flash Driver, especially erase API , shouldn't be existent in P-flash. because:
1. may erase the application if erase API is excuted abnormally, the system will crash.
2. API provided by flash Driver can be used in the case we need to re-program.
3. Our the system architecture would be Flash Driver module should be removed from Application system. It will be loaded in SRAM and then call the related service when bootloader want to upgrade the application.
Please feed back if any isn't clear!