We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello All,
I have position independent code loaded at two different addresses:
// load main application
load .\obj\app_main.axf
// load position independent application with offset 0x9000 to 0x10009000
load .\obj\app_position_independent.axf incremental 0x9000
// load the same position independent application again with offset 0xA000 to 0x1000A000
load .\obj\app_position_independent.axf incremental 0xA000
What is the correct format for a full qualified symbol name. I can create a breakpoint using:
BS \\app_position_independent\src/src_position_independent_code/app_position_independent_main.c\70, 1
Loading identical debug files is unfortunately not well supported. As you noticed, the fully qualified names are the same and when setting a BP in C the debugger puts it at the address of the first matching symbol name.
As a workaround, in your µVision project that builds the app_position_independent.axf, you can add a User Command for "After Build" that creates a copy of the axf using Key Sequences like this:
CMD /C "copy #L $L@L2.axf"
which in this case creates a app_position_independent2.axf. On the second load use the app_position_independent2.axf. This gives different fully qualified symbols for the loaded images and the BS commands should work.
I hope this helps.
Thanks for your answer. It helped me a lot.