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.

Creating TiRTOS as static library for CC2650

Other Parts Discussed in Thread: CC2650, CC3200

Hello,

currently we are about to build an application for the CC2650. Therefore we need the TiRTOS as a static library to link against because on our build-server we do not have any xdctools.

In the CC3200-sdk, the oslib project contains a "libtirtos.a" under gcc/exe. Now we are interested in how we can build this library on ourselves for the CC2650. We saw that both CC32xx and cc26xx use the simplelink_tirtos. Are they the same?

With the Makefile under oslib/gcc, we can build the libFreeRTOS.a. When running Makefile_oslib_tirtos, at the moment we get the error, that include <xdc/std.h> cannot be found.

Now we would like to now how we could get this running, so that we can build a static tirtos.a library to use for the CC2650.

 

Best regards

  • Hi,

    What version of TIRTOS are you using?

    In the User_Guide.pdf there is a section titled "Rebuilding TI-RTOS".   it shows how you can rebuild TI-RTOS.  However, I think you need xdctools to rebuild this.

    Judah

  • Hi Judah,
    we installed tirtos_simplelink_setupwin32_2_13_01_09.exe.

    We copied an existing CC32xxSDK and and changed following Makefiles to CC2650:
    ./oslib/gcc/Makefile_oslib_tirtios:
    #LFLAGS = -mcpu=cortex-m4 -march=armv7e-m -mthumb -mfloat-abi=soft -Wl,-T,$(OTHERPROJECT)/linker.cmd -lgcc -lc -lm -lrdimon LFLAGS = -mcpu=cortex-m3 -march=armv7e-m -mthumb -mfloat-abi=soft -Wl,-T,$(OTHERPROJECT)/linker.cmd -lgcc -lc -lm –lrdimon

    ./tools/gcc_scripts/makedefs_ti_rtos:
    #XDCTARGET = gnu.targets.arm.M4
    XDCTARGET = gnu.targets.arm.M3
    #PLATFORM = ti.platforms.simplelink:CC3200
    PLATFORM = ti.platforms.simplelink:CC2650F128
    #CFLAGS = -mcpu=cortex-m4 -march=armv7e-m -mthumb -mfloat-abi=soft -Dgcc -DUSE_TIRTOS -DCCWARE -DSL_FULL -DSL_PLATFORM_MULTI_THREADED -I$(CCWARE_INSTALLATION_DIR) -I$(CCWARE_INSTALLATION_DIR)/inc -I$(CCWARE_INSTALLATION_DIR)/driverlib -I$(CCWARE_INSTALLATION_DIR)/oslib -I$(CCWARE_INSTALLATION_DIR)/simplelink -I$(CCWARE_INSTALLATION_DIR)/simplelink/Include -I$(CCWARE_INSTALLATION_DIR)/oslib -ffunction-sections -fdata-sections -g -gstrict-dwarf –Wall
    CFLAGS = -mcpu=cortex-m3 -march=armv7e-m -mthumb -mfloat-abi=soft -Dgcc -DUSE_TIRTOS -DCCWARE -DSL_FULL -DSL_PLATFORM_MULTI_THREADED -I$(BIOS_INSTALLATION_DIR) -I$(XDCTOOLS_INSTALLATION_DIR)/packages -I$(XDCTOOLS_INSTALLATION_DIR) -I$(CCWARE_INSTALLATION_DIR) -I$(CCWARE_INSTALLATION_DIR)/inc -I$(CCWARE_INSTALLATION_DIR)/driverlib -I$(CCWARE_INSTALLATION_DIR)/oslib -I$(CCWARE_INSTALLATION_DIR)/simplelink -I$(CCWARE_INSTALLATION_DIR)/simplelink/Include -I$(CCWARE_INSTALLATION_DIR)/oslib -ffunction-sections -fdata-sections -g -gstrict-dwarf -Wall
    #LFLAGS = -mcpu=cortex-m4 -march=armv7e-m -mthumb -mfloat-abi=soft -nostartfiles -static -Wl,-Map,$(NAME).map -Wl,--gc-sections -Wl,-T,cc3200.lds -Wl,-T,$(OTHERPROJECT)/linker.cmd -ldriver -lsimplelink -ltirtos -lgcc -lc -lm -lrdimon -L$(CCWARE_INSTALLATION_DIR)/driverlib/gcc/exe -L$(CCWARE_INSTALLATION_DIR)/simplelink/gcc/exe -L$(CCWARE_INSTALLATION_DIR)/os_lib/gcc
    LFLAGS = -mcpu=cortex-m3 -march=armv7e-m -mthumb -mfloat-abi=soft -nostartfiles -static -Wl,-Map,$(NAME).map -Wl,--gc-sections -Wl,-T,cc3200.lds -Wl,-T,$(OTHERPROJECT)/linker.cmd -ldriver -lsimplelink -ltirtos -lgcc -lc -lm -lrdimon -L$(CCWARE_INSTALLATION_DIR)/driverlib/gcc/exe -L$(CCWARE_INSTALLATION_DIR)/simplelink/gcc/exe -L$(CCWARE_INSTALLATION_DIR)/os_lib/gcc

    With following command a static library ./exe/libtirtos.a was generated:
    /c/ti/ccsv6/utils/bin/gmake.exe -f Makefile_oslib_tirtos

    Until now we could not check whether that library can be used, because we do not yet have a simple cmake-project working.

    Best regards,
    Thomas
  • Sounds like you found a solution? I will go ahead and closed this thread if that is the case.