Other Parts Discussed in Thread: SEGGER, UNIFLASH
I have this processor working as expected and added the read-only protection for internal flash from 0x31800 to 0x33FFF by wrote 0xFFFFFF07 to FLASH_FMPPE3. The read-only protection works and saved correctly (wrote 7 to FLASH_FMA and FLASH_FMC_WRKEY | FLASH_FMC_COMT to FLASH_FMC). For some reasons, I was not able to recover by doing the mass erase sequence. Please comment.
My sequence is:
1. Assert and hold the RST signal. Apply power to the device.
2. Using Segger JLink commander to switch to SWD ("si 1") and back to JTAG ("si 0") 5 times.
3. Deaasert RST.
4. Wait for several seconds.
5. Power cycle the microcontroller.
Do you think the Segger JLink commander "si 0/1" to switch between JTAG and SWD? On paper, it should but I am not sure why the recovering is not working for me.
Thanks,
Dennis N