Hi,
Using of backdoor password has temporary effect only. Only the FSEC register is updated to unsecured state in this case. But the Flash Configuration Field will remain unchanged. That means the device will be secured again after next reset. If you want to keep the device unsecured, it’s necessary to reprogram the Flash Configuration Field.
If you want to attach a debugger while the device is temporarily unsecured, it’s necessary to do ‘’hot attach” without reset. You can take a look at:
https://mcuoneclipse.com/2015/03/20/attaching-to-a-running-target-with-segger-j-link-gdb-and-eclipse...
If you want to reprogram the device, it is possible to perform mass erase via debugger which will release the security. Two notes here:
- the mass erase needs to be enabled in FSEC (see MEEN bit field)
- if the CSEc is enabled, it will block mass erase command until all keys are removed by DBG_CHAL &
DBG_AUTH commands with knowledge of MASTER_ECU_KEY.
If you configured FSEC as 0xAF, the mass erase is disabled. So, the only option is to use backdoor password to temporarily release the security, do a hot attach with debugger and change the flash configuration field by debugger.
Regards
Lukas