github0null / stm8-debug

STM8 Debugger for vscode
MIT License
10 stars 2 forks source link

No source file named... #24

Closed dzid26 closed 5 months ago

dzid26 commented 7 months ago

The motor.c exists in the given path. I don't understand what is this error saying:

==================== Initialize ====================

Load SVD: .vscode\stm8s105k4.svd.json

==================== Connect ====================

[SEND]: set print elements 0

[END]
[SEND]: set width 0

[END]
[SEND]: file "C:/Users/dzidm/Repos/TSDZ2-Smart-EBike-1/bin/main.elf"
    Reading symbols from C:/Users/dzidm/Repos/TSDZ2-Smart-EBike-1/bin/main.elf...
    done.
[SEND]: continue&
    No source file named c:\Users\dzidm\Repos\TSDZ2-Smart-EBike-1\src\controller\motor.c.
[END]

Configuration:

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "stm8-debug",
            "type": "stm8-debug",
            "request": "launch",
            "serverType": "stm8-sdcc",
            "executable": "${workspaceFolder}\\bin\\main.elf",
            "cpu": "STM8S105S6",
            "port": "3333",
            "svdFile": ".vscode\\stm8s105k4.svd.json",

            "openOcdConfigs": [
                "interface/stlink-v2.cfg",
                "target/stm8s105.cfg"
            ]
        }
    ]
}

main.elf

dzid26 commented 5 months ago

I think this was due to a breakpoint pointing to a wrong location.