I am creating a project using FreeRTOS. I first created the project using SW4STM32 (ac6). I followed the procedure in the SystemView manual to add SystemView code to my project. My project built and SystemView worked.
However I desire to use SES rather than ac6 so I am porting the project over to SES. The project builds but there are 51 warnings including
implicit declaration of function 'SEGGER_SYSVIEW_Conf' [-Wimplicit-function-declaration]
implicit declaration of function 'SEGGER_SYSVIEW_Start' [-Wimplicit-function-declaration]
and 49 additional redefinition warnings such as
SEGGER_SYSVIEW_FreeRTOS.c
"traceTASK_NOTIFY_TAKE" redefined
SEGGER_SYSVIEW_FreeRTOS.c
this is the location of the previous definition
These warnings are caused because there are duplicate definitions in freeRTOS.h and in SEGGER_SYSVIEW_FreeRTOS.h. It seems that freeRTOS.h is being built first and then SEGGER_SYSVIEW_FreeRTOS.h. The SEGGER file redefines macros created in the FreeRTOS file.
How do I stop these warnings?
The bigger problem is that the compiler cannot find SEGGER_SYSVIEW_Conf and SEGGER_SYSVIEW_Start. Of course, they are needed to get SystemView to work. How do I fix this?
I have attached my project in case you want to look at it.
However I desire to use SES rather than ac6 so I am porting the project over to SES. The project builds but there are 51 warnings including
implicit declaration of function 'SEGGER_SYSVIEW_Conf' [-Wimplicit-function-declaration]
implicit declaration of function 'SEGGER_SYSVIEW_Start' [-Wimplicit-function-declaration]
and 49 additional redefinition warnings such as
SEGGER_SYSVIEW_FreeRTOS.c
"traceTASK_NOTIFY_TAKE" redefined
SEGGER_SYSVIEW_FreeRTOS.c
this is the location of the previous definition
These warnings are caused because there are duplicate definitions in freeRTOS.h and in SEGGER_SYSVIEW_FreeRTOS.h. It seems that freeRTOS.h is being built first and then SEGGER_SYSVIEW_FreeRTOS.h. The SEGGER file redefines macros created in the FreeRTOS file.
How do I stop these warnings?
The bigger problem is that the compiler cannot find SEGGER_SYSVIEW_Conf and SEGGER_SYSVIEW_Start. Of course, they are needed to get SystemView to work. How do I fix this?
I have attached my project in case you want to look at it.