Hello,
Any help here will be appreciated, My target is A15 running threadx code, breakpoints work fine in *.s or Assembly file but don't respond or stuck in *.c file
I am new to ARMDS interface, I did look at this discussion but didnt know where to pass the extra flag/option EL1N:0 in ARMDS 22.2
https://community.arm.com/support-forums/f/armds-forum/47140/breakpoints-not-working-in-c-code-only-in-assembly
HiMy name is Stephen and I work at Arm.The Execution Level (e.g. EL1N) that you've seen in other answers applies to Arm processors which implement the Armv8-A architecture. Your Cortex-A15 implements Armv7-A architecture, so has no ELs.As a first step, check that you are compiling the source files with "-g". This adds debug information into object files to allow debug at source level.Check that your final linked executable contains debug information using, e.g.fromelf your.axfand confirm that it contains some debug_* sections.Check that the debug information is being loaded into the debugger. For example, do you see variables appearing in the Variables view?Cortex-A15 implements TrustZone, and can operate in Secure or Non-secure (Normal) worlds.If the debugger loads debug information from the image when in Secure world, but your application runs in Normal world, then you might need to load debug information for Normal world with e.g.add-symbol-file your.axf N:0The zero here means a zero offset between the addresses given in the debug information and the actual load address of your executable. You might need a non-zero value if e.g. your code relocates itself at run-time.Hope this helpsStephen
Hello Stephen,
Thanks for the response
I have made sure the optimization level is minimum -O0 with -g and also verified there is no optimisation done by the compiler.
The firmware is directly loaded into RAM by the loader, the offset is 0, attached the screenshot, added the N:0 as argument in debug connection tab.
Hi againThe "N:0" is an argument for an "add-symbol-file" command, not an argument for the program.An "add-symbol-file" command is used to load debug information from a debug .axf into the debugger.See developer.arm.com/.../add-symbol-fileTo execute an "add-symbol-file" command, open the "Commands" view. At the bottom of the "Commands" view is a "Command" field. In the "Command" field, enter:add-symbol-file \path\to\your.axfIf your program switches between security states, you may need bothadd-symbol-file \path\to\your.axf N:0and add-symbol-file \path\to\your.axf S:0These commands can also be added into the Debugger tab of the Debug Configuration, or into a .ds script file, to help automate the process.Hope this helpsStephen