Hi,
I am encountering the following error when i establish a hardware connection to my target i.e LPC1519. It starts off with the Reset Handler properly,debugs the SySInit functions but when it reaches the Chip_SYSCTL_PowerDown function,it gets stuck on a particular instruction(LPC_SYSCTL->PDRUNCFG = (pdrun | PDRUNCFGUSEMASK);) and throws the following error.When i try to step the instruction the error repeats:
Execution stopped in Privileged Thread mode at 0x000003320x00000332 109,2 LPC_SYSCTL->PDRUNCFG = (pdrun | PDRUNCFGUSEMASK);waitstepERROR(CMD440-TAD13-NAL22): ! Stepping failed! Unable to delete breakpoint: Breakpoint [instructionSet=T32, hardwareExecutionAddress=0x00000336, execContext=[ExecutionContext[Cortex-M3_1]]]! General error on memory or register access.Target Message: Could not determine target statewaitERROR(TAD1-NAL52): ! Unable to read from register SP! Cannot attain state requested.waitERROR(TAD1-NAL52): ! Unable to read from register SP! Cannot attain state requested.
However when i go to register view the SP and SP_MAIN have specific values, because of this i am not able to debug my main function at all.
*SideNote: When I disconnect and try reconnecting to my target after the error has occurred,debug connection to target fails and the following error is thrown:
Debug Sequence failed
Failed to read DP
Failed to read register 8,320 ARMCS-DP_DSQ
General error on memory or register access.
I have to power down and power up my device to bypass this error,happens whenever the above SP error occurs.
Thank you.