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.

CC1352R: How to compile a project with FreeRTOS?

Part Number: CC1352R


I am trying to compile some of the projects that utilize FreeRTOS. I get compiler errors referring to missing includes such as:

../main_freertos.c:46:10: fatal error: FreeRTOS.h: No such file or directory

and

syscfg/ti_freertos_config.c:24:10: fatal error: ../../Source/list.c: No such file or directory

Am I missing some library that includes FreeRTOS? Please help me out, annoying that there is no documentation on this...

Thanks

  • Hi Arthur.

    I followed those instruction. It did not work. I still get the issues.

    That seems to be for something called "Sidewalk". I am trying to compile the example "rfPacketTx_CC1312R1_LAUNCHXL_freertos_gcc"

  • Alexander,

    Those instructions, even though they are in the Sidewalk docs, also apply to your rfPacketTx example.

    What is not working exactly? Could you please share a log of the build? Also, what SDK version are you using?

    Here is another piece of documentation for FreeRTOS: https://dev.ti.com/tirex/content/simplelink_cc13xx_cc26xx_sdk_5_40_00_40/docs/ble5stack/ble_user_guide/html/freertos/config.html#using-freertos-with-ccs

    Regards,

    Arthur

  • Here is the build log:

    **** Build of configuration Debug for project cc13x2_daq ****
    
    "C:\\ti\\ccs1230\\ccs\\utils\\bin\\gmake" -k -j 20 all -O 
     
    Building file: "../rfPacketTx.syscfg"
    Invoking: SysConfig
    "C:/ti/sysconfig_1_15_0/sysconfig_cli.bat" -s "C:/ti/simplelink_cc13xx_cc26xx_sdk_6_41_00_17/.metadata/product.json" --script "C:/Users/alexa/workspace_v12/cc13x2_daq/rfPacketTx.syscfg" -o "syscfg" --compiler gcc
    Running script...
    Validating...
    Generating Code (rfPacketTx.syscfg)...
    Writing C:\Users\alexa\workspace_v12\cc13x2_daq\Debug\syscfg\ti_devices_config.c...
    Writing C:\Users\alexa\workspace_v12\cc13x2_daq\Debug\syscfg\ti_radio_config.c...
    Writing C:\Users\alexa\workspace_v12\cc13x2_daq\Debug\syscfg\ti_radio_config.h...
    Writing C:\Users\alexa\workspace_v12\cc13x2_daq\Debug\syscfg\ti_drivers_config.c...
    Writing C:\Users\alexa\workspace_v12\cc13x2_daq\Debug\syscfg\ti_drivers_config.h...
    Writing C:\Users\alexa\workspace_v12\cc13x2_daq\Debug\syscfg\ti_utils_build_linker.cmd.genlibs...
    Writing C:\Users\alexa\workspace_v12\cc13x2_daq\Debug\syscfg\syscfg_c.rov.xs...
    Writing C:\Users\alexa\workspace_v12\cc13x2_daq\Debug\syscfg\ti_utils_runtime_model.gv...
    Writing C:\Users\alexa\workspace_v12\cc13x2_daq\Debug\syscfg\ti_utils_runtime_Makefile...
    Writing C:\Users\alexa\workspace_v12\cc13x2_daq\Debug\syscfg\FreeRTOSConfig.h...
    Writing C:\Users\alexa\workspace_v12\cc13x2_daq\Debug\syscfg\ti_freertos_config.c...
    Writing C:\Users\alexa\workspace_v12\cc13x2_daq\Debug\syscfg\ti_freertos_portable_config.c...
    Finished building: "../rfPacketTx.syscfg"
     
    Building file: "../main_freertos.c"
    Invoking: GNU Compiler
    "C:/ti/gcc_arm_none_eabi_9_2_1/bin/arm-none-eabi-gcc-9.2.1.exe" -c -mcpu=cortex-m4 -march=armv7e-m -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DDeviceFamily_CC13X2 -I"C:/Users/alexa/workspace_v12/cc13x2_daq" -I"C:/Users/alexa/workspace_v12/cc13x2_daq/Debug" -I"C:/ti/simplelink_cc13xx_cc26xx_sdk_6_41_00_17/source" -I"C:/ti/simplelink_cc13xx_cc26xx_sdk_6_41_00_17/kernel/freertos" -I"C:/ti/simplelink_cc13xx_cc26xx_sdk_6_41_00_17/source/ti/posix/gcc" -I"C:/Users/alexa/STM32CubeIDE/workspace_1.12.0/wg55_ble_daq/FreeRTOS-Kernel/FreeRTOS/Source/include" -I"C:/Users/alexa/STM32CubeIDE/workspace_1.12.0/wg55_ble_daq/FreeRTOS-Kernel/FreeRTOS/Source/portable/GCC/ARM_CM4F" -I"C:/ti/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include/newlib-nano" -I"C:/ti/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include" -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"main_freertos.d_raw" -MT"main_freertos.o" -I"C:/Users/alexa/workspace_v12/cc13x2_daq/Debug/syscfg" -std=c18  -o"main_freertos.o" "../main_freertos.c"
    subdir_rules.mk:9: recipe for target 'main_freertos.o' failed
    ../main_freertos.c:46:10: fatal error: FreeRTOS.h: No such file or directory
       46 | #include <FreeRTOS.h>
          |          ^~~~~~~~~~~~
    compilation terminated.
    gmake: *** [main_freertos.o] Error 1
    Building file: "../rfPacketTx.c"
    Invoking: GNU Compiler
    "C:/ti/gcc_arm_none_eabi_9_2_1/bin/arm-none-eabi-gcc-9.2.1.exe" -c -mcpu=cortex-m4 -march=armv7e-m -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DDeviceFamily_CC13X2 -I"C:/Users/alexa/workspace_v12/cc13x2_daq" -I"C:/Users/alexa/workspace_v12/cc13x2_daq/Debug" -I"C:/ti/simplelink_cc13xx_cc26xx_sdk_6_41_00_17/source" -I"C:/ti/simplelink_cc13xx_cc26xx_sdk_6_41_00_17/kernel/freertos" -I"C:/ti/simplelink_cc13xx_cc26xx_sdk_6_41_00_17/source/ti/posix/gcc" -I"C:/Users/alexa/STM32CubeIDE/workspace_1.12.0/wg55_ble_daq/FreeRTOS-Kernel/FreeRTOS/Source/include" -I"C:/Users/alexa/STM32CubeIDE/workspace_1.12.0/wg55_ble_daq/FreeRTOS-Kernel/FreeRTOS/Source/portable/GCC/ARM_CM4F" -I"C:/ti/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include/newlib-nano" -I"C:/ti/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include" -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"rfPacketTx.d_raw" -MT"rfPacketTx.o" -I"C:/Users/alexa/workspace_v12/cc13x2_daq/Debug/syscfg" -std=c18  -o"rfPacketTx.o" "../rfPacketTx.c"
    Finished building: "../rfPacketTx.c"
     
    Building file: "syscfg/ti_devices_config.c"
    Invoking: GNU Compiler
    "C:/ti/gcc_arm_none_eabi_9_2_1/bin/arm-none-eabi-gcc-9.2.1.exe" -c -mcpu=cortex-m4 -march=armv7e-m -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DDeviceFamily_CC13X2 -I"C:/Users/alexa/workspace_v12/cc13x2_daq" -I"C:/Users/alexa/workspace_v12/cc13x2_daq/Debug" -I"C:/ti/simplelink_cc13xx_cc26xx_sdk_6_41_00_17/source" -I"C:/ti/simplelink_cc13xx_cc26xx_sdk_6_41_00_17/kernel/freertos" -I"C:/ti/simplelink_cc13xx_cc26xx_sdk_6_41_00_17/source/ti/posix/gcc" -I"C:/Users/alexa/STM32CubeIDE/workspace_1.12.0/wg55_ble_daq/FreeRTOS-Kernel/FreeRTOS/Source/include" -I"C:/Users/alexa/STM32CubeIDE/workspace_1.12.0/wg55_ble_daq/FreeRTOS-Kernel/FreeRTOS/Source/portable/GCC/ARM_CM4F" -I"C:/ti/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include/newlib-nano" -I"C:/ti/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include" -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"syscfg/ti_devices_config.d_raw" -MT"syscfg/ti_devices_config.o" -I"C:/Users/alexa/workspace_v12/cc13x2_daq/Debug/syscfg" -std=c18  -o"syscfg/ti_devices_config.o" "syscfg/ti_devices_config.c"
    Finished building: "syscfg/ti_devices_config.c"
     
    Building file: "syscfg/ti_freertos_config.c"
    Invoking: GNU Compiler
    "C:/ti/gcc_arm_none_eabi_9_2_1/bin/arm-none-eabi-gcc-9.2.1.exe" -c -mcpu=cortex-m4 -march=armv7e-m -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DDeviceFamily_CC13X2 -I"C:/Users/alexa/workspace_v12/cc13x2_daq" -I"C:/Users/alexa/workspace_v12/cc13x2_daq/Debug" -I"C:/ti/simplelink_cc13xx_cc26xx_sdk_6_41_00_17/source" -I"C:/ti/simplelink_cc13xx_cc26xx_sdk_6_41_00_17/kernel/freertos" -I"C:/ti/simplelink_cc13xx_cc26xx_sdk_6_41_00_17/source/ti/posix/gcc" -I"C:/Users/alexa/STM32CubeIDE/workspace_1.12.0/wg55_ble_daq/FreeRTOS-Kernel/FreeRTOS/Source/include" -I"C:/Users/alexa/STM32CubeIDE/workspace_1.12.0/wg55_ble_daq/FreeRTOS-Kernel/FreeRTOS/Source/portable/GCC/ARM_CM4F" -I"C:/ti/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include/newlib-nano" -I"C:/ti/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include" -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"syscfg/ti_freertos_config.d_raw" -MT"syscfg/ti_freertos_config.o" -I"C:/Users/alexa/workspace_v12/cc13x2_daq/Debug/syscfg" -std=c18  -o"syscfg/ti_freertos_config.o" "syscfg/ti_freertos_config.c"
    subdir_rules.mk:37: recipe for target 'syscfg/ti_freertos_config.o' failed
    syscfg/ti_freertos_config.c:24:10: fatal error: ../../Source/list.c: No such file or directory
       24 | #include <../../Source/list.c>
          |          ^~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    gmake: *** [syscfg/ti_freertos_config.o] Error 1
    Building file: "syscfg/ti_radio_config.c"
    Invoking: GNU Compiler
    "C:/ti/gcc_arm_none_eabi_9_2_1/bin/arm-none-eabi-gcc-9.2.1.exe" -c -mcpu=cortex-m4 -march=armv7e-m -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DDeviceFamily_CC13X2 -I"C:/Users/alexa/workspace_v12/cc13x2_daq" -I"C:/Users/alexa/workspace_v12/cc13x2_daq/Debug" -I"C:/ti/simplelink_cc13xx_cc26xx_sdk_6_41_00_17/source" -I"C:/ti/simplelink_cc13xx_cc26xx_sdk_6_41_00_17/kernel/freertos" -I"C:/ti/simplelink_cc13xx_cc26xx_sdk_6_41_00_17/source/ti/posix/gcc" -I"C:/Users/alexa/STM32CubeIDE/workspace_1.12.0/wg55_ble_daq/FreeRTOS-Kernel/FreeRTOS/Source/include" -I"C:/Users/alexa/STM32CubeIDE/workspace_1.12.0/wg55_ble_daq/FreeRTOS-Kernel/FreeRTOS/Source/portable/GCC/ARM_CM4F" -I"C:/ti/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include/newlib-nano" -I"C:/ti/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include" -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"syscfg/ti_radio_config.d_raw" -MT"syscfg/ti_radio_config.o" -I"C:/Users/alexa/workspace_v12/cc13x2_daq/Debug/syscfg" -std=c18  -o"syscfg/ti_radio_config.o" "syscfg/ti_radio_config.c"
    Finished building: "syscfg/ti_radio_config.c"
     
    Building file: "syscfg/ti_drivers_config.c"
    Invoking: GNU Compiler
    "C:/ti/gcc_arm_none_eabi_9_2_1/bin/arm-none-eabi-gcc-9.2.1.exe" -c -mcpu=cortex-m4 -march=armv7e-m -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DDeviceFamily_CC13X2 -I"C:/Users/alexa/workspace_v12/cc13x2_daq" -I"C:/Users/alexa/workspace_v12/cc13x2_daq/Debug" -I"C:/ti/simplelink_cc13xx_cc26xx_sdk_6_41_00_17/source" -I"C:/ti/simplelink_cc13xx_cc26xx_sdk_6_41_00_17/kernel/freertos" -I"C:/ti/simplelink_cc13xx_cc26xx_sdk_6_41_00_17/source/ti/posix/gcc" -I"C:/Users/alexa/STM32CubeIDE/workspace_1.12.0/wg55_ble_daq/FreeRTOS-Kernel/FreeRTOS/Source/include" -I"C:/Users/alexa/STM32CubeIDE/workspace_1.12.0/wg55_ble_daq/FreeRTOS-Kernel/FreeRTOS/Source/portable/GCC/ARM_CM4F" -I"C:/ti/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include/newlib-nano" -I"C:/ti/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include" -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"syscfg/ti_drivers_config.d_raw" -MT"syscfg/ti_drivers_config.o" -I"C:/Users/alexa/workspace_v12/cc13x2_daq/Debug/syscfg" -std=c18  -o"syscfg/ti_drivers_config.o" "syscfg/ti_drivers_config.c"
    Finished building: "syscfg/ti_drivers_config.c"
     
    Building file: "syscfg/ti_freertos_portable_config.c"
    Invoking: GNU Compiler
    "C:/ti/gcc_arm_none_eabi_9_2_1/bin/arm-none-eabi-gcc-9.2.1.exe" -c -mcpu=cortex-m4 -march=armv7e-m -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DDeviceFamily_CC13X2 -I"C:/Users/alexa/workspace_v12/cc13x2_daq" -I"C:/Users/alexa/workspace_v12/cc13x2_daq/Debug" -I"C:/ti/simplelink_cc13xx_cc26xx_sdk_6_41_00_17/source" -I"C:/ti/simplelink_cc13xx_cc26xx_sdk_6_41_00_17/kernel/freertos" -I"C:/ti/simplelink_cc13xx_cc26xx_sdk_6_41_00_17/source/ti/posix/gcc" -I"C:/Users/alexa/STM32CubeIDE/workspace_1.12.0/wg55_ble_daq/FreeRTOS-Kernel/FreeRTOS/Source/include" -I"C:/Users/alexa/STM32CubeIDE/workspace_1.12.0/wg55_ble_daq/FreeRTOS-Kernel/FreeRTOS/Source/portable/GCC/ARM_CM4F" -I"C:/ti/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include/newlib-nano" -I"C:/ti/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include" -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"syscfg/ti_freertos_portable_config.d_raw" -MT"syscfg/ti_freertos_portable_config.o" -I"C:/Users/alexa/workspace_v12/cc13x2_daq/Debug/syscfg" -std=c18  -o"syscfg/ti_freertos_portable_config.o" "syscfg/ti_freertos_portable_config.c"
    subdir_rules.mk:37: recipe for target 'syscfg/ti_freertos_portable_config.o' failed
    syscfg/ti_freertos_portable_config.c:14:10: fatal error: ../portable/GCC/ARM_CM4F/port.c: No such file or directory
       14 | #include <../portable/GCC/ARM_CM4F/port.c>
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    gmake: *** [syscfg/ti_freertos_portable_config.o] Error 1
    gmake: Target 'all' not remade because of errors.
    
    **** Build Finished ****
    

  • I looked at those instructions and `FREERTOS_INSTALL_DIR` seems to already have been included as a linked resource. I suppose it did it automatically when I added it to the build variables.

  • Just saw that last question.

    I am using Simplelink CC13xx 26xx SDK 6.41.0.7

  • Hi Alexander,

    What FreeRTOS version did you download? It has to be https://github.com/FreeRTOS/FreeRTOS/releases/tag/202104.00

    FREERTOS_INSTALL_DIR must also point to following folder:

    Regards,

    Arthur

  • Yep, that was the issue.

    I was pointing it at the FreeRTOS directory.

    Thanks for your help.