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/AM5728: Debug session errors

Part Number: AM5728

Tool/software: Code Composer Studio

My current test setup is the TI EVM AM572x EVM and template demo.  Everything is working fine if I exit the debugger when editing source code.  However, I need to ensure my development workflow is efficient.  

I tried to not exit the debugger when editing source code but get errors as follows:

  1. Press EVM reset button
  2. Click Debug
  3. Click Run
  4. Click Suspend
  5. Edit source code
  6. Build project
  7. CCS detects .out has been modified and I select Yes to reload
  8. Clicking Run causes the following error:

CortexA15_0: Unhandled ADP_Stopped exception 0x800C4A28

Please let me know if there is a way to "edit/build/reload/run" within a Debug session without generating errors.

Regards,

Dave

  • Hi David,

    david kasper said:
    CortexA15_0: Unhandled ADP_Stopped exception 0x800C4A28

    This exception occur on my side with the default "Hello World" basic example CCS project, without any modification of the source code (main.c file). I am using AM572x TI EVM rev. A3A, CCS v9.1.0 and Blackhawk USB560M 20-pin emulator. And i am booting Linux image, thus my EVM do not automatically power off, hence I get this exception.

    https://e2e.ti.com/support/processors/f/791/t/844063



    What I can suggest you is:

    1. Create "Hello World" basic example CCS project and build it

    2. Load it on Cortex-A15_0 core

    3. Put a HW breakpoint at the end of the program (return 0)

    4. Resume

    4.1 Optional step - you can reset the board with CCS menu button CPU Reset (SW)

    5. Edit the source code and rebuild the project

    6. CCS detects .out has been modified and I select Yes to reload

    7. Resume


    When I follow the above 7 steps, I am able to "edit/build/reload/run" within a Debug session without generating errors.


    Regards,
    Pavel

  • Pavel,

    Per your response, I have verified everything works fine using for the blue sky hello world project.  However, recall my issue is unrelated to hello world and your recommendation doesn't work using the AM5728 template demo.  The breakpoint at the end of main (i.e. return 0) isn't hit.  Instead the program stops at the end of syscalls.c.  When reloading and rerunning I get the same exception below.

    CortexA15_0: Unhandled ADP_Stopped exception 0x800C4B58

    Please test using the template demo that I am having issues with and let me know if you are able to iteratively "edit/build/reload/run" without exiting the debugger.

    Thanks,

    Dave 

  • It has been awhile with no response and this issue is not yet resolved. 

    Please let me know if somebody knows if an efficient workflow exists for debugging applications such as the TI template demo.  Recall I have to exit/restart the debugger every time I compile.

    Regards,

    Dave

  • Dave,

    Instead of completely exiting the debugger, you should be able to simply "disconnect" from the Cortex A15 followed by reset, connect, load, run.  That will speed up the process considerably since launching the debugger is by far the most time intensive step.

    On a related note, be careful about what boot mode is selected by the EVM.  I recommend making sure that the boot ROM cannot find any valid boot images, i.e. when you reset the board the goal should be to put the board into a known good state.

    Best regards,
    Brad

  • Brad,

    Thank you very much for taking time to respond.  I tried your recommendations and the workflow is much faster!

    Regards,

    Dave

  • Dave,

    Glad to hear it.  If you'd like to further turbo-charge your debugging, learning the keyboard shortcuts for those commands can speed things up even more.  For example:

    • Disconnect: Ctrl - Alt -D
    • Press Reset Button
    • Connect: Ctrl - Alt - C
    • Reload Program: Ctrl - Alt - R

    After a few repetitions you will hardly even need to think about it.

    Best regards,
    Brad

  • Brad,

    Thanks!  I'll memorize those shortcuts.

    Regards,

    Dave