-
Notifications
You must be signed in to change notification settings - Fork 2
Description
I have an STM8S discovery board.
I have no idea what I am supposed to do.
Here is my launch.json
{
"version": "0.2.0",
"configurations": [
{
"type": "stm8-debug",
"request": "launch",
"name": "Launch Program",
"serverType": "stm8-sdcc",
"executable": ".\main.elf",
"cpu": "STM8S105S6",
"openOcdConfigs": [
"interface/stlink-v2.cfg",
"target/stm8s105.cfg"
]
}
]
}
So what is serverType and what values can be used, should be used?
When does sdcc create an .elf file and where is that to be found. I know sdcc creates all sorts of files, but from the command line I have not seen an elf ? I can create ihx files easily.
What values can I put in for cpu
Here is my output:
==================== Initialize ====================
==================== Connect ====================
[SEND]: set print elements 0
[END]
[SEND]: set width 0
[END]
[SEND]: file "./main.elf"
./main.elf: No such file or directory.
[END]
[SEND]: target extended-remote localhost:3333
localhost:3333: No connection could be made because the target machine actively refused it.
[END]
==================== Launch ====================
[SEND]: load
No executable file specified.
Use the "file" or "exec-file" command.
[END]
[SEND]: continue&
The program is not being run.
[END]
And this hardly helps either except that it can't find an executable.
I really don't know why I waste so much time on partially documented, non working drivel. I am so glad it works for you and you wanted to share, but really it would have been better if you hadn't bothered unless you DOCUMENT things properly. Not everyone knows what's inside your head.
Thanks.
Gordon
big :sigh