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.

Compiler/CC2642R: GCC error linking

Part Number: CC2642R

Tool/software: TI C/C++ Compiler

I'm trying to build an application using GNU makefile + GCC.

However during the link I've got the follow error:

ti/drivers/UART.c:92: undefined reference to `HwiP_disable'
ti/drivers/UART.c:103: undefined reference to `HwiP_restore'
ti/drivers/UART.c:104: undefined reference to `UART_config'
ti/drivers/UART.c:104: undefined reference to `UART_count

I'm adding the following libraries the link:

  • source/ti/drivers/lib/drivers_cc26x2.am4fg;
  • source/ti/devices/cc13x2_cc26x2/driverlib/bin/gcc/driverlib.lib.

But the error persist. I also ran the command "nm" with the libraries  and I've realized that the library "drivers_cc26x2.am4fg" have the symbols but they appear as "U" (Undefined).

$ nm source/ti/drivers/lib/drivers_cc26x2.am4fg | grep UART_c
00000001 T UART_close
U UART_config
00000001 T UART_control
U UART_count

What is actually the correct library?