Describe the bug
First of, sorry for putting this here instead of the Forums, but new sign-ups are currently blocked.
I'm trying to install FreeRTOS and the Pico-SDK via CMake but get the following error:
[cmake] CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
[cmake] Missing variable is:
[cmake] CMAKE_C_COMPILE_OBJECT
For configuring/building, I use the CMake extension with an unspecified kit, and debug build.
Target
Development board: Raspberry Pi Pico
Instruction Set Architecture: ARM
IDE and version: VS Code 1.89.1
Toolchain and version: arm-none-eabi-gcc (Arch Repository) 14.1.0
Expected behavior
FreeRTOS and the Pico-SDK are installed into the build directory without issues.
Additional context
CLI output:
[main] Configuring project: freeRTOS-pico
[proc] Executing command: /usr/bin/cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -S<my-home>/Code/freeRTOS-pico -B<my-home>/Code/freeRTOS-pico/build -G Ninja
[cmake] Importing FreeRTOS
[cmake] Not searching for unused variables given on the command line.
[cmake] Downloading Free RTOS
[cmake] Importing FreeRTOS RP2040 Kernel
[cmake] PICO_SDK_PATH is <my-home>/Code/freeRTOS-pico/build/_deps/pico_sdk-src
[cmake] PICO platform is rp2040.
[cmake] System is unknown to cmake, create:
[cmake] Platform/PICO to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
[cmake] Your CMakeCache.txt file was copied to CopyOfCMakeCache.txt. Please post that file on discourse.cmake.org.
[cmake] Build type is Debug
[cmake] Using regular optimized debug build (set PICO_DEOPTIMIZED_DEBUG=1 to de-optimize)
[cmake] PICO target board is pico.
[cmake] Using board configuration from <my-home>/Code/freeRTOS-pico/build/_deps/pico_sdk-src/src/boards/include/boards/pico.h
[cmake] TinyUSB available at <my-home>/Code/freeRTOS-pico/build/_deps/pico_sdk-src/lib/tinyusb/src/portable/raspberrypi/rp2040; enabling build support for USB.
[cmake] Compiling TinyUSB with CFG_TUSB_DEBUG=1
[cmake] BTstack available at <my-home>/Code/freeRTOS-pico/build/_deps/pico_sdk-src/lib/btstack
[cmake] cyw43-driver available at <my-home>/Code/freeRTOS-pico/build/_deps/pico_sdk-src/lib/cyw43-driver
[cmake] Pico W Bluetooth build support available.
[cmake] lwIP available at <my-home>/Code/freeRTOS-pico/build/_deps/pico_sdk-src/lib/lwip
[cmake] mbedtls available at<my-home>/Code/freeRTOS-pico/build/_deps/pico_sdk-src/lib/mbedtls
[cmake] -- Configuring done (0.4s)
[cmake] CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
[cmake] Missing variable is:
[cmake] CMAKE_C_COMPILE_OBJECT
[cmake] CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
[cmake] Missing variable is:
[cmake] CMAKE_C_COMPILE_OBJECT
[cmake] CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
[cmake] Missing variable is:
[cmake] CMAKE_C_COMPILE_OBJECT
[cmake] CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
[cmake] Missing variable is:
[cmake] CMAKE_C_COMPILE_OBJECT
[cmake] CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
[cmake] Missing variable is:
[cmake] CMAKE_C_COMPILE_OBJECT
[cmake] CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
[cmake] Missing variable is:
[cmake] CMAKE_C_COMPILE_OBJECT
[cmake] CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
[cmake] Missing variable is:
[cmake] CMAKE_C_COMPILE_OBJECT
[cmake] CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
[cmake] Missing variable is:
[cmake] CMAKE_C_COMPILE_OBJECT
[cmake] CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
[cmake] Missing variable is:
[cmake] CMAKE_C_COMPILE_OBJECT
[cmake] CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
[cmake] Missing variable is:
[cmake] CMAKE_C_ARCHIVE_CREATE
[cmake] CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
[cmake] Missing variable is:
[cmake] CMAKE_C_ARCHIVE_FINISH
[cmake] CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
[cmake] Missing variable is:
[cmake] CMAKE_C_COMPILE_OBJECT
[cmake] CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
[cmake] Missing variable is:
[cmake] CMAKE_C_COMPILE_OBJECT
[cmake] -- Generating done (0.0s)
[cmake] CMake Generate step failed. Build files cannot be regenerated correctly.
[proc] The command: /usr/bin/cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -S<my-home>/Code/freeRTOS-pico -B<my-home>/Code/freeRTOS-pico/build -G Ninja exited with code: 1
Describe the bug First of, sorry for putting this here instead of the Forums, but new sign-ups are currently blocked.
I'm trying to install FreeRTOS and the Pico-SDK via CMake but get the following error:
For configuring/building, I use the CMake extension with an unspecified kit, and debug build.
Target
VS Code 1.89.1
arm-none-eabi-gcc (Arch Repository) 14.1.0
Host
6.9.2-arch1-1
To Reproduce I have the following structure:
Here are the relevant file contents:
./CMakeLists.txt
:free_rtos_import.cmake
:The
FreeRTOSConfig.h
is the template one from theexamples
directory of this repo. Themain.cpp
is from the Pico example:src/CMakeLists.txt
:Expected behavior FreeRTOS and the Pico-SDK are installed into the
build
directory without issues.Additional context CLI output: