This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

What causes CPU stall and what the meaning of error message from CCS?



Hello,

When I debug S/W for Netra (DM816x), I see the following error message popping up and the connection between CCS and Cortex M3 is lost.

CortexM3_ISS_0: Error: Error 0x20000020/-1310 Severe Error during: Execution,  CPU stall due to LOAD/STORE detected...attempting recovery...      Stall recovery apparently succeeded. Attempt to halt failed!       Reccommendation: Rectify stall condition with system reset or POR. 

CortexM3_ISS_0: Failed to remove the debug state from the target before disconnecting.  There may still be breakpoint op-codes embedded in program memory.  It is recommended that you reset the emulator before you connect and reload your program before you continue debugging

My CCS version is "Version: 5.0.1.201012231000, Build id: N201012231000". And the CPU is ARM Cortex M3.

I guess this is a S/W bug, not a CCS issue. It happens only when a certain procedure is followed and it can be reproducable. But I'd like to know what can cause such an issue and what the meaning of the error message is. So that I hopefully can narrow down where the issue comes from. Does it say there is a CPU exception such as undefined instruction or division by 0? And is there any way to re-connect CCS to Cortex M3 to see the CPU register, memory etc?

 


Thanks,

 

 

  • Hello,

    I'm not sure what caused a CPU stall here so i can't comment on the first error but the second error is a CCS debugger error saying that it could not properly clear the debug state (remove breakpoint op-codes from target memory, etc) and so there may be breakpoints still set that CCS is unaware of on reconnect. Thus it is recommended to reset your environment and reload the program.

    Naito Tomoyuki said:
    And is there any way to re-connect CCS to Cortex M3 to see the CPU register, memory etc?

    You may still be able to reconnect. What happens when you try?

    ki

     

  • Hello Ki,

    For the first error, what does the error code "Error 0x20000020/-1310" mean? If it indicate why the CPU stall happened, it would help debug this stall issue further.

    For the second error, when I try to reconnect, I get the following error message popping up and I cannot reconnect CCS. I need to power off/on the Netra EVM, reconnect and reload the program.

    Ki-Soo Lee said:
    Thus it is recommended to reset your environment and reload the program.

    How can I reset emulator instead of power off/on the EVM?

  • Hello,

    Can you please tell me what "Error 0x20000020/-1310" means? I guess that -1310 is a kind of error code and hope that I get some clue what causes the CCS crash from that error code.

     

    Thanks,

    Naito

  • Hello,

    I too am getting this error when running codec in loop using CCS on Cortex M3 of TI814x EVM.    I am running the code without any breakpoints.

    What's the meaning of this error code?

    Error 0x20000020/-1310 Severe Error during: Execution,  CPU stall due to LOAD/STORE detected...attempting recovery...      Stall recovery apparently succeeded. Attempt to halt failed!       Reccommendation: Rectify stall condition with system reset or POR

    Apparently it seems that this error doesn't occur when I am running codec (encoder) to generate only I frames.

    Help on this issue would be highly helpful for a critical issue. 

    Regards,

    Purushottam Ekande