Can you make FreeRTOS work with app_timer.c released with SDK?
Can you make FreeRTOS work with app_timer.c released with SDK?
FreeRTOS uses RTC1, app_timer.c also uses RTC1. So both of them cannot work together as it is.
There are two options to choose from when using FreeRTOS
Instead of using app_timer.c, you use app_timer_freertos.c. In this file instead of using RTC1 it uses RTOS timers API and freeRTOS is free to use RTC1 as no conflict exists.
This will only work in nRF52. Use change_freeRTOS_to_use_rtc2_instead_of_rtc1.patch which will force FreeRTOS to use RTC2. Now you can use app_timer.c (using RTC1) combined with FreeRTOS (using RTC2 after the patch)
i am using nrf52. i am facing the same issue mentioned above. can you kindly explain how to add the patch file to keil project ?
Hello,
Please check this explanation on how to apply patch files in git.
If you are not familiar with git, then you can open the .patch file in a text editor, and you should see which lines to remove (marked with "-"), and what to replace them with (marked with "+".
It is a fairly small patch file, with only 3 changes applied to 2 different files (which are listed).
Hello,
Please check this explanation on how to apply patch files in git.
If you are not familiar with git, then you can open the .patch file in a text editor, and you should see which lines to remove (marked with "-"), and what to replace them with (marked with "+".
It is a fairly small patch file, with only 3 changes applied to 2 different files (which are listed).