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.

AM3358: Diag examples build issue

Part Number: AM3358

Hi,

I want to build diag examples in pdk. But it prompts that there are some libs cannot be found.

arm-none-eabi-gcc.exe: error: /TI-PRO~1.04/PDK_AM~1/packages/ti/board/lib/skAM335x/a8/release/ti.board.aa8fg: No such file or directory
arm-none-eabi-gcc.exe: error: /TI-PRO~1.04/PDK_AM~1/packages/ti/osal/lib/nonos/am335x/a8/release/ti.osal.aa8fg: No such file or directory
arm-none-eabi-gcc.exe: error: /TI-PRO~1.04/PDK_AM~1/packages/ti/drv/mmcsd/lib/a8/release/ti.drv.mmcsd.aa8fg: No such file or directory
arm-none-eabi-gcc.exe: error: /TI-PRO~1.04/PDK_AM~1/packages/ti/fs/fatfs/lib/a8/release/ti.fs.fatfs.aa8fg: No such file or directory
arm-none-eabi-gcc.exe: error: /TI-PRO~1.04/PDK_AM~1/packages/ti/drv/uart/lib/am335x/a8/release/ti.drv.uart.aa8fg: No such file or directory
arm-none-eabi-gcc.exe: error: /TI-PRO~1.04/PDK_AM~1/packages/ti/drv/i2c/lib/am335x/a8/release/ti.drv.i2c.aa8fg: No such file or directory
arm-none-eabi-gcc.exe: error: /TI-PRO~1.04/PDK_AM~1/packages/ti/csl/lib/am335x/a8/release/ti.csl.aa8fg: No such file or directory

I execute gmake board_lib and i can build ti.board.aa8fg successfully. What about the other libs?

  • Hi,

    In the pdk_am335x_1_0_16\packages, if you want build a particular driver like UART, you can use the following commands (refer to makefile for details):

    gmake uart_lib                 /* "gmake -C ./ti/drv/uart lib" for UART libraries */

    gmake uart_apps             /* "gmake -C ./ti/drv/uart apps" for UART examples */

    gmake uart_clean            /* "gmake -C ./ti/drv/uart clean" for UART clean all */

    gmake uart                      /* "gmake -C ./ti/drv/uart all" build all for UART */

    If there is no such command exist for the driver in the makefile, you can use the "gmake -C ti/drv/xyz [clean|all|lib|apps]" or "gmake ti/xyz [clean|all|lib|apps]" to build the component you need.

    gmake [osal_lib|psal_apps|osal_clean|osal] will build the OSAL libraries, examples, clean or all for you

    Ming

  • If you just need to build the diagnostical examples, then do the following:

    gamke board                             /* build board library and diagnose examples */

    gmake board_lib                       /* build board libraries only */

    gmake board_diag                   /* build board diagnose examples */

    gmake board_clean                 /* clean all for board */

    gmake board_lib_clean                 /* clean board libraries*/

    gmake board_diag_clean                 /* clean board diagnose examples */

    Ming