2025-12-18 8:14 AM
The project builds successfully without any issues in the terminal. However, I am seeing the following error in the VS Code editor:
"error: unknown argument: '--multi-lib-config=...'"
2025-12-18 10:00 AM - edited 2025-12-18 10:09 AM
Hi @amazone,
I've just tried using STM32CubeMX 6.15 to generate a project for my F446RE-Nucleo board, and I was able to open it in VSCode and build it on MacOS.
Maybe you missed doing the project setup?
If so you can force it manually via the Setup STM32Cube Project action.
2025-12-18 6:13 PM - edited 2025-12-18 6:45 PM
Hi, @Julien D
I set up the same STM32CubeMX 6.16.1 project for the F446RE-Nucleo board. I've finished the setup in VS Code as you described.
In starm-clang.cmake, STARM_TOOLCHAIN_CONFIG is set to STARM_PICOLIBC by default. Under this setting, the build completes successfully when main.c is open. However, if I change STARM_TOOLCHAIN_CONFIG to STARM_HYBRID and attempt to build with main.c open, an error occurs.
2025-12-18 11:41 PM - edited 2025-12-18 11:50 PM
I managed to reproduce what you observed on my side as well.
It is not an issue related to your project configuration; it is a known bug in the ST extensions that affects clangd, the indexing service for CLANG projects.
That being said, for now, you can ignore this type of error message in the problem view and editor while waiting for a fix, which should be released in 2026.