This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28388D: Error with freeRTOS on 28388D

Part Number: TMS320F28388D
Other Parts Discussed in Thread: SYSCONFIG, C2000WARE

Hello.

Qustion changed.

i use sysconfig example for 2838x Project (freertos_ex2_c28x_led_blinky_syscfg)

i set the softtimer, and compile

compile Error below

<Linking>
error #10056: symbol "LED_Timer0Handle" redefined: first defined in "./freertos_ex2_c28x_led_blinky_syscfg.obj"; redefined in "./syscfg/c2000_freertos.obj"
error #10010: errors encountered during linking; "freertos_ex2_c28x_led_blinky_syscfg.out" not built

Question 1: LED_Timer0Handle is not declared redundantly in freertos_ex2_c28x_led_blinky_syscfg.c file. But I am getting duplicate declaration error.
It doesn't come up in file search either.

c2000_freertos.c file in 

//
// Declare a variable to hold the handle of the created timer.
//
TimerHandle_t LED_Timer0Handle;

c2000_freertos.h file in

//
// Declare a variable to hold the handle of the created timer.
//
extern TimerHandle_t LED_Timer0Handle = NULL;

Is it a redundant declaration problem by declaring extern in h after declaring in c file?

If you recompile after deleting the extern part, an error occurs because it is newly created.

What problems could there be?

  • Hi,

    As a workaround, please update the file <C2000ware>\kernel\.meta\freertos_tool\templates line number 167:

    extern TimerHandle_t `timerInstance.timerHandle` = NULL;

    to

    extern TimerHandle_t `timerInstance.timerHandle`;

    This fix will be rolled out into the next C200ware release

    Regards,

    Veena