Associate II
April 4, 2024
Solved
CMake error when building STM32 project outside STM32CubeIde
- 4 replies
- 6068 views
Hello everybody,
I'm trying to build an STM32 simple example based on CMake from the Windows shell but I got an error (I think because CMake doesn't find the GCC STM32CubeIde toolchain configuration).
If I run CMake from STM32CubeIde all works fine (I think because "the location of the toolchain is resolved by the "MCU Toolchain" project setting (via PATH)" as stated by the cubeide-gcc.cmake file).
I'm using STM32CubeIDe v 1.14.1
I started from the example shown in AN5952 doc.
I'm just wondering what is the additional option I have to set to build the example in Windows but outside the STM32CubeIde.
I attached a snapshot of the error.
Thanks
