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.

[参考译文] Linux/TM4C1294NCPDT:链接阶段:TI RTOS 使用 GCC 进行 Tiva 时出现未定义错误

Guru**** 2331900 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/599002/linux-tm4c1294ncpdt-undefined-error-at-linking-stage-ti-rtos-for-tiva-using-gcc

器件型号:TM4C1294NCPDT

工具/软件:Linux

我正在 将项目从 CCS 迁移到 Linux 中的 GCC

我可以使用 tirtos_tivac_2_16_01_14和 xdctools_3_32_00_06_core 开始编译


现在、我看到在最终链接阶段对许多函数的引用未定义。 我刚才将这些函数命名为下面的函数

`GPIOPinWrite'`SSysCtlReset'`GPIO_READ'`I2C_OPEN'`I2C_PARAMS_INIT'`I2C_TRANSF"
`UART_Params_init'`UART_open'`GPIO_write'`UART_write'
`UART_READ'`SSysCtlDelay'`GPIOPinTypeGPIOOutput'
`GPIOPinWrite'`GPIO_setCallback'`GPIO_enableInt'`GPIO_write'
`GPIO_READ'`UART_PARAMS_INIT'`uDMAErrorStatusGet `SSysCtlPeripheralEnable'
`EMAC_init'`GPIOPinTypeI2CSCL'`UARTTiva_fxnTable'`I2CTiva_fxnTable'
`stutomax'`_ctype_ptr__'`RingBuf_peek'`RingBuf_Put '
`USBBufferDataAvailable'`uDMAErrorStatusGet '`GPIOPinWrite'`EMAPPHYWrite'
`sSysCtlDelay'

看起来这些是库函数。

即使在添加-lgr -lusb -ldriver 库及其包含路径后、我也会遇到这些错误。

请帮助我解决此问题

注:随附 build.log 以了解更多详细信息