2022-05-26 08:42 AM
2022-05-26 09:16 AM
It means whatever you're debugging doesn't look consistent with the code/build PC side.
For example, it is in some boot loader at the front of FLASH, and you're trying to debug some application that's loaded deeper in FLASH, ie 0x08008000 or 0x08010000 basis.
So
Context Sensitive
Might not actually be a problem, but you'd need to understand your own system/creation.
2022-05-26 10:07 AM
"I did set the mode to Release"
Which may (probably?) means that no debug information is produced by the build - so it won't be able to tie-up code addresses to source lines
2022-05-26 12:08 PM
Yeah, but I am in Release Run, which means no debug info, so why does it need to report that there is no debug information ? Kind of a strange behavior !
2022-05-26 12:38 PM
And yet you're running it in the debugger. And it's trying to show you something.
The linker still generates symbols, and there's still a .MAP file.
The message most frequently occurs when the debugger stops or break-points in an area not described by the currently executing code, or related linker script. Finds itself somewhere it doesn't expect to be.
Why it's doing this in this situation is unclear, could be a bug, or related to circumstances. You'll need to zoom out a bit further to see the bigger picture.
2022-05-26 01:07 PM
See, I am new to STMicro, and this is confusing to me.
When I do Release run I do see:
Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
Why does it invoke the debugger in a Release build?
I am using Nucleo board which has ST-Link V3 on it.
Could that be it ? If so, then what is the difference between Debug, and Release builds ?
Thanks.
2022-05-27 01:40 AM
"I am new to STMicro"
Are you familiar with any other microcontroller(s)?
"Why does it invoke the debugger in a Release build?"
It's you that's invoking the debugger - by choosing the 'Run' feature.
If you just want to program the device, then let it run standalone, just use the programmer.
2022-05-27 07:18 AM
Yes, I used multiple other microcontrollers for many years, but I am new to STmicro.
I got it figured out. It is just wording issue.
STmicro uses "Waiting for debugger...Debugger connected" during both Debug, and Release runs, and this is confusing to new users like me, because if I am in Release mode why do you connect to debugger? I think they should instead change the wording to:
Waiting for programmer connection...
Programmer connected
This is what other companies use.
"Programmer" works fine for both Debug, and Release runs.
But "Debugger" while it is OK in Debug mode, it is not appropriate in Release mode.