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/AM5728: Project build issue with custom library

Part Number: AM5728

Tool/software: TI-RTOS

hello

I've created my custom board library, but there are some errors when i create my rtos project and use Board_init.

errors in ccs:

"./main.o" -Wl,-T"configPkg/linker.cmd" -Wl,--start-group -l:ti.board.aa15fg -lgcc -lm -lrdimon -lc -Wl,--end-group
makefile:146: recipe for target 'camera_rtos_a15_template.out' failed
C:/ti/pdk_am57xx_1_0_11/packages/ti/board/lib/camera/a15/release\ti.board.aa15fg(camera_lld_init.oa15fg): In function `Board_uartStdioInit':
C:\ti\pdk_am57xx_1_0_11\packages\ti\board/src/camera/camera_lld_init.c:70: undefined reference to `UART_stdioInit'
C:/ti/pdk_am57xx_1_0_11/packages/ti/board/lib/camera/a15/release\ti.board.aa15fg(I2C_soc.oa15fg): In function `.LANCHOR2':
I2C_soc.c:(.data.I2C_config+0x0): undefined reference to `I2C_v1_FxnTable'
I2C_soc.c:(.data.I2C_config+0xc): undefined reference to `I2C_v1_FxnTable'
I2C_soc.c:(.data.I2C_config+0x18): undefined reference to `I2C_v1_FxnTable'
I2C_soc.c:(.data.I2C_config+0x24): undefined reference to `I2C_v1_FxnTable'
I2C_soc.c:(.data.I2C_config+0x30): undefined reference to `I2C_v1_FxnTable'
collect2.exe: error: ld returned 1 exit status
gmake[1]: *** [camera_rtos_a15_template.out] Error 1
gmake: *** [all] Error 2
makefile:142: recipe for target 'all' failed

the same errors occurs when i replace my custom board library with lib/evmAm572x/a15/release/ti.board.aa15fg.

is there any mistakes?

could you offers an template board library package based on the latest pdk.

  • The RTOS team have been notified. They will respond here.
  • Hi,

    You would have a .cfg file to specify what driver libraries are loaded in your project. The PDK driver loading order matters: the I2C driver has to be loaded before board library, as the latter calls into some I2C functions. Otherwise, you may get errors when linking as above.

    Yes, we have a simple RTOS application template with a few drivers integrated. Please check latest Processor SDK RTOS Release 5.0 : processor_sdk_rtos_am57xx_5_00_00_15\demos\rtos_template_app

    Regards, Eric