Skip to main content
Associate III
August 20, 2026
Question

NUCLEOC542 - toggle cmake project build fail

  • August 20, 2026
  • 2 replies
  • 56 views

I tried to build the GPIO Toggle project for the NUCLEO-C542RC board, but I encountered the following build error.

Could you help me to solve this issue?

 

**** CMake Configure of configuration release_GCC_NUCLEO-C542RC for project NUCLEOC542RC_LedBlink ****

C:\ST\STM32CubeIDE_1.14.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cmake.win32_1.1.200.202605190741\tools\bin\cmake.exe -S D:\Project\Gen3\InterfaceController\STM32CubeC5\examples\hal\gpio\toggle\NUCLEO-C542RC\cmake --preset release_GCC_NUCLEO-C542RC

CMake Warning:

Ignoring empty string ("") provided on the command line.

 

 

CMake Error at cmake/components.cmake:70 (add_subdirectory):

The source directory

 

D:/Project/Gen3/InterfaceController/STM32CubeC5/arch/cmsis

 

does not contain a CMakeLists.txt file.

Call Stack (most recent call first):

CMakeLists.txt:15 (include)

 

 

CMake Error at cmake/components.cmake:71 (add_subdirectory):

The source directory

 

D:/Project/Gen3/InterfaceController/STM32CubeC5/stm32c5xx_dfp

 

does not contain a CMakeLists.txt file.

Call Stack (most recent call first):

CMakeLists.txt:15 (include)

 

 

CMake Error at cmake/components.cmake:72 (add_subdirectory):

The source directory

 

D:/Project/Gen3/InterfaceController/STM32CubeC5/stm32c5xx_drivers

 

does not contain a CMakeLists.txt file.

Call Stack (most recent call first):

CMakeLists.txt:15 (include)

 

 

CMake Error at cmake/components.cmake:73 (add_subdirectory):

The source directory

 

D:/Project/Gen3/InterfaceController/STM32CubeC5/utilities/syscalls

 

does not contain a CMakeLists.txt file.

Call Stack (most recent call first):

CMakeLists.txt:15 (include)

 

 

-- Configuring incomplete, errors occurred!

 

 

 

2 replies

NagarajanAuthor
Associate III
August 20, 2026

I noticed that even after running the git clone command, not all driver files were downloaded, and some folders are empty. Could you please suggest the best way to download the complete source code for STM32CubeC5 series?

TDK
August 20, 2026

Use STM32CubeMX2 to generate the example projects for the STM32C5.

"If you feel a post has answered your question, please click ""Accept as Solution""."