Post Go back to editing

SC389 code breakpoint not being set

Thread Summary

The user encountered issues setting breakpoints in the main function of a project for the SHARC core on an ADSP-SC589 using CrossCore Embedded Studio 2.7.0.0. The solution involved creating a new workspace, which resolved the breakpoint issue. The user also noted that the 'Skip All Breakpoints' option was enabled and needed to be disabled. Relevant products: ADSP-SC589, ICE1000 debugger.
AI Generated Content

I have attempted several time to create a project with minimal code to familiarise myself with the startup code and general debugging.

I want to debug the code on core 1, which is a SHARC core on a ADSP-SC589.

I generate a skeleton project using the new project wizard generally using default values.

I compile the debug configuration of the code.

Although I can successfully compile and appear to run the project I can never set a breakpoint in the main function of the code. 

Each time I attempt to set a breakpoint I get the following error

Failed to set breakpoint at C:\...\StartupTest_Core1\src\StartupTest_Core1.c [line: 22] because there is no debug line info.

I have confirmed that the Generate Debug Information is checked for compilation and the Strip Debug Information and Strip All Symbols are unchecked in the linker.

I am using CrossCore Embedded Studio 2.7.0.0 with the SC359 evaluation board using the ICE1000 debugger.

How do I set breakpoints in the code at code level?

  • Hi,

    Can you please refer the below FAQ:
    FAQ: Unable to set breakpoints within code in CCES
    https://ez.analog.com/docs/DOC-2405

    If you are trying to set breakpoints when code is running, you cannot do as this is a limitation not of the CCES tools, unfortunately. Also can you please ensure that whether you are setting the breakpoint after loading the dxe files into the SHARC cores.

    You can find information on breakpoints in CCES help using the following path:
    <Help>\Contents\CrossCoreRegistered Embedded Studio <version> > Integrated Development Environment > Debugging Targets > Hardware Breakpoints/Watchpoints for SHARC Processors > Setting Hardware Breakpoints for ADSP-SC5xx Cortex A5 Cores

    Please refer in CCES help about Restrictions on Breakpoints
    Processor Documentation > SHARCRegistered Processor Programming Documentation > SHARC Processor Programming Reference > 8 JTAG Test Emulation Port > Functional Description > Breakpoints > Hardware Breakpoints  > General Restrictions on Software Breakpoints

    CrossCoreRegistered Embedded Studio <version> > Integrated Development Environment > Debugging Executable Files > Working with Breakpoints, Watchpoints, and Breakpoint Actions > Setting a Software Breakpoint

    If you are still facing the issue, please share us the screenshot of the error that you are facing. Also let us know whether you are facing the issue only the specific project or with all the projects. If you are facing the issue specific project, share us the example project with the exact steps to reproduce your issue. This will help us to assist you further.

    Regards,

    Kader

  • Hi Kader

    Thank you for your reply. I have looked at the help pages you suggest and have tried a few things such as setting h/w breakpoints and adding a breakpoint rather than toggling it.

    I still can't set breakpoints but I notice that whilst I am trying to set a breakpoint on core 1, the breakpoint window indicates that the breakpoint is on core 0.  Even if I use add "Add Breakpoint" and specifically select core 1 the breakpoint windows indicates that the breakpoint is on core 0.

    Setting a h/w beakpoint doesn't appear to do anything.  There is not even an error message.

    I have attached a screen shot where I have attempted to toggle a s/w breakpoint at line 28 in StartupTest_Core1.c and add a s/w breakpoint on core1 at line 39.

    This behavior is common to several projects I have tried to create.

    Thanks

    Graham

  • Hi,

    Can you please confirm whether you are setting the breakpoints before launching the session. If so, can you please try with setting breakpoint after launching the session with the below steps and let us know how you get on.

    1) Import the project into CCES work space.
    2) Build the project.
    3) Launch the debug configurations.
    4) After load completion, set the break points.

    Also please try with importing the project into new workspace.

    Regards,

    Kader

  • Hi,

    Also from the screenshot that you shared, we noted that you have enabled the option 'Skip All Breakpoints'. Can you please disable the option (Image1) and try.

    Regards,

    Kader

  • I did get breakpoints to work by setting up a new workspace like you suggested. I did manage to import my project into the new workspace but this didn't work very well as it did not handle linked files, so I had to manually re-import these. 

    Once this was done I was able to set breakpoints in the source code.

  • This question has been assumed as answered either offline via email or with a multi-part answer. This question has now been closed out. If you have an inquiry related to this topic please post a new question in the applicable product forum.

    Thank you,
    EZ Admin

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.