Part Number: CC2642R
Tool/software: TI-RTOS
I'm linking FreeRTOS with the libraries:
- driverlib
- drivers_cc26x2
- nortos_cc26x2
However, the application freezes after call the function "UART_read" (I was using that function with no problem before link FreeRTOS).
Assuming that nortos_cc26x2 library is not appropriate for RTOS I tried to use dpl_cc26x2 instead. But I got the following errors:
D:\Github\FW\PAK/src/posixDevices/deviceDrivers/arm/CC26x2/system.c:90: undefined reference to `HwiP_enable'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(HwiP_tirtos.oem4f): In function `HwiP_setPriority':
TI0MSz9Sm4y:(.text:HwiP_setPriority+0x0): undefined reference to `ti_sysbios_family_arm_m3_Hwi_setPriority__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(HwiP_tirtos.oem4f): In function `HwiP_setFunc':
TI0MSz9Sm4y:(.text:HwiP_setFunc+0x0): undefined reference to `ti_sysbios_family_arm_m3_Hwi_setFunc__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(HwiP_tirtos.oem4f): In function `HwiP_restore':
TI0MSz9Sm4y:(.text:HwiP_restore+0x0): undefined reference to `ti_sysbios_family_arm_m3_Hwi_restoreFxn__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(HwiP_tirtos.oem4f): In function `HwiP_post':
TI0MSz9Sm4y:(.text:HwiP_post+0x0): undefined reference to `ti_sysbios_family_arm_m3_Hwi_post__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(HwiP_tirtos.oem4f): In function `HwiP_plug':
TI0MSz9Sm4y:(.text:HwiP_plug+0x0): undefined reference to `ti_sysbios_family_arm_m3_Hwi_plug__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(HwiP_tirtos.oem4f): In function `HwiP_inISR':
TI0MSz9Sm4y:(.text:HwiP_inISR+0x2): undefined reference to `ti_sysbios_BIOS_getThreadType__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(HwiP_tirtos.oem4f): In function `HwiP_enableInterrupt':
TI0MSz9Sm4y:(.text:HwiP_enableInterrupt+0x0): undefined reference to `ti_sysbios_family_arm_m3_Hwi_enableInterrupt__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(HwiP_tirtos.oem4f): In function `HwiP_disableInterrupt':
TI0MSz9Sm4y:(.text:HwiP_disableInterrupt+0x0): undefined reference to `ti_sysbios_family_arm_m3_Hwi_disableInterrupt__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(HwiP_tirtos.oem4f): In function `HwiP_disable':
TI0MSz9Sm4y:(.text:HwiP_disable+0x0): undefined reference to `ti_sysbios_family_arm_m3_Hwi_disableFxn__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(HwiP_tirtos.oem4f): In function `HwiP_destruct':
TI0MSz9Sm4y:(.text:HwiP_destruct+0x0): undefined reference to `ti_sysbios_family_arm_m3_Hwi_destruct'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(HwiP_tirtos.oem4f): In function `HwiP_delete':
TI0MSz9Sm4y:(.text:HwiP_delete+0x6): undefined reference to `ti_sysbios_family_arm_m3_Hwi_delete'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(HwiP_tirtos.oem4f): In function `HwiP_create':
TI0MSz9Sm4y:(.text:HwiP_create+0x1a): undefined reference to `ti_sysbios_family_arm_m3_Hwi_Params__init(void) static'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(HwiP_tirtos.oem4f): In function `$C$L2':
TI0MSz9Sm4y:(.text:HwiP_create+0x34): undefined reference to `ti_sysbios_family_arm_m3_Hwi_create'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(HwiP_tirtos.oem4f): In function `$C$CON1':
TI0MSz9Sm4y:(.text:HwiP_create+0x3c): undefined reference to `xdc_runtime_Error_IgnoreBlock'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(HwiP_tirtos.oem4f): In function `HwiP_construct':
TI0MSz9Sm4y:(.text:HwiP_construct+0x1c): undefined reference to `ti_sysbios_family_arm_m3_Hwi_Params__init(void) static'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(HwiP_tirtos.oem4f): In function `$C$L3':
TI0MSz9Sm4y:(.text:HwiP_construct+0x36): undefined reference to `ti_sysbios_family_arm_m3_Hwi_construct2__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(HwiP_tirtos.oem4f): In function `HwiP_clearInterrupt':
TI0MSz9Sm4y:(.text:HwiP_clearInterrupt+0x0): undefined reference to `ti_sysbios_family_arm_m3_Hwi_clearInterrupt__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(SwiP_tirtos.oem4f): In function `SwiP_setPriority':
TI0PpczhPF7:(.text:SwiP_setPriority+0x0): undefined reference to `ti_sysbios_knl_Swi_setPri__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(SwiP_tirtos.oem4f): In function `SwiP_restore':
TI0PpczhPF7:(.text:SwiP_restore+0x0): undefined reference to `ti_sysbios_knl_Swi_restore__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(SwiP_tirtos.oem4f): In function `SwiP_post':
TI0PpczhPF7:(.text:SwiP_post+0x0): undefined reference to `ti_sysbios_knl_Swi_post__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(SwiP_tirtos.oem4f): In function `SwiP_or':
TI0PpczhPF7:(.text:SwiP_or+0x0): undefined reference to `ti_sysbios_knl_Swi_or__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(SwiP_tirtos.oem4f): In function `SwiP_inc':
TI0PpczhPF7:(.text:SwiP_inc+0x0): undefined reference to `ti_sysbios_knl_Swi_inc__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(SwiP_tirtos.oem4f): In function `SwiP_inISR':
TI0PpczhPF7:(.text:SwiP_inISR+0x2): undefined reference to `ti_sysbios_BIOS_getThreadType__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(SwiP_tirtos.oem4f): In function `SwiP_getTrigger':
TI0PpczhPF7:(.text:SwiP_getTrigger+0x0): undefined reference to `ti_sysbios_knl_Swi_getTrigger__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(SwiP_tirtos.oem4f): In function `SwiP_disable':
TI0PpczhPF7:(.text:SwiP_disable+0x0): undefined reference to `ti_sysbios_knl_Swi_disable__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(SwiP_tirtos.oem4f): In function `SwiP_destruct':
TI0PpczhPF7:(.text:SwiP_destruct+0x0): undefined reference to `ti_sysbios_knl_Swi_destruct'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(SwiP_tirtos.oem4f): In function `SwiP_delete':
TI0PpczhPF7:(.text:SwiP_delete+0x6): undefined reference to `ti_sysbios_knl_Swi_delete'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(SwiP_tirtos.oem4f): In function `SwiP_dec':
TI0PpczhPF7:(.text:SwiP_dec+0x0): undefined reference to `ti_sysbios_knl_Swi_dec__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(SwiP_tirtos.oem4f): In function `SwiP_create':
TI0PpczhPF7:(.text:SwiP_create+0x18): undefined reference to `ti_sysbios_knl_Swi_Params__init(void) static'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(SwiP_tirtos.oem4f): In function `$C$L1':
TI0PpczhPF7:(.text:SwiP_create+0x32): undefined reference to `ti_sysbios_knl_Swi_create'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(SwiP_tirtos.oem4f): In function `$C$CON1':
TI0PpczhPF7:(.text:SwiP_create+0x3c): undefined reference to `xdc_runtime_Error_IgnoreBlock'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(SwiP_tirtos.oem4f): In function `SwiP_construct':
TI0PpczhPF7:(.text:SwiP_construct+0x1a): undefined reference to `ti_sysbios_knl_Swi_Params__init(void) static'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(SwiP_tirtos.oem4f): In function `$C$L2':
TI0PpczhPF7:(.text:SwiP_construct+0x34): undefined reference to `ti_sysbios_knl_Swi_construct2__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(SwiP_tirtos.oem4f): In function `SwiP_andn':
TI0PpczhPF7:(.text:SwiP_andn+0x0): undefined reference to `ti_sysbios_knl_Swi_andn__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(SemaphoreP_tirtos.oem4f): In function `SemaphoreP_post':
TI0OmjeEMVU:(.text:SemaphoreP_post+0x0): undefined reference to `ti_sysbios_knl_Semaphore_post__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(SemaphoreP_tirtos.oem4f): In function `SemaphoreP_pend':
TI0OmjeEMVU:(.text:SemaphoreP_pend+0x2): undefined reference to `ti_sysbios_knl_Semaphore_pend__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(SemaphoreP_tirtos.oem4f): In function `SemaphoreP_destruct':
TI0OmjeEMVU:(.text:SemaphoreP_destruct+0x0): undefined reference to `ti_sysbios_knl_Semaphore_destruct'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(SemaphoreP_tirtos.oem4f): In function `SemaphoreP_delete':
TI0OmjeEMVU:(.text:SemaphoreP_delete+0x6): undefined reference to `ti_sysbios_knl_Semaphore_delete'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(SemaphoreP_tirtos.oem4f): In function `SemaphoreP_createBinary':
TI0OmjeEMVU:(.text:SemaphoreP_createBinary+0x10): undefined reference to `ti_sysbios_knl_Semaphore_Params__init(void) static'
TI0OmjeEMVU:(.text:SemaphoreP_createBinary+0x20): undefined reference to `ti_sysbios_knl_Semaphore_create'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(SemaphoreP_tirtos.oem4f): In function `$C$CON1':
TI0OmjeEMVU:(.text:SemaphoreP_createBinary+0x28): undefined reference to `xdc_runtime_Error_IgnoreBlock'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(SemaphoreP_tirtos.oem4f): In function `SemaphoreP_create':
TI0OmjeEMVU:(.text:SemaphoreP_create+0x14): undefined reference to `ti_sysbios_knl_Semaphore_Params__init(void) static'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(SemaphoreP_tirtos.oem4f): In function `$C$L2':
TI0OmjeEMVU:(.text:SemaphoreP_create+0x2e): undefined reference to `ti_sysbios_knl_Semaphore_create'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(SemaphoreP_tirtos.oem4f): In function `$C$CON2':
TI0OmjeEMVU:(.text:SemaphoreP_create+0x38): undefined reference to `xdc_runtime_Error_IgnoreBlock'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(SemaphoreP_tirtos.oem4f): In function `SemaphoreP_constructBinary':
TI0OmjeEMVU:(.text:SemaphoreP_constructBinary+0x12): undefined reference to `ti_sysbios_knl_Semaphore_Params__init(void) static'
TI0OmjeEMVU:(.text:SemaphoreP_constructBinary+0x22): undefined reference to `ti_sysbios_knl_Semaphore_construct'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(SemaphoreP_tirtos.oem4f): In function `SemaphoreP_construct':
TI0OmjeEMVU:(.text:SemaphoreP_construct+0x16): undefined reference to `ti_sysbios_knl_Semaphore_Params__init(void) static'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(SemaphoreP_tirtos.oem4f): In function `$C$L4':
TI0OmjeEMVU:(.text:SemaphoreP_construct+0x30): undefined reference to `ti_sysbios_knl_Semaphore_construct'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(PowerCC26X2_tirtos.oem4f): In function `ti_sysbios_family_arm_lm4_Timer_enableCC26xx(int0_t)':
TI0RlxhdJKp:(.text:ti_sysbios_family_arm_lm4_Timer_enableCC26xx__I+0x4): undefined reference to `ti_sysbios_family_arm_m3_Hwi_disableFxn__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(PowerCC26X2_tirtos.oem4f): In function `$C$L5':
TI0RlxhdJKp:(.text:ti_sysbios_family_arm_lm4_Timer_enableCC26xx__I+0x34): undefined reference to `ti_sysbios_family_arm_m3_Hwi_restoreFxn__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(PowerCC26X2_tirtos.oem4f): In function `ti_sysbios_family_arm_lm4_Timer_disableCC26xx(int0_t)':
TI0RlxhdJKp:(.text:ti_sysbios_family_arm_lm4_Timer_disableCC26xx__I+0x4): undefined reference to `ti_sysbios_family_arm_m3_Hwi_disableFxn__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(PowerCC26X2_tirtos.oem4f): In function `$C$L10':
TI0RlxhdJKp:(.text:ti_sysbios_family_arm_lm4_Timer_disableCC26xx__I+0x34): undefined reference to `ti_sysbios_family_arm_m3_Hwi_restoreFxn__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(PowerCC26X2_tirtos.oem4f): In function `PowerCC26XX_standbyPolicy':
TI0RlxhdJKp:(.text:PowerCC26XX_standbyPolicy+0x26): undefined reference to `ti_sysbios_knl_Clock_getTicksUntilInterrupt__E'
TI0RlxhdJKp:(.text:PowerCC26XX_standbyPolicy+0x4c): undefined reference to `ti_sysbios_knl_Clock_setTimeout__E'
TI0RlxhdJKp:(.text:PowerCC26XX_standbyPolicy+0x52): undefined reference to `ti_sysbios_knl_Clock_start__E'
TI0RlxhdJKp:(.text:PowerCC26XX_standbyPolicy+0x5e): undefined reference to `ti_sysbios_knl_Clock_stop__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(PowerCC26X2_tirtos.oem4f): In function `$C$CON1':
TI0RlxhdJKp:(.text:PowerCC26XX_standbyPolicy+0xa4): undefined reference to `ti_sysbios_knl_Clock_tickPeriod(void) const'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(PowerCC26X2_tirtos.oem4f): In function `PowerCC26XX_schedulerRestore':
TI0RlxhdJKp:(.text:PowerCC26XX_schedulerRestore+0x6): undefined reference to `ti_sysbios_knl_Swi_restore__E'
TI0RlxhdJKp:(.text:PowerCC26XX_schedulerRestore+0xe): undefined reference to `ti_sysbios_knl_Task_restore__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(PowerCC26X2_tirtos.oem4f): In function `PowerCC26XX_schedulerDisable':
TI0RlxhdJKp:(.text:PowerCC26XX_schedulerDisable+0x2): undefined reference to `ti_sysbios_knl_Task_disable__E'
TI0RlxhdJKp:(.text:PowerCC26XX_schedulerDisable+0xa): undefined reference to `ti_sysbios_knl_Swi_disable__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(ClockP_tirtos.oem4f): In function `ClockP_usleep':
TI0MllieTho:(.text:ClockP_usleep+0xc): undefined reference to `ti_sysbios_knl_Task_sleep__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(ClockP_tirtos.oem4f): In function `$C$CON1':
TI0MllieTho:(.text:ClockP_usleep+0x10): undefined reference to `ti_sysbios_knl_Clock_tickPeriod(void) const'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(ClockP_tirtos.oem4f): In function `ClockP_stop':
TI0MllieTho:(.text:ClockP_stop+0x0): undefined reference to `ti_sysbios_knl_Clock_stop__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(ClockP_tirtos.oem4f): In function `ClockP_start':
TI0MllieTho:(.text:ClockP_start+0x0): undefined reference to `ti_sysbios_knl_Clock_start__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(ClockP_tirtos.oem4f): In function `ClockP_sleep':
TI0MllieTho:(.text:ClockP_sleep+0xc): undefined reference to `ti_sysbios_knl_Task_sleep__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(ClockP_tirtos.oem4f): In function `$C$CON4':
TI0MllieTho:(.text:ClockP_sleep+0x14): undefined reference to `ti_sysbios_knl_Clock_tickPeriod(void) const'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(ClockP_tirtos.oem4f): In function `ClockP_setTimeout':
TI0MllieTho:(.text:ClockP_setTimeout+0x0): undefined reference to `ti_sysbios_knl_Clock_setTimeout__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(ClockP_tirtos.oem4f): In function `ClockP_isActive':
TI0MllieTho:(.text:ClockP_isActive+0x2): undefined reference to `ti_sysbios_knl_Clock_isActive__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(ClockP_tirtos.oem4f): In function `ClockP_getTimeout':
TI0MllieTho:(.text:ClockP_getTimeout+0x0): undefined reference to `ti_sysbios_knl_Clock_getTimeout__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(ClockP_tirtos.oem4f): In function `ClockP_getSystemTicks':
TI0MllieTho:(.text:ClockP_getSystemTicks+0x0): undefined reference to `ti_sysbios_knl_Clock_getTicks__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(ClockP_tirtos.oem4f): In function `$C$CON6':
TI0MllieTho:(.text:ClockP_getSystemTickPeriod+0x8): undefined reference to `ti_sysbios_knl_Clock_tickPeriod(void) const'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(ClockP_tirtos.oem4f): In function `ClockP_getCpuFreq':
TI0MllieTho:(.text:ClockP_getCpuFreq+0x0): undefined reference to `ti_sysbios_BIOS_getCpuFreq__E'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(ClockP_tirtos.oem4f): In function `ClockP_destruct':
TI0MllieTho:(.text:ClockP_destruct+0x0): undefined reference to `ti_sysbios_knl_Clock_destruct'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(ClockP_tirtos.oem4f): In function `ClockP_delete':
TI0MllieTho:(.text:ClockP_delete+0x6): undefined reference to `ti_sysbios_knl_Clock_delete'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(ClockP_tirtos.oem4f): In function `ClockP_create':
TI0MllieTho:(.text:ClockP_create+0x1a): undefined reference to `ti_sysbios_knl_Clock_Params__init(void) static'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(ClockP_tirtos.oem4f): In function `$C$L2':
TI0MllieTho:(.text:ClockP_create+0x34): undefined reference to `ti_sysbios_knl_Clock_create'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(ClockP_tirtos.oem4f): In function `$C$CON7':
TI0MllieTho:(.text:ClockP_create+0x44): undefined reference to `xdc_runtime_Error_IgnoreBlock'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(ClockP_tirtos.oem4f): In function `$C$CON10':
TI0MllieTho:(.text:ClockP_create+0x4c): undefined reference to `ti_sysbios_knl_Clock_tickPeriod(void) const'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(ClockP_tirtos.oem4f): In function `ClockP_construct':
TI0MllieTho:(.text:ClockP_construct+0x1c): undefined reference to `ti_sysbios_knl_Clock_Params__init(void) static'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(ClockP_tirtos.oem4f): In function `$C$L3':
TI0MllieTho:(.text:ClockP_construct+0x36): undefined reference to `ti_sysbios_knl_Clock_construct'
../PAK/~build/BLESensor/cm4/debug\libPAK.a(ClockP_tirtos.oem4f): In function `$C$CON13':
TI0MllieTho:(.text:ClockP_construct+0x48): undefined reference to `ti_sysbios_knl_Clock_tickPeriod(void) const'
d:/sw/toolchain/gcc-arm-none-eabi-7-2017/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/bin/ld.exe: ~build/cm4/debug/Template.elf: hidden symbol `ti_sysbios_knl_Semaphore_construct' isn't defined
d:/sw/toolchain/gcc-arm-none-eabi-7-2017/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/bin/ld.exe: final link failed: Bad value
Is there any example using FreeRTOS?