This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Debugger don't step inside functions other than main in project

Hello, project configured for ARM CM55, compiler optimization -Ofast, link time optimizations disabled

Here is main function



int
main() {

printf("!");

printf("hello!");

/* testAll_flatten();*/

return 0;

}



Debugger can step in main and output printf() in console but when i comment printf() and uncomment testAll_flatten module, that contains different tests, function calls etc i see next errors and warnings and cannot debug my project or just see printf() in console...


and after pressing Continue i see only


wait
continue
NORMAL_TERMINATION
Execution stopped in Secure Privileged Thread mode at 0x000010E4 due to application reaching end of execution
0x000010E4 BKPT #0xab


Here I attach additional info about debug configuration and scatter file


https://drive.google.com/file/d/16Q9u_kfOA9pnwwTqkNLxrN0y0fKmiXom/view?usp=sharing (scatter file)

Similar problems are encountered in other larger projects configured in a similar way, I suspect that there may be something wrong with my scatter file, or that some functions, files, (if I understood correctly) are not in the execution range... 

How to fix that and how to debug without these problems?

Parents
  • Hi again

    I've tried, but have not been able to reproduce what you see.
    My test case just works as expected - see screenshot below.
    I'm using Arm DS 2024.0.  Are you?

    Are you sure that you are loading the _Debug_ image to the FVP, and not the _Release_ image?
    Check your flatten.launch file.  It should contain something like:
        <stringAttribute key="FILES.ICE_DEBUG.RESOURCES.0.VALUE" value="${workspace_loc:/flatten/Debug/flatten.axf}"/>

    If that still doesn't help, then we'll need to investigate further and maybe get a copy of your project.  It would not be appropriate to post your project on this public forum, so instead you will need to raise an official support case by selecting Support > Arm Support Services from the top of this page, then "Open a Support Case".  Please add a reference to this forum post.

    Stephen

Reply
  • Hi again

    I've tried, but have not been able to reproduce what you see.
    My test case just works as expected - see screenshot below.
    I'm using Arm DS 2024.0.  Are you?

    Are you sure that you are loading the _Debug_ image to the FVP, and not the _Release_ image?
    Check your flatten.launch file.  It should contain something like:
        <stringAttribute key="FILES.ICE_DEBUG.RESOURCES.0.VALUE" value="${workspace_loc:/flatten/Debug/flatten.axf}"/>

    If that still doesn't help, then we'll need to investigate further and maybe get a copy of your project.  It would not be appropriate to post your project on this public forum, so instead you will need to raise an official support case by selecting Support > Arm Support Services from the top of this page, then "Open a Support Case".  Please add a reference to this forum post.

    Stephen

Children