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.

C55xx: Trouble Halting Target CPU: (Error -1138 @ 0x400)



Hi,

DSP: TMS320C5505-15.

Code are written in C mixed assembly (.asm).

IDE version is CCSV5.4.

I have function written in assembly code. When I set breakpoint in .asm file and debug it step by step. The result is as expected. However, when I remove the breakpoint and run it. It seems drop in endless loop which is written in another assembly code (When I suspended the code, it stopped there). There is no buffer shared between the two functions.

At the same time, error occurs as the title described. 

C55xx: Trouble Halting Target CPU: (Error -1138 @ 0x400) Device refused to allow debug mode. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 5.1.232.0) 

Could anyone can share some idea for further debugging? Thanks.

B.R.

Eddie

  • Further information:

    I use add mmap(t0), ar0, ar2. ar0 is input buffer pointer which is 32-bit long address, and after the instruction, I traced ar2 and found ar2 is 16-bit long address, which means the upper bits were removed. So the address is not correct. However, I found ar3 can be used to for 32-bit long address. So I changed it to add mmap(t0), ar0, ar3. The problem with address can be solved, but the code is still run into endless loop. 

    Could anyone can help on this? Urgent case, thanks.

    B.R.

    Eddie