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

#error app_timer for freeRTOS requires configUSE_TIMERS option to be activated

Hi Alls,

I'm trying to compile and test the example project from SKD_12.3.0 and receiving the following error:

#error app_timer for freeRTOS requires configUSE_TIMERS option to be activated.

I have checked the FreeRTOSConfig.h file and seen that configUSE_TIMERS has already been defined as 1.

I'm not sure how I can activate configUSE_TIMERS. Has anyone come across this issue?

Thank you very much for reading my question?

Regards, Duc

Parents
  • There is one FreeRTOSConfig.h file in your project folder and there is one in nRF5_SDK_12.3.0_d7731ad\external\freertos\config

    Make sure that you are editing the correct header file that is in your project.

    Looking at the gcc Makefile of the example from the release, it looks like it is using the header from the project folder INC_FOLDERS +=
    $(PROJ_DIR)/config/ble_app_hrs_freertos_pca10040_s132 \

    This is simple preprocessing for the compiler, I cannot see how this could go wrong unless you are editing the wrong file.

Reply
  • There is one FreeRTOSConfig.h file in your project folder and there is one in nRF5_SDK_12.3.0_d7731ad\external\freertos\config

    Make sure that you are editing the correct header file that is in your project.

    Looking at the gcc Makefile of the example from the release, it looks like it is using the header from the project folder INC_FOLDERS +=
    $(PROJ_DIR)/config/ble_app_hrs_freertos_pca10040_s132 \

    This is simple preprocessing for the compiler, I cannot see how this could go wrong unless you are editing the wrong file.

Children
Related