Closed fred-r-perso closed 1 year ago
I have to do this:
fredr2010@penguin:~/gh/lwfsm/examples/stm32/cmsis_lwfsm_demo$ csolution convert -s lwfsm_demo.csolution.yml
/home/fredr2010/gh/lwfsm/examples/stm32/cmsis_lwfsm_demo/sw_project/lwfsm_demo.debug+B-U585I-IOT02A.cprj - info csolution: file generated successfully
/home/fredr2010/gh/lwfsm/examples/stm32/cmsis_lwfsm_demo/sw_project/lwfsm_demo.release+B-U585I-IOT02A.cprj - info csolution: file generated successfully
/home/fredr2010/gh/lwfsm/examples/stm32/cmsis_lwfsm_demo/sw_project/lwfsm_demo.debug+B-U585I-IOT02A.cbuild.yml - info csolution: file generated successfully
/home/fredr2010/gh/lwfsm/examples/stm32/cmsis_lwfsm_demo/sw_project/lwfsm_demo.release+B-U585I-IOT02A.cbuild.yml - info csolution: file generated successfully
/home/fredr2010/gh/lwfsm/examples/stm32/cmsis_lwfsm_demo/lwfsm_demo.cbuild-idx.yml - info csolution: file generated successfully
fredr2010@penguin:~/gh/lwfsm/examples/stm32/cmsis_lwfsm_demo$ cbuildgen cmake --update-rte ./sw_project/lwfsm_demo.debug+B-U585I-IOT02A.cprj
M652: Generated file for project build: '/home/fredr2010/gh/lwfsm/examples/stm32/cmsis_lwfsm_demo/tmp/lwfsm_demo/B-U585I-IOT02A/debug/CMakeLists.txt'
The above is expected behavior. Here some background:
@fred-r-perso, you are touching on the questions:
As the term build implies, this orchestration tool by default expects a "fully configured" solution as input. Which means it requires that the "configuration" is complete and all files in the RTE folder are present, that required generators have been run and there is no unresolved dependencies.
cbuild invokes csolution
with the option --no-update-rte
and
cbuild invokes cbuildgen
without the option --update-rte
In case the build of your solution shall include the update of the RTE directory you may invoke
cbuild
with the option --update-rte
Hi Joachim, thanks for the explanations, this is clear.
I think it should be added in documentation.
Hi,
I am using this project: https://github.com/fred-r-perso/lwfsm/tree/develop/examples/stm32/cmsis_lwfsm_demo
But cbuild fails:
The problem is that no RTE folder is created, so the
config
files are not found.