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

What is causing the compiler warnings in the FreeRTOS ble hrs example?

After compiling the SDK 15.2 ble_app_hrs_freertos_pca_10056_s14 example in Segger Embedded Studio there are a number of repeated warnings:

"configTICK_SOURCE" redefined

"configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY" redefined

I'm having trouble tracking down the cause of these. Is there a solution/patch to eliminate these warnings?

Parents
  • I just fought with this for about an hour, and finally found it.

    The problem is that these exist in the "Preprocessor Definitions", with incorrect (empty) definitions that need to be deleted. The real definitions already exist in "FreeRTOSConfig.h".

    To fix it, open the "Options" dialog on the project (right click on the project in the navigation tree). Select "Common" from the drop-down at the top, and then select "Preprocessor" on the left. Double click on the "Preprocessor Definitions" settings.

    Find ALL defines that start with "config" (like the ones mentioned in this post), and delete ALL of them.

Reply
  • I just fought with this for about an hour, and finally found it.

    The problem is that these exist in the "Preprocessor Definitions", with incorrect (empty) definitions that need to be deleted. The real definitions already exist in "FreeRTOSConfig.h".

    To fix it, open the "Options" dialog on the project (right click on the project in the navigation tree). Select "Common" from the drop-down at the top, and then select "Preprocessor" on the left. Double click on the "Preprocessor Definitions" settings.

    Find ALL defines that start with "config" (like the ones mentioned in this post), and delete ALL of them.

Children
No Data
Related