Jan 04, 2019
02:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 04, 2019
02:03 PM
Hi,
I am using Dave 4 and XMC1300 boot kit to run XMC1300 Blinky example code from Infineon site. It is working and the breakpoints got hit properly if the Main function in the flash.
But if the main is at RAM location by using "void main(void) __attribute__ ((section (".ram_code")));", the breakpoints set in the Main will not be hit.
The GCC optimization level setting is at "Optimize for debugging (-Og) for both above situations.
Appreciate if any advice!
Mark
I am using Dave 4 and XMC1300 boot kit to run XMC1300 Blinky example code from Infineon site. It is working and the breakpoints got hit properly if the Main function in the flash.
But if the main is at RAM location by using "void main(void) __attribute__ ((section (".ram_code")));", the breakpoints set in the Main will not be hit.
The GCC optimization level setting is at "Optimize for debugging (-Og) for both above situations.
Appreciate if any advice!
Mark
- Tags:
- dave 4 breakpoint
- IFX
2 Replies
Jan 08, 2019
06:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 08, 2019
06:13 AM
Hi,
I could verify your observation. We are looking into it. One workaround is to set a breakpoint at startup_XMC1100.S before going into main
ldr r0, =main
-> blx r0
After this initial breakpoint, further breakpoints in main function located in RAM appears to work.
Regards,
Jesus
I could verify your observation. We are looking into it. One workaround is to set a breakpoint at startup_XMC1100.S before going into main
ldr r0, =main
-> blx r0
After this initial breakpoint, further breakpoints in main function located in RAM appears to work.
Regards,
Jesus
Jan 08, 2019
01:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 08, 2019
01:30 PM
Thanks and I will check it.