-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debugging not working with SPL examples #44
Comments
Per https://sourceware.org/legacy-ml/gdb/2002-08/msg00207.html I've run the file through
|
Full |
I've filed a bug at SDCC per https://sourceforge.net/p/sdcc/bugs/3200/ since I don't see where out fault could be (in e.g. the invocation or linking phase). Sadly we're depending on two SDCC bugs (this plus #38 (comment)) to get a good debugging experience with non-baremetal projects. |
Thanks for looking into the problem. There was also an update for stm8-binutils a year ago or so, but I'm not sure it has something to do with this issue. |
If the standard |
There have been new developments regarding this in error in here -- it seems that the linking order of the I must yet reproduce this on my own but it looks very promising. Maybe @valeros can have a look at this too. |
There have been new developments in this with the SDCC devs saying this bug is fixed.
Have to get around to testing it. If it works now, it would finally enable full debugging.. |
Not sure if this helps, but in my setup debugging STM8 with SPL framework seems working. platformio.ini is :
The test code is a simple blinky. |
Since I finally got an SPL example to build and upload correctly on my STM8S103F3 board per #43, I tried to access debugging, but it fails in the sense that it doesn't halt at the
main
function.It seems like there are no DWARF symbols available again although
--debug --out-fmt-elf
is given. Maybe GDB aborts loading DWARF information because of this error:Building with
build_type = debug
and feeding it directly into STM8-GDBGives the same error.
I'll investigate with a nother toolchain version, seems like SDCC is doing something weird here..
EDIT1: This is independent of the activated SPL modules btw, I've tested it with the old config and it fails in the same way.
The text was updated successfully, but these errors were encountered: