Emulator: XDS100v2
* The JTAG nTRST Boot-Mode = "Enabled - EMU1 is high, EMU0 is low"
* The Power-On-Reset Boot-Mode = "Enabled - EMU1 is high, EMU0 is low"
Boot Mode: Jump to flash (GPIO84~87 either used as outputs or left floating in my application)
When I first programme the chip with password active I can debug just fine, including when I reset through the JTAG. But the moment I power cycle the device or force a lock with CSMStsCtrlReg.FORCESEC=1 I can't get back in. I know wait-in-reset is in effect because as long as the emulator is connected during POR the LEDs on my device stop flashing. I have set the same password in the Flash options page to no effect.
The only way I can get out of this bind at the moment is to force a flash erase on sector A through my own bootloader when I need to unlock. But as it is I can't effectively develop my code without leaving the passwords blank. Murphy dictates that at some point I am going to forget to compile a .out for production release with the CSM active.