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.

RTOS + GCC (cc13xx)

Other Parts Discussed in Thread: SYSBIOS

Hi,

I'm trying to migrate a cc13xx RTOS project to gcc and have run into some issues.
Using the december release of RTOS that introduced gcc support, tirtos_cc13xx_cc26xx_2_15_00_17.
Unfortunately I could not find any makefile examples or other documentation about building with gcc so I'm not sure that I build it correctly.

I can build and run non RTOS application so this issue is only connected to the inclusion of RTOS.

I run the configuru stage without any errors, here is the command used:

c:/ti/xdctools_3_32_00_06_core/xs xdc.tools.configuro -c "C:/prg/gcc/4.9_2015q3" -t gnu.targets.arm.M3 -p ti.platforms.simplelink:CC1310F128 -o out/1300_hello/RTOS --compileOptions "-DSTACK_SIZE=2048 -DDEBUG -DBOARD_SMARTRF06EB -DMODULE_CC13XX_7X7 -DCFG_BOARD_SRF06EB -Dgcc=1 -O0 -mcpu=cortex-m3 -gdwarf-2 -mthumb -fomit-frame-pointer -Wall -Wstrict-prototypes -std=gnu99 -fno-builtin-printf -DNDEBUG -Ibootloader -Ic:/ti/tirtos_cc13xx_cc26xx_2_15_00_17/products/cc13xxware_2_03_00_16456 -Ic:/ti/tirtos_cc13xx_cc26xx_2_15_00_17/products/cc13xxware_2_03_00_16456/inc -Ic:/ti/tirtos_cc13xx_cc26xx_2_15_00_17/products/cc13xxware_2_03_00_16456/driverlib -Ic:/ti/tirtos_cc13xx_cc26xx_2_15_00_17/products/cc13xxware_2_03_00_16456/startup_files -Ic:/ti/tirtos_cc13xx_cc26xx_2_15_00_17/packages -Ic:/ti/tirtos_cc13xx_cc26xx_2_15_00_17/products/bios_6_45_00_20/packages -Ic:/ti/xdctools_3_32_00_06_core/packages -Ibuild" out/1300_hello/RTOS/rtos_app.cfg

However during the linking stage I fail due to undefined symbol "xdc_runtime_System_asprintf_va__F". The origin of these symbols is from the linker.cmd that was generated from the configuro tool.

From the
/* function aliases */
xdc_runtime_System_asprintf_va__E = xdc_runtime_System_asprintf_va__F;
xdc_runtime_System_snprintf_va__E = xdc_runtime_System_snprintf_va__F;
xdc_runtime_System_printf_va__E = xdc_runtime_System_printf_va__F;
xdc_runtime_System_aprintf_va__E = xdc_runtime_System_aprintf_va__F;
xdc_runtime_System_sprintf_va__E = xdc_runtime_System_sprintf_va__F;

If I search the TI folder for this reference I only find it here:
TI/tirtos_cc13xx_cc26xx_2_15_00_17/products/bios_6_45_00_20/packages/iar/targets/arm/rts/package/lib/lib/debug/iar.targets.arm.rts/xdc/runtime/System.orm3
TI/tirtos_cc13xx_cc26xx_2_15_00_17/products/bios_6_45_00_20/packages/iar/targets/arm/rts/package/lib/lib/debug_full/iar.targets.arm.rts/xdc/runtime/System.orm3
TI/tirtos_cc13xx_cc26xx_2_15_00_17/products/bios_6_45_00_20/packages/ti/sysbios/rom/cortexm/cc13xx/CC13xx/sysbios_lib_funcs
TI/tirtos_cc13xx_cc26xx_2_15_00_17/products/bios_6_45_00_20/packages/ti/sysbios/rom/cortexm/cc13xx/golden/CC13xx/sysbios_lib_funcs
TI/tirtos_cc13xx_cc26xx_2_15_00_17/products/bios_6_45_00_20/packages/ti/sysbios/rom/cortexm/cc26xx/CC26xx/sysbios_lib_funcs
TI/tirtos_cc13xx_cc26xx_2_15_00_17/products/bios_6_45_00_20/packages/ti/sysbios/rom/cortexm/cc26xx/golden/CC26xx/sysbios_lib_funcs

TI/xdctools_3_32_00_06_core/packages/xdc/runtime/package/internal/System.xdc.h
TI/xdctools_3_32_00_06_core/packages/xdc/runtime/System.h

If I compiled the project with the CCS toolchain it compiles. If I check the output I can see that there is no reference to "xdc_runtime_System_asprintf_va__F" in linker.cmd or elsewhere.

The examples are not updated for gcc and I cannot find any documentation about this step except that I have been promised by TI support that from december GCC will be fully supported.


BR,

/Johannes