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.

TMS320F2800157: How to use FreeRTOS demos

Part Number: TMS320F2800157
Other Parts Discussed in Thread: C2000WARE

I am trying to test the demo located at C2000Ware_5_00_00_00\kernel\FreeRTOS\Demo\C2000_F280015x_C28x_CCS, but don't see a build configuration targeted at the Launchpad, and get several post-build errors when I try to build the example

  • Please add the pre-defined symbol _LAUNCHXL_F2800157 to change the macros to match the Launchpad configuration.

    On the post build steps, can you share the error details?

    Regards,

    Veena

  • I can define that macro but that doesn't define any additional build configurations. Which build config should I use to run on the Launchpad?

    Here's the error

    if  == 1  mkdir "C:/Users/danbujak/workspace_ccs_pw/freertos_ex1_c28x_led_blinky/CPU1_RAM/simulation"
    makefile:166: recipe for target 'post-build' failed
    mkdir was unexpected at this time.
    gmake[2]: [post-build] Error 255 (ignored)

  • It does not add any new build configuration, Once you add that macro, the device.h files will be updated to used the Launchpad specific values.

    For the post build issue, please remove the lines under Post-Build Steps

    Regards,

    Veena

  • When I define that macro, the application will no longer compile:

    error: option --define is missing its parameter 'NAME[=value]'
    gmake: *** [FreeRTOS/port/portasm.obj] Error 1

  • Can you share me the snapshot of where the macro is defined?

    Regards,

    Veena

  • I dont see any issue in how you have defined the symbol. Can you share the full console output?

    Regards,

    Veena

  • Have you been able to reproduce this behavior? It's unmodified, straight out of the C2000 SDK. 

    **** Build of configuration CPU1_RAM for project freertos_ex1_c28x_led_blinky ****
    
    "C:\\ti\\ccs1240\\ccs\\utils\\bin\\gmake" -k -j 12 all -O 
     
    Building file: "../freertos_ex1_c28x_led_blinky.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1240/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 --tmu_support=tmu0 -Ooff --include_path="C:/Users/dan/workspace_ccs_pw/freertos_ex1_c28x_led_blinky" --include_path="C:/Users/dan/workspace_ccs_pw/freertos_ex1_c28x_led_blinky/device" --include_path="C:/SDK/c2000/C2000Ware_5_00_00_00/driverlib/f280015x/driverlib" --include_path="C:/SDK/c2000/C2000Ware_5_00_00_00/kernel/FreeRTOS/Source/portable/CCS/C2000_C28x" --include_path="C:/SDK/c2000/C2000Ware_5_00_00_00/kernel/FreeRTOS/Source/include" --include_path="C:/ti/ccs1240/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --advice:performance=all --define= _LAUNCHXL_F2800157 --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="freertos_ex1_c28x_led_blinky.d_raw" --include_path="C:/Users/dan/workspace_ccs_pw/freertos_ex1_c28x_led_blinky/CPU1_RAM/syscfg"  "../freertos_ex1_c28x_led_blinky.c"
    subdir_rules.mk:9: recipe for target 'freertos_ex1_c28x_led_blinky.obj' failed
    error: option --define is missing its parameter 'NAME[=value]'
    gmake: *** [freertos_ex1_c28x_led_blinky.obj] Error 1
    Building file: "C:/SDK/c2000/C2000Ware_5_00_00_00/kernel/FreeRTOS/Source/tasks.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1240/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 --tmu_support=tmu0 -Ooff --include_path="C:/Users/dan/workspace_ccs_pw/freertos_ex1_c28x_led_blinky" --include_path="C:/Users/dan/workspace_ccs_pw/freertos_ex1_c28x_led_blinky/device" --include_path="C:/SDK/c2000/C2000Ware_5_00_00_00/driverlib/f280015x/driverlib" --include_path="C:/SDK/c2000/C2000Ware_5_00_00_00/kernel/FreeRTOS/Source/portable/CCS/C2000_C28x" --include_path="C:/SDK/c2000/C2000Ware_5_00_00_00/kernel/FreeRTOS/Source/include" --include_path="C:/ti/ccs1240/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --advice:performance=all --define= _LAUNCHXL_F2800157 --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="FreeRTOS/tasks.d_raw" --include_path="C:/Users/dan/workspace_ccs_pw/freertos_ex1_c28x_led_blinky/CPU1_RAM/syscfg" --obj_directory="FreeRTOS"  "C:/SDK/c2000/C2000Ware_5_00_00_00/kernel/FreeRTOS/Source/tasks.c"
    FreeRTOS/subdir_rules.mk:23: recipe for target 'FreeRTOS/tasks.obj' failed
    error: option --define is missing its parameter 'NAME[=value]'
    gmake: *** [FreeRTOS/tasks.obj] Error 1
    Building file: "C:/SDK/c2000/C2000Ware_5_00_00_00/kernel/FreeRTOS/Source/list.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1240/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 --tmu_support=tmu0 -Ooff --include_path="C:/Users/dan/workspace_ccs_pw/freertos_ex1_c28x_led_blinky" --include_path="C:/Users/dan/workspace_ccs_pw/freertos_ex1_c28x_led_blinky/device" --include_path="C:/SDK/c2000/C2000Ware_5_00_00_00/driverlib/f280015x/driverlib" --include_path="C:/SDK/c2000/C2000Ware_5_00_00_00/kernel/FreeRTOS/Source/portable/CCS/C2000_C28x" --include_path="C:/SDK/c2000/C2000Ware_5_00_00_00/kernel/FreeRTOS/Source/include" --include_path="C:/ti/ccs1240/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --advice:performance=all --define= _LAUNCHXL_F2800157 --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="FreeRTOS/list.d_raw" --include_path="C:/Users/dan/workspace_ccs_pw/freertos_ex1_c28x_led_blinky/CPU1_RAM/syscfg" --obj_directory="FreeRTOS"  "C:/SDK/c2000/C2000Ware_5_00_00_00/kernel/FreeRTOS/Source/list.c"
    FreeRTOS/subdir_rules.mk:9: recipe for target 'FreeRTOS/list.obj' failed
    error: option --define is missing its parameter 'NAME[=value]'
    gmake: *** [FreeRTOS/list.obj] Error 1
    Building file: "C:/SDK/c2000/C2000Ware_5_00_00_00/kernel/FreeRTOS/Source/queue.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1240/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 --tmu_support=tmu0 -Ooff --include_path="C:/Users/dan/workspace_ccs_pw/freertos_ex1_c28x_led_blinky" --include_path="C:/Users/dan/workspace_ccs_pw/freertos_ex1_c28x_led_blinky/device" --include_path="C:/SDK/c2000/C2000Ware_5_00_00_00/driverlib/f280015x/driverlib" --include_path="C:/SDK/c2000/C2000Ware_5_00_00_00/kernel/FreeRTOS/Source/portable/CCS/C2000_C28x" --include_path="C:/SDK/c2000/C2000Ware_5_00_00_00/kernel/FreeRTOS/Source/include" --include_path="C:/ti/ccs1240/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --advice:performance=all --define= _LAUNCHXL_F2800157 --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="FreeRTOS/queue.d_raw" --include_path="C:/Users/dan/workspace_ccs_pw/freertos_ex1_c28x_led_blinky/CPU1_RAM/syscfg" --obj_directory="FreeRTOS"  "C:/SDK/c2000/C2000Ware_5_00_00_00/kernel/FreeRTOS/Source/queue.c"
    FreeRTOS/subdir_rules.mk:16: recipe for target 'FreeRTOS/queue.obj' failed
    error: option --define is missing its parameter 'NAME[=value]'
    gmake: *** [FreeRTOS/queue.obj] Error 1
    Building file: "C:/SDK/c2000/C2000Ware_5_00_00_00/kernel/FreeRTOS/Source/portable/CCS/C2000_C28x/port.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1240/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 --tmu_support=tmu0 -Ooff --include_path="C:/Users/dan/workspace_ccs_pw/freertos_ex1_c28x_led_blinky" --include_path="C:/Users/dan/workspace_ccs_pw/freertos_ex1_c28x_led_blinky/device" --include_path="C:/SDK/c2000/C2000Ware_5_00_00_00/driverlib/f280015x/driverlib" --include_path="C:/SDK/c2000/C2000Ware_5_00_00_00/kernel/FreeRTOS/Source/portable/CCS/C2000_C28x" --include_path="C:/SDK/c2000/C2000Ware_5_00_00_00/kernel/FreeRTOS/Source/include" --include_path="C:/ti/ccs1240/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --advice:performance=all --define= _LAUNCHXL_F2800157 --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="FreeRTOS/port/port.d_raw" --include_path="C:/Users/dan/workspace_ccs_pw/freertos_ex1_c28x_led_blinky/CPU1_RAM/syscfg" --obj_directory="FreeRTOS/port"  "C:/SDK/c2000/C2000Ware_5_00_00_00/kernel/FreeRTOS/Source/portable/CCS/C2000_C28x/port.c"
    FreeRTOS/port/subdir_rules.mk:9: recipe for target 'FreeRTOS/port/port.obj' failed
    error: option --define is missing its parameter 'NAME[=value]'
    gmake: *** [FreeRTOS/port/port.obj] Error 1
    Building file: "C:/SDK/c2000/C2000Ware_5_00_00_00/kernel/FreeRTOS/Source/portable/CCS/C2000_C28x/portasm.asm"
    Invoking: C2000 Compiler
    "C:/ti/ccs1240/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 --tmu_support=tmu0 -Ooff --include_path="C:/Users/dan/workspace_ccs_pw/freertos_ex1_c28x_led_blinky" --include_path="C:/Users/dan/workspace_ccs_pw/freertos_ex1_c28x_led_blinky/device" --include_path="C:/SDK/c2000/C2000Ware_5_00_00_00/driverlib/f280015x/driverlib" --include_path="C:/SDK/c2000/C2000Ware_5_00_00_00/kernel/FreeRTOS/Source/portable/CCS/C2000_C28x" --include_path="C:/SDK/c2000/C2000Ware_5_00_00_00/kernel/FreeRTOS/Source/include" --include_path="C:/ti/ccs1240/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --advice:performance=all --define= _LAUNCHXL_F2800157 --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="FreeRTOS/port/portasm.d_raw" --include_path="C:/Users/dan/workspace_ccs_pw/freertos_ex1_c28x_led_blinky/CPU1_RAM/syscfg" --obj_directory="FreeRTOS/port"  "C:/SDK/c2000/C2000Ware_5_00_00_00/kernel/FreeRTOS/Source/portable/CCS/C2000_C28x/portasm.asm"
    FreeRTOS/port/subdir_rules.mk:16: recipe for target 'FreeRTOS/port/portasm.obj' failed
    error: option --define is missing its parameter 'NAME[=value]'
    gmake: *** [FreeRTOS/port/portasm.obj] Error 1
    Building file: "../device/device.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1240/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 --tmu_support=tmu0 -Ooff --include_path="C:/Users/dan/workspace_ccs_pw/freertos_ex1_c28x_led_blinky" --include_path="C:/Users/dan/workspace_ccs_pw/freertos_ex1_c28x_led_blinky/device" --include_path="C:/SDK/c2000/C2000Ware_5_00_00_00/driverlib/f280015x/driverlib" --include_path="C:/SDK/c2000/C2000Ware_5_00_00_00/kernel/FreeRTOS/Source/portable/CCS/C2000_C28x" --include_path="C:/SDK/c2000/C2000Ware_5_00_00_00/kernel/FreeRTOS/Source/include" --include_path="C:/ti/ccs1240/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --advice:performance=all --define= _LAUNCHXL_F2800157 --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="device/device.d_raw" --include_path="C:/Users/dan/workspace_ccs_pw/freertos_ex1_c28x_led_blinky/CPU1_RAM/syscfg" --obj_directory="device"  "../device/device.c"
    device/subdir_rules.mk:9: recipe for target 'device/device.obj' failed
    error: option --define is missing its parameter 'NAME[=value]'
    gmake: *** [device/device.obj] Error 1
    Building file: "../device/f280015x_codestartbranch.asm"
    Invoking: C2000 Compiler
    "C:/ti/ccs1240/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 --tmu_support=tmu0 -Ooff --include_path="C:/Users/dan/workspace_ccs_pw/freertos_ex1_c28x_led_blinky" --include_path="C:/Users/dan/workspace_ccs_pw/freertos_ex1_c28x_led_blinky/device" --include_path="C:/SDK/c2000/C2000Ware_5_00_00_00/driverlib/f280015x/driverlib" --include_path="C:/SDK/c2000/C2000Ware_5_00_00_00/kernel/FreeRTOS/Source/portable/CCS/C2000_C28x" --include_path="C:/SDK/c2000/C2000Ware_5_00_00_00/kernel/FreeRTOS/Source/include" --include_path="C:/ti/ccs1240/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --advice:performance=all --define= _LAUNCHXL_F2800157 --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="device/f280015x_codestartbranch.d_raw" --include_path="C:/Users/dan/workspace_ccs_pw/freertos_ex1_c28x_led_blinky/CPU1_RAM/syscfg" --obj_directory="device"  "../device/f280015x_codestartbranch.asm"
    device/subdir_rules.mk:16: recipe for target 'device/f280015x_codestartbranch.obj' failed
    error: option --define is missing its parameter 'NAME[=value]'
    gmake: *** [device/f280015x_codestartbranch.obj] Error 1
    gmake: Target 'all' not remade because of errors.
    
    **** Build Finished ****