Hi,
I am using this extension and having problems with debugging. Everything works perfectly when my code size is small, I can debug and step through no problem, including with multiple source files. However, when the code gets larger debugging stops working, the output in debug console is:
==================== Initialize ====================
==================== Connect ====================
[SEND]: set print elements 0
[END]
[SEND]: set width 0
[END]
[SEND]: file "debug/debug.elf"
Reading symbols from debug/debug.elf...
done.
[END]
[SEND]: target extended-remote localhost:3333
Remote debugging using localhost:3333
warning: Can not parse XML target description; XML support was disabled at compile time
0x00008000 in ?? ()
[END]
==================== Launch ====================
[SEND]: load
Loading section DATA, size 0x42 lma 0x1
Loading section INITIALIZED, size 0x39 lma 0x43
Loading section SSEG, size 0x1 lma 0x7c
Loading section HOME, size 0x7f lma 0x8000
Loading section GSINIT, size 0x1a lma 0x807f
Loading section GSFINAL, size 0x3 lma 0x8099
Loading section CONST, size 0x19 lma 0x809c
Loading section INITIALIZER, size 0x39 lma 0x80b5
Loading section CODE, size 0x377 lma 0x80ee
Start address 0x807f, load size 1249
Transfer rate: 751 bytes/sec, 138 bytes/write.
[END]
[SEND]: continue&
Continuing.
Warning:
Cannot insert breakpoint 1.
Cannot access memory at address 0x80f0
Command aborted.
[END]
My launch.json
file is:
{
"version": "0.2.0",
"configurations": [
{
"type": "stm8-debug",
"request": "launch",
"name": "sdcc launch",
"serverType": "stm8-sdcc",
"executable": "debug\\debug.elf",
"cpu": "STM8L101K3T",
"port": "3333",
"openOcdConfigs": [
"interface/stlink.cfg",
"target/stm8l.cfg"
]
}
]
}
Again, everything works for smaller programs but it seems to hit a critical point where it stops working. If required I can get a simple example set up where add a few instructions changes it from working to broken.