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/LAUNCHXL-F28379D: Real-time mode issue

Part Number: LAUNCHXL-F28379D

Tool/software: Code Composer Studio

I was trying to run the code ( Lab7 example project from the C2000 F2837xD Microcontroller Workshop ) in Real-time mode using the Script Run_Realtime_with_Reset, however, an error was encountered.


Trouble Reading Register PC:
(Error -1142 @ 0x0)
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 9.1.0.00001)

When I pressed Rude Retry, this is the the error I received in the console:
C28xx_CPU1: GEL: Error calling OnPreFileLoaded(): Reset failed: retcode=2

When I pressed Retry nothing happened.

When I pressed Cancel Code Compser Studio froze up and needed a restart.

Please help me resolve this issue !

Valentin Predoi

  • Valentin,

    Before running real-time emulation mode with the Scripts be sure that the boot mode has been configured (end of step 5 in lab 7).  This is important because the Script will perform a reset.  Next, you can try deleting the workspace (assuming nothing else is included in it and you used the workshop installer).  A new workspace will get created.  You will need to select an active target configuration file again (see lab 2 step 5).  This should resolve your issue.

    I hope this helps. If this answers your question, please click the green "Verified Answer" button. Thanks.

    - Ken

  • Ken,

    Thanks for this! I've done everything as you said. Although I now get this message: "No source available for "_Application_0_Texas Instruments XDS100v2 USB Debug Probe_0/C28xx_CPU1_Texas Instruments XDS100v2 USB Debug Probe_0/C28xx_CPU1_stack_frame_0", it is indeed working. No errors and I can see the changes updating in the memory browser. One question though, is there a way to delete the workspace from the CCS?

    Regards,

    Valentin

  • Valentin,

    The "No source available..." is not an error but simply letting you know that the symbols are not loaded for that section of code.  For more information see:

    https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/788037

    If deleting the workspace it should be done outside of CCS.  This way when starting CCS again it can create a new workspace.

    - Ken