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?

  • Hi,

    There seems to be a problem with how the files are packaged in SES. The application seems to run fine ,so you can just ignore the warnings in the meantime. I've reported the bug and it will be fixed in a future release. Keil doesn't produce the warnings so you can alternatively use it. 

    Best regards 

    Jared 

  • Doesn't SES (or, rather, GCC)  tell you where it thinks the previous definitions of these came from?

    Have you tried a text search through the source files?

    Have you checked for Defines in the Project settings?

    Have you looked at the preprocessor output files?

  • 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.