-
Notifications
You must be signed in to change notification settings - Fork 2
Recovering a locked TM4C
The TM4C Tina microcontroller on the CM can lock up under certain circumstances, in such a way that the JTAG interface is no longer accessible for anything except the most basic boundary scan. You cannot use this to reload the board, for instance, nor can you debug the application. It’s not exactly clear to me how one gets into this situation, but it has happened numerous times.
One can recover the board with the SEGGER JTAG programmer with the following steps. This assumes you are using a mated SM+CM.
- Connect the segger to the front panel JTAG connector.
- Ensure that the SM does not automatically power on the CM. (as of 12/2019 this requires manipulation of the Zynq software.) This means that the MCU is held in reset since power-on.
- Open the
JLinkExe
program. - Type
unlock LMS3xxx 1
. Don’t yet power cycle. - Repeat previous step.
- From
BUTool.exe
, write1
to the MCU to take it out of reset (CM.CM1.CTRL.ENABLE_UC
) - From
BUTool.exe
, write0
to the MCU to return the MCU to reset (CM.CM1.CTRL.ENABLE_UC
) - Turn off the power on the Apollo
At this point the board should be recovered. You will have to reprogram the flash.
When the MCU is really hosed the FPGAs have no power, and as such they won’t even respond to the JTAG boundary scan instruction. At this point I think you need to set the jumpers to take the FPGAs out of the chain.