Closed luverolla closed 6 months ago
Can you run cmake
in trace mode and post a log of the call to add_startup
(no need for the full log as that section should suffice).
Workaround: You can provide the STARTUP
parameter to the cubemx_target
invocation which will override the auto-detection.
Nonetheless it'd be nice to see, why this currently breaks for you.
Workaround: You can provide the
STARTUP
parameter to thecubemx_target
invocation which will override the auto-detection.
see also caveats (2nd point)
I also tried the solution proposed in the caveats section with no result. But then I noticed I made a typo in the target definition. Now everything works correctly. Thank you two both anyway for your help.
I have generated a CubeMX project, called
demo-mx
, and the startup file is correctly present at the root directory. In my case, using an STM32F401RE, the startup file isstartup_stm32f401xe.s
. But, when trying to build with CMake this error is thrown:I followed all the steps under "How to use section", and below are attached the source tree and the content of the
CMakeLists.txt
file