Debug Start Up Script Comments and Variables
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-01-20 7:57 AM
Dear all
I moved from Atollic to Cube IDE.
To debug a firmware without boot loader I use the Run Commands (located in the Debug Configuration -> Startup Tap) to move the $pc (program counter) to the desired address, where the firmware actually starts. This works in Cube IDE as well. But my comments in the same field beginning with a # do not work anymore. When I start the debugging session, I receive the following message:
Failed to execute MI command:
#comment
Error message from debugger back end:
Undefined command: "". Try "help".
1) How can I add comments to my StartUp Run Commands?
At the moment I use a constant number in the StartUp Script to set my program counter. In my source code is a pre-processor define with the actual program counter address.
2) Is there a way to use defines located in the source code in Debug Startup scripts?
I am using ST-Link V2 and CubeIDE 1.2.0 for debugging a STM32F0 MCU.
Thank you for your help.
Marco
- Labels:
-
DEBUG
-
STM32CubeIDE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-01-20 10:39 AM
2) Is there a way to use defines located in the source code in Debug Startup scripts?
Not in source, of course, but maybe the script could allow using Eclipse build variables
-- pa
