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.

CCS/TMS320F28335: real time enulation problem

Part Number: TMS320F28335

Tool/software: Code Composer Studio

Hello,

When I try to run in real time emulation mode I get this error:

Trouble Reading Register ST1:
(Error -1142 @ 0x6)
Device blocked debug access because it is currently executing non-debuggable code. Choose 'Rude Retry' to disable polite mode and force the operation.
(Emulation package 6.0.407.3)

Yesterday it was all fine!

  • Kostas Ntontis said:
    Yesterday it was all fine!

    Are you able to zero in on what may have changed since it previously worked? Were any changes made to the code or to the hardware? Or to the project settings in CCS? If there were changes to the code, could you try reverting back to a previous version of the code to verify if it works?

    There are more details about Real-time mode and how it works at this link. The background information there may be helpful to you in identifying what may be triggering the error now that previously was not.

  • Thanks for your answer,

    "This error means the device is free running and the JTAG debugger lost control of its core and status. Both a disconnect and power cycle will be required, but there is a possibility the running firmware on the device may be preventing the JTAG debugger from properly connecting (if the device has flash memory). In these cases, consult the documentation of your device to find out how to unlock it."

    How can I power cycle the DSP; I tried to unlock CSM [Scripts -Code security module - unlock CSM] , it worked once and then back to error! I use simulink for code generation and I have the same error for all ccs projects. I remember that I changed boot options: SARAM to FLASH and then back to SARAM.

    How can I see if the DSP is really locked; I think it isn't. Maybe this error is due to another reason.

  • For power cycling you can simply remove and re-attach power. Are you using a custom board or a TI kit? 

    This type of message generally appears when real-time mode is enabled in CCS and the JTAG debugger is unable to properly connect to the device in that mode. The first question would be whether you need to connect in real-time mode. If you are not running code from Flash and trying to attach to a running target, then you do not need real-time mode enabled prior to connecting. If you go into the Debug Properties of the project, you can disable real-time mode from there (see screenshot below). Then start the CCS debug session. If you then need real-time debugging you can enable it just prior to running the code. 

  • I have F28335 TI kit. Real time is not enabled in Debug tab. I get the error when in real time mode try to see expressions or registers values. I usually use SARAM memory. Is it better to use Flash for real time mode?

  • Is your issue resolved (I see that you marked this thread as Resolved)?
  • Yes. I used Flash memory and it works again. Sometimes I have another error but I think maybe the generated code is responsible for it or too many watched expressions.
  • Thank you for the update and glad to hear that it is working again.