This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Implementing FreeRTOS into an existing project

Hi, I am new to FreeRTOS and am planning to change to some of my code routines to FreeRTOS because my code has been expanding and in need of priorities interrupts. I face with a few challenges implementing FreeRTOS (just adding it into the project creates errors. So, I step back and look at the SDK peripheral examples. I found blinky and blinky_freertos examples. I figured if I can implement FreeRTOS into the blinky example, it would be pretty straight forward.

Here is how I did it:
1. Added FreeRTOS source files in the *.emproject
2. Added the nrf_sdh_freertos.c file in the *.emproject
3. Added the FREERTOS tag into preprocessor defines in *.emproject
4.Copied the FreeRTOSConfig.h file from the example
5.Replaced app_timer.c with app_timer_freertos.c

Still, I found this error
FreeRTOS.h: No such file or directory

I was trying to find how the example blinky_freertos refer to the FreeRTOS.h path but I cannot find it.

There seems to be something I'm missing. I need help. Thanks.

Regards,
Rahmat

SETUP: SES, SDK15.0.0, nRF52840-DK

Related