Closed fred-r-perso closed 12 months ago
Hi @fred-r-perso, thanks for testing this out. The csolution extension currently uses the generated CPRJ file as input to cbuild
. We plan to update this in future to pass the csolution file as in your CLI command above, but that is a new feature in cbuild we don't support yet.
To generate the CPRJ, you can use the CMSIS: Convert
command to convert the active csolution to CPRJ, then the build button / command should work. By default the extension also runs this command every time you make a change to the csolution file.
Thanks, indeed by providing the cprj the build works fine. When do you plan nto support the csolution as input ?
That should be done in a month or so. I'll leave this issue open until it is released.
Closing: the csolution is now treated as input to the build process.
I work with this vscode configuration: https://github.com/fred-r-perso/lwfsm/tree/develop/.vscode
Inspired from: https://github.com/Open-CMSIS-Pack/vscode-get-started/blob/main/.vscode/tasks.json
I have my project defined here: https://github.com/fred-r-perso/lwfsm/tree/develop/examples/stm32/cmsis_lwfsm_demo
But the compilation fails:![image](https://user-images.githubusercontent.com/121050900/228360341-2e5622a0-0e9f-4192-8796-b1b7b4e16c4d.png)
The cbuild location is correct:
So I guess the issue is the fact that the .cprj file does not exist.
Indeed in CLI mode I do not pass the cprj as the parameter:
But passing the cprj is allowed:
Can you please indicate what is wrong in my setup ?