Solved
Setup as STM32Cube project fails
- February 20, 2026
- 4 replies
- 359 views
I'm encountering a persistent issue when setting up an STM32Cube project in VS Code. Even when reverting to a previously working commit or starting a fresh setup from scratch (using the "Setup as an STM32Cube project" button), the process fails.
The following error message appears:
"Cube project discovery CMake configure step failed. Setup might be incomplete. Please check output logs"
I have tested this on two different machines running both Linux and Windows, but the result is the same. Here are the relevant logs:
2026-02-20 08:41:11.309 [Info] Adding cube-cmake path to environment: /home/user/.vscode/extensions/stmicroelectronics.stm32cube-ide-build-cmake-1.43.0/resources/cube-cmake/linux
2026-02-20 08:41:19.016 [Info] Running STM32Cube commands 'cube pack sync + cube pack install STMicroelectronics.stm32f4xx_dfp.1.1.0'
2026-02-20 08:41:19.665 [Error] /home/user/Downloads/project needs to be configured first
2026-02-20 08:41:22.979 [Info] Activating STM32Cube configurations for the code indexing feature...
2026-02-20 08:41:23.006 [Info] Configuring code indexing for '/home/user/Downloads/project'
2026-02-20 08:41:23.029 [Info] Cannot find project's build info yet
