Last active
November 9, 2023 09:16
-
-
Save yozik04/ccb9be66b8527b9b52e2040330a9ffe3 to your computer and use it in GitHub Desktop.
Visual Studio Code to work with STM8 Cosmic compiler.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"configurations": [ | |
{ | |
"name": "STM8", | |
"includePath": [ | |
"${workspaceFolder}/**", | |
"C:/Program Files (x86)/COSMIC/FSE_Compilers/CXSTM8/Hstm8/**" | |
], | |
"defines": [ | |
"_DEBUG", | |
"UNICODE", | |
"_UNICODE", | |
"_COSMIC_", | |
"__CSMC__" | |
], | |
"intelliSenseMode": "clang-arm", | |
"compilerPath": "C:/Program Files (x86)/COSMIC/FSE_Compilers/CXSTM8/cxstm8.exe", | |
"compilerArgs": [ | |
"-v", | |
"-l", | |
"+strict", | |
"+debug", | |
"+modsl0", | |
"+split", | |
"+warn" | |
], | |
"cStandard": "c99" | |
} | |
], | |
"version": 4 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// See https://go.microsoft.com/fwlink/?LinkId=733558 | |
// for the documentation about the tasks.json format | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"type": "cppbuild", | |
"label": "C/C++: cxstm8.exe build active file", | |
"command": "C:\\Program Files (x86)\\COSMIC\\FSE_Compilers\\CXSTM8\\cxstm8.exe", | |
"args": [ | |
"-v", | |
"-l", | |
"+strict", | |
"+debug", | |
"+modsl0", | |
"+split", | |
"+warn", | |
"${file}" | |
], | |
"options": { | |
"cwd": "C:\\Program Files (x86)\\COSMIC\\FSE_Compilers\\CXSTM8" | |
}, | |
"problemMatcher": [ | |
"$gcc" | |
], | |
"group": "build", | |
"detail": "compiler: \"C:\\Program Files (x86)\\COSMIC\\FSE_Compilers\\CXSTM8\\cxstm8.exe\"" | |
}, | |
{ | |
"type": "shell", | |
"label": "C/C++: cxstm8.exe build all", | |
"command": "cmd", | |
"args": [ | |
"/c", | |
"${workspaceFolder}/.Idea_Temp/IDEABLD.BAT" | |
], | |
"options": { | |
"cwd": "${workspaceFolder}" | |
}, | |
"problemMatcher": [ | |
"$gcc" | |
], | |
"group": "build" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for providing the files.Unfortunatly I wasn't able to get the software to build als also the IDEABLD.BAT file is missing. I'm I correct in my assumption that you are using the IDEA-IDE from Cosmic and the .BAT file was generated there during a build?