Hello, is there chance to read out memory content if MCU is secured for JTAG connection using flash configuration bytes. Also is configured backdoor access key (which is known) and mass erase is disabled.
I am able to unlock MCU in application (content of FSEC_SEC is 10b) and also can perform mass erase from application. But I would like to have an option to connect to this device and read content of MCU using debugger. I am using the Segger j-link Plus debugger and IAR studio. Is it possible to be able e.g. via j-link commander to connect to MCU and read the memory content?
Thanks and regards,
Jiri
Solved! Go to Solution.
Once the MCU has been unlocked via the Backdoor key, it stays unlocked until the MCU is reset.
So, the debugger must not reset the MCU, the debugger has to be just attached to the running MCU.
Please read this article:
Attaching to a Running Target with Segger J-Link, GDB and Eclipse
Thanks,
Daniel
Thank you for this, I will ask then Segger, if they can help me. I am using IAR Embeded Workbench and not Eclipse.
Hello Jiri,
The debugger cannot read the content of the MCU if the MCU is secure (FSEC_SEC != 10b).
The MCU needs to be unlocked first (FSEC_SEC == 10b).
The debugger can only mass erase the MCU to unlock it provided this option is enabled (FSEC_MEEN != 10b).
Regards,
Daniel
Hello Daniel,
yes I know about this. My question is, if debugger, can unlock device via JTAG/SWD?
Jiri
Only through mass erase.
The debugger can access the MDM-AP status and control registers.
Please refer to the RM, Section 58.6.
Regards,
Daniel
Ok, another question. If I unlock MCU in application (e.g. sent via LIN/UART/... key, and sucessfully compared), will be able to read out memory? Tried using J-Flash, but it always return error, that it cannot access the memory.
Once the MCU has been unlocked via the Backdoor key, it stays unlocked until the MCU is reset.
So, the debugger must not reset the MCU, the debugger has to be just attached to the running MCU.
Please read this article:
Attaching to a Running Target with Segger J-Link, GDB and Eclipse
Thanks,
Daniel