I'm working on a Bootloader that reside in Code Flash Block 0 (From 0x400000 to 0x4FFFFF).
Any erase/write inside this block cause an Hard Fault even with:
- C40_Ip_MainInterfaceSectorErase
- C40_Ip_MainInterfaceSectorEraseStatus
- C40_Ip_MainInterfaceWrite
- C40_Ip_MainInterfaceWriteStatus
In SRAM.
Only erase/write in Code Flash Block 1 or 2 or 3 it's allowed.
My Application must reside in Block 1 ?
The residual code flash Block 0 it's lost?
Regards, Francesco.