We have custom PCB having ATSAME54P20A microcontroller. Suddenly today I started getting CPU Status - LOCKUP error and I am unable to download the code to the microcontroller. Before, that I am able to download the code to controller but it is giving me various BusFault and HardFault handler errors.
I am using IAR Embedded workbench environment and ATMEL ICE debugger to download the code to controller.
How can I download the code to controller again ?? How to remove the LOCKUP state of Cortex M4 device ATMSAME54P20A ?? What steps I need to take to resolve this issue ??
Did you try another chip? Sounds you bricked it. Anyway, better try in the SAM forum as the likelyhood is larger someone there had the same problem. It does not sound like a general Cortex-M but more as a SoC problem.
No, I haven't tried another chip yet. But, I am wondering there must be some way to get the controller up and running as other features are working correctly like reading Device ID , voltage settings, and the fuse bits are also according to the device datasheet.
I think there might be some way to get out of the LOCKUP state of controller.
What do you suggest in this case ??
A Reset should get you out of the LOCKUP state.
ShivasWorld said:What do you suggest in this case ?
Again, the SAM forum is the place to go for specific advice about capabilities of the particular chip, and the particular debug probe.
Including whether a LOCKUP can actually prevent programming the that chip with that probe.
Or if there's an option to use a built-in ROM bootloader to bypass problematic user code.
I have tried Reset but it doesn't get me out of the LOCKUP state. I just need to find other solution to this problem.
Are you sure that it doesn't get you out - or is it that it just goes straight back into the state again?
If you have code which is doing something to cause the LOCKUP state, then it will keep doing that until you change the code.
View all questions in Cortex-M / M-Profile forum