Hi,
the procedure to include FreeRTOS into a project, that consistently works for me is as follows:
1. Copy FreeRTOS-Kernel folder into my project's root directory. This can be done either by git clone or manually from this repo: https://github.com/raspberrypi/FreeRTOS-Kernel/
2. Copy \FreeRTOS-Kernel\portable\ThirdParty\GCC\RP2350_ARM_NTZ\FreeRTOS_Kernel_import.cmake into project root
3. Copy the FreeRTOSConfig.h file from SDK example into project root. I mean this example: https://github.com/raspberrypi/pico-ex ... r/freertos
4. Do the following modifications to your CMakeLists.txt:
Add below pico_sdk_init():Inside of the target_link_libraries section add:5. Now FreeRTOS includes work.
This was tested for official Pico 2 W and the Raspberry Pico extension for VS Code.
What I was missing before was the correct FreeRTOSConfig file.
I hope somebody finds this helpful![Smile :)]()
the procedure to include FreeRTOS into a project, that consistently works for me is as follows:
1. Copy FreeRTOS-Kernel folder into my project's root directory. This can be done either by git clone or manually from this repo: https://github.com/raspberrypi/FreeRTOS-Kernel/
2. Copy \FreeRTOS-Kernel\portable\ThirdParty\GCC\RP2350_ARM_NTZ\FreeRTOS_Kernel_import.cmake into project root
3. Copy the FreeRTOSConfig.h file from SDK example into project root. I mean this example: https://github.com/raspberrypi/pico-ex ... r/freertos
4. Do the following modifications to your CMakeLists.txt:
Add below pico_sdk_init():
Code:
include(FreeRTOS_Kernel_import.cmake)Code:
FreeRTOS-Kernel-Heap4This was tested for official Pico 2 W and the Raspberry Pico extension for VS Code.
What I was missing before was the correct FreeRTOSConfig file.
I hope somebody finds this helpful
Statistics: Posted by guowa — Thu Mar 20, 2025 10:07 am