Is it posible to copy the Flash API from the C28023 Boot ROM to RAM and execute it there ?
The Flash API Samples either user the API from ROM directly or link the API Library and copy the Library from Flash.
If I use the Linker File Definitions from teh Example together with the ROM API Symbol Library the Symbols Flash28_API_LoadStart, Flash28_API_LoadEnd and Flash28_API_RunStart all Point 0x8000 (RAM).
Propably this is because the Library only defines the Symbol Addresses but doesn't fit anything to memory.
Assuming I ignore this Problem and copy the complete Rom into L0 Ram, calculate the correct Addresses and execute any of the Funtion. Will the call Sub-Functions relative and run completely from RAM or do the call their SubFunctions by fixed Addresses in ROM ?
Background:
I try to prevent a lock of the device if it is interrupted during the erase of the password sector. The idee is to have a bootloader in spi flash check if there is a password set and call a clear function programmed into OTP. As far as i understand the code security module, for this to work the Flash API must run from secure memory to allow erase of the secured flash. As ROM is not secure memory the function in OTP would have to copy the Flash API into the secure L0 memory and run it from there.