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/AM6548: CCS

Part Number: AM6548
Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI C/C++ Compiler

Hello,

I am attempting to build the TI RTOS example project from section 9.1.4.2 in the How-To-Guide

Below is the console result text.

I am trying to figure out why the recipe for target is filing.

Do you have any ideas?

Regards

John


**** Clean-only build of configuration Debug for project rtos_template_app_am65xx_a53 ****

"C:\\ti\\ccs930\\ccs\\utils\\bin\\gmake" -k -j 4 clean -O

DEL /F "rtos_template_app_am65xx_a53.hex" "configPkg\linker.cmd" "configPkg\compiler.opt" "rtos_template_app_am65xx_a53.out"
DEL /F "GPIO_evmAM65xx_board.o" "app.o" "main.o"
DEL /F "GPIO_evmAM65xx_board.d" "app.d" "main.d"
RMDIR /S/Q "configPkg\"
Could Not Find C:\CCS Workspace\rtos_template_app_am65xx_a53\Debug\rtos_template_app_am65xx_a53.hex
Could Not Find C:\CCS Workspace\rtos_template_app_am65xx_a53\Debug\rtos_template_app_am65xx_a53.out
Finished clean

**** Build Finished ****

**** Build of configuration Debug for project rtos_template_app_am65xx_a53 ****

"C:\\ti\\ccs930\\ccs\\utils\\bin\\gmake" -k -j 4 all -O

Building file: "../sysbios_a53.cfg"
Invoking: XDCtools
"C:/ti/ccs910/xdctools_3_55_02_22_core/xs" --xdcpath="C:/ti/bios_6_76_02_02/packages;C:/ti/pdk_am65xx_1_0_6/packages;" xdc.tools.configuro -o configPkg -t gnu.targets.arm.A53F -p ti.platforms.cortexA:AM65X -r release -c "C:/ti/gcc-linaro-7.2.1-2017.11-i686-mingw32_aarch64-elf" "../sysbios_a53.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring sysbios_a53.xa53fg from package/cfg/sysbios_a53_pa53fg.cfg ...
generating custom ti.sysbios library makefile ...
Starting build of library sources ...
making C:/CCSWOR~1/rtos_template_app_am65xx_a53/src/sysbios/sysbios.aa53fg ...
Build of libraries done.
cla53fg package/cfg/sysbios_a53_pa53fg.c ...
Finished building: "../sysbios_a53.cfg"

Building file: "../GPIO_evmAM65xx_board.c"
Invoking: GNU Compiler
"C:/ti/gcc-linaro-7.2.1-2017.11-i686-mingw32_aarch64-elf/bin/aarch64-elf-gcc-7.2.1.exe" -c -mcpu=cortex-a53+fp+simd -mtune=cortex-a53 -fno-exceptions -Dam6548 -Dcore0 -DAARCH64 -DSOC_AM6X -Dam65xx_evm -DSOC_AM65XX -Dam65xx -DUSE_BIOS -DBUILD_MPU1_0 -DBUILD_MPU -I"C:/CCS Workspace/rtos_template_app_am65xx_a53" -I"C:/ti/pdk_am65xx_1_0_6/packages/ti/board/src/am65xx_evm/include" -I"C:/ti/gcc-linaro-7.2.1-2017.11-i686-mingw32_aarch64-elf/aarch64-elf/include" -Og -g -gdwarf-3 -gstrict-dwarf -Wall -Werror -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast -mabi=lp64 -MMD -MP -MF"GPIO_evmAM65xx_board.d" -MT"GPIO_evmAM65xx_board.o" @"configPkg/compiler.opt" -o"GPIO_evmAM65xx_board.o" "../GPIO_evmAM65xx_board.c"
Finished building: "../GPIO_evmAM65xx_board.c"

Building file: "../app.c"
Invoking: GNU Compiler
"C:/ti/gcc-linaro-7.2.1-2017.11-i686-mingw32_aarch64-elf/bin/aarch64-elf-gcc-7.2.1.exe" -c -mcpu=cortex-a53+fp+simd -mtune=cortex-a53 -fno-exceptions -Dam6548 -Dcore0 -DAARCH64 -DSOC_AM6X -Dam65xx_evm -DSOC_AM65XX -Dam65xx -DUSE_BIOS -DBUILD_MPU1_0 -DBUILD_MPU -I"C:/CCS Workspace/rtos_template_app_am65xx_a53" -I"C:/ti/pdk_am65xx_1_0_6/packages/ti/board/src/am65xx_evm/include" -I"C:/ti/gcc-linaro-7.2.1-2017.11-i686-mingw32_aarch64-elf/aarch64-elf/include" -Og -g -gdwarf-3 -gstrict-dwarf -Wall -Werror -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast -mabi=lp64 -MMD -MP -MF"app.d" -MT"app.o" @"configPkg/compiler.opt" -o"app.o" "../app.c"
Finished building: "../app.c"

Building file: "../main.c"
Invoking: GNU Compiler
"C:/ti/gcc-linaro-7.2.1-2017.11-i686-mingw32_aarch64-elf/bin/aarch64-elf-gcc-7.2.1.exe" -c -mcpu=cortex-a53+fp+simd -mtune=cortex-a53 -fno-exceptions -Dam6548 -Dcore0 -DAARCH64 -DSOC_AM6X -Dam65xx_evm -DSOC_AM65XX -Dam65xx -DUSE_BIOS -DBUILD_MPU1_0 -DBUILD_MPU -I"C:/CCS Workspace/rtos_template_app_am65xx_a53" -I"C:/ti/pdk_am65xx_1_0_6/packages/ti/board/src/am65xx_evm/include" -I"C:/ti/gcc-linaro-7.2.1-2017.11-i686-mingw32_aarch64-elf/aarch64-elf/include" -Og -g -gdwarf-3 -gstrict-dwarf -Wall -Werror -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast -mabi=lp64 -MMD -MP -MF"main.d" -MT"main.o" @"configPkg/compiler.opt" -o"main.o" "../main.c"
Finished building: "../main.c"

Building target: "rtos_template_app_am65xx_a53.out"
Invoking: GNU Linker
"C:/ti/gcc-linaro-7.2.1-2017.11-i686-mingw32_aarch64-elf/bin/aarch64-elf-gcc-7.2.1.exe" -mtune=cortex-a53 -fno-exceptions -Dam6548 -Dcore0 -DAARCH64 -DSOC_AM6X -Dam65xx_evm -DSOC_AM65XX -Dam65xx -DUSE_BIOS -DBUILD_MPU1_0 -DBUILD_MPU -Og -g -gdwarf-3 -gstrict-dwarf -Wall -Werror -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast -mcpu=cortex-a53+fp+simd -Wl,-Map,"rtos_template_app_am65xx_a53.map" --entry Entry -nostartfiles -static -Wl,--gc-sections -L"C:/ti/pdk_am65xx_1_0_6/packages/ti/board/lib/am65xx_evm/a53/release/" -L"C:/ti/pdk_am65xx_1_0_6/packages/ti/csl/lib/am65xx/a53/release" -L"C:/ti/bios_6_76_02_02/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib" -Wl,--defsym,CORE0=1 -Wl,--defsym,STACKSIZE=0x10000 -Wl,--defsym,HEAPSIZE=0x400 -o"rtos_template_app_am65xx_a53.out" "./GPIO_evmAM65xx_board.o" "./app.o" "./main.o" -Wl,-T"../linker_a53.lds" -Wl,-T"configPkg/linker.cmd" -Wl,--start-group -lstdc++ -lgcc -lm -lrdimon -lc -l:ti.csl.init.aa53fg -l:ti.csl.aa53cg -Wl,--end-group
makefile:151: recipe for target 'rtos_template_app_am65xx_a53.out' failed
c:/ti/gcc-linaro-7.2.1-2017.11-i686-mingw32_aarch64-elf/bin/../lib/gcc/aarch64-elf/7.2.1/../../../../aarch64-elf/bin/ld.exe: cannot find C:\CCS
c:/ti/gcc-linaro-7.2.1-2017.11-i686-mingw32_aarch64-elf/bin/../lib/gcc/aarch64-elf/7.2.1/../../../../aarch64-elf/bin/ld.exe: cannot find Workspace\rtos_template_app_am65xx_a53\Debug\configPkg\package\cfg\sysbios_a53_pa53fg.oa53fg
c:/ti/gcc-linaro-7.2.1-2017.11-i686-mingw32_aarch64-elf/bin/../lib/gcc/aarch64-elf/7.2.1/../../../../aarch64-elf/bin/ld.exe: cannot find C:\CCS
c:/ti/gcc-linaro-7.2.1-2017.11-i686-mingw32_aarch64-elf/bin/../lib/gcc/aarch64-elf/7.2.1/../../../../aarch64-elf/bin/ld.exe: cannot find Workspace\rtos_template_app_am65xx_a53\src\sysbios\sysbios.aa53fg
collect2.exe: error: ld returned 1 exit status
gmake[1]: *** [rtos_template_app_am65xx_a53.out] Error 1
gmake: *** [all] Error 2
makefile:147: recipe for target 'all' failed

**** Build Finished ****

  • John,

    It looks like there is a problem with the space in the workspace path. Can you try renaming to "CCS_Workspace" instead of "CCS Workspace" and seeing if there are still problems?

    Best regards,

    Dave

  • Yes, I made that change and it resolved the issue.

    Thank you.

    Now, there is an error involving the Entry setting.

    Here is the script:

    I do have Entry defined in the Basic Linker settings.

    Any thoughts on this?

    c:/ti/gcc-linaro-7.2.1-2017.11-i686-mingw32_aarch64-elf/bin/../lib/gcc/aarch64-elf/7.2.1/../../../../aarch64-elf/bin/ld.exe: warning: cannot find entry symbol Entry; defaulting to 0000000070002000
    Finished building target: "rtos_template_app_am65xx_a53.out"

    **** Build Finished ****

  • John,

    You can remove "Entry" from the RTOS template app. I believe this is not set when you import the project. Did you add manually?

    Best regards,

    Dave

  • Dave,

    If I remove Entry from the Linker properties, I get a different error:

    makefile:149: recipe for target 'rtos_template_app_am65xx_a53.out' failed

  • John,

    Can you share the full console print?

    Best regards.

    Dave

  • Dave,

    Here is the full print:


    **** Clean-only build of configuration Debug for project rtos_template_app_am65xx_a53 ****

    "C:\\ti\\ccs930\\ccs\\utils\\bin\\gmake" -k -j 4 clean -O

    DEL /F "rtos_template_app_am65xx_a53.hex" "configPkg\linker.cmd" "configPkg\compiler.opt" "rtos_template_app_am65xx_a53.out"
    DEL /F "GPIO_evmAM65xx_board.o" "app.o" "main.o"
    DEL /F "GPIO_evmAM65xx_board.d" "app.d" "main.d"
    RMDIR /S/Q "configPkg\"
    Could Not Find C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug\rtos_template_app_am65xx_a53.hex
    Finished clean

    **** Build Finished ****

    **** Build of configuration Debug for project rtos_template_app_am65xx_a53 ****

    "C:\\ti\\ccs930\\ccs\\utils\\bin\\gmake" -k -j 4 all -O

    Building file: "../sysbios_a53.cfg"
    Invoking: XDCtools
    "C:/ti/ccs910/xdctools_3_55_02_22_core/xs" --xdcpath="C:/ti/bios_6_76_02_02/packages;C:/ti/pdk_am65xx_1_0_6/packages;" xdc.tools.configuro -o configPkg -t gnu.targets.arm.A53F -p ti.platforms.cortexA:AM65X -r release -c "C:/ti/gcc-linaro-7.2.1-2017.11-i686-mingw32_aarch64-elf" "../sysbios_a53.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring sysbios_a53.xa53fg from package/cfg/sysbios_a53_pa53fg.cfg ...
    generating custom ti.sysbios library makefile ...
    Starting build of library sources ...
    making C:/CCS_Workspace/rtos_template_app_am65xx_a53/src/sysbios/sysbios.aa53fg ...
    Build of libraries done.
    cla53fg package/cfg/sysbios_a53_pa53fg.c ...
    Finished building: "../sysbios_a53.cfg"

    Building file: "../GPIO_evmAM65xx_board.c"
    Invoking: GNU Compiler
    "C:/ti/gcc-linaro-7.2.1-2017.11-i686-mingw32_aarch64-elf/bin/aarch64-elf-gcc-7.2.1.exe" -c -mcpu=cortex-a53+fp+simd -mtune=cortex-a53 -fno-exceptions -Dam6548 -Dcore0 -DAARCH64 -DSOC_AM6X -Dam65xx_evm -DSOC_AM65XX -Dam65xx -DUSE_BIOS -DBUILD_MPU1_0 -DBUILD_MPU -I"C:/CCS_Workspace/rtos_template_app_am65xx_a53" -I"C:/ti/pdk_am65xx_1_0_6/packages/ti/board/src/am65xx_evm/include" -I"C:/ti/gcc-linaro-7.2.1-2017.11-i686-mingw32_aarch64-elf/aarch64-elf/include" -Og -g -gdwarf-3 -gstrict-dwarf -Wall -Werror -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast -mabi=lp64 -MMD -MP -MF"GPIO_evmAM65xx_board.d" -MT"GPIO_evmAM65xx_board.o" @"configPkg/compiler.opt" -o"GPIO_evmAM65xx_board.o" "../GPIO_evmAM65xx_board.c"
    Finished building: "../GPIO_evmAM65xx_board.c"

    Building file: "../app.c"
    Invoking: GNU Compiler
    "C:/ti/gcc-linaro-7.2.1-2017.11-i686-mingw32_aarch64-elf/bin/aarch64-elf-gcc-7.2.1.exe" -c -mcpu=cortex-a53+fp+simd -mtune=cortex-a53 -fno-exceptions -Dam6548 -Dcore0 -DAARCH64 -DSOC_AM6X -Dam65xx_evm -DSOC_AM65XX -Dam65xx -DUSE_BIOS -DBUILD_MPU1_0 -DBUILD_MPU -I"C:/CCS_Workspace/rtos_template_app_am65xx_a53" -I"C:/ti/pdk_am65xx_1_0_6/packages/ti/board/src/am65xx_evm/include" -I"C:/ti/gcc-linaro-7.2.1-2017.11-i686-mingw32_aarch64-elf/aarch64-elf/include" -Og -g -gdwarf-3 -gstrict-dwarf -Wall -Werror -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast -mabi=lp64 -MMD -MP -MF"app.d" -MT"app.o" @"configPkg/compiler.opt" -o"app.o" "../app.c"
    Finished building: "../app.c"

    Building file: "../main.c"
    Invoking: GNU Compiler
    "C:/ti/gcc-linaro-7.2.1-2017.11-i686-mingw32_aarch64-elf/bin/aarch64-elf-gcc-7.2.1.exe" -c -mcpu=cortex-a53+fp+simd -mtune=cortex-a53 -fno-exceptions -Dam6548 -Dcore0 -DAARCH64 -DSOC_AM6X -Dam65xx_evm -DSOC_AM65XX -Dam65xx -DUSE_BIOS -DBUILD_MPU1_0 -DBUILD_MPU -I"C:/CCS_Workspace/rtos_template_app_am65xx_a53" -I"C:/ti/pdk_am65xx_1_0_6/packages/ti/board/src/am65xx_evm/include" -I"C:/ti/gcc-linaro-7.2.1-2017.11-i686-mingw32_aarch64-elf/aarch64-elf/include" -Og -g -gdwarf-3 -gstrict-dwarf -Wall -Werror -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast -mabi=lp64 -MMD -MP -MF"main.d" -MT"main.o" @"configPkg/compiler.opt" -o"main.o" "../main.c"
    Finished building: "../main.c"

    Building target: "rtos_template_app_am65xx_a53.out"
    Invoking: GNU Linker
    "C:/ti/gcc-linaro-7.2.1-2017.11-i686-mingw32_aarch64-elf/bin/aarch64-elf-gcc-7.2.1.exe" -mtune=cortex-a53 -fno-exceptions -Dam6548 -Dcore0 -DAARCH64 -DSOC_AM6X -Dam65xx_evm -DSOC_AM65XX -Dam65xx -DUSE_BIOS -DBUILD_MPU1_0 -DBUILD_MPU -Og -g -gdwarf-3 -gstrict-dwarf -Wall -Werror -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast -mcpu=cortex-a53+fp+simd -Wl,-Map,"rtos_template_app_am65xx_a53.map" -nostartfiles -static -Wl,--gc-sections -L"C:/ti/pdk_am65xx_1_0_6/packages/ti/csl/lib/am65xx/a53/release" -L"C:/ti/pdk_am65xx_1_0_6/packages/ti/board/lib/am65xx_evm/a53/release/" -L"C:/ti/pdk_am65xx_1_0_6/packages/ti/csl/lib/am65xx/a53/release" -L"C:/ti/bios_6_76_02_02/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib" -Wl,--defsym,CORE0=1 -Wl,--defsym,STACKSIZE=0x10000 -Wl,--defsym,HEAPSIZE=0x400 -o"rtos_template_app_am65xx_a53.out" "./GPIO_evmAM65xx_board.o" "./app.o" "./main.o" -Wl,-T"../linker_a53.lds" -Wl,-T"configPkg/linker.cmd" -Wl,--start-group -lstdc++ -lgcc -lm -lrdimon -lc -Wl,--end-group
    makefile:149: recipe for target 'rtos_template_app_am65xx_a53.out' failed
    ./app.o: In function `gpio_toggle_led_task':
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../app.c:120: undefined reference to `UART_printf'
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../app.c:120:(.text+0xc): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `UART_printf'
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../app.c:123: undefined reference to `GPIO_toggle'
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../app.c:123:(.text+0x14): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `GPIO_toggle'
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../app.c:134: undefined reference to `UART_printf'
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../app.c:134:(.text+0x30): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `UART_printf'
    ./app.o: In function `uart_task':
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../app.c:153: undefined reference to `UART_printf'
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../app.c:153:(.text+0x94): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `UART_printf'
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../app.c:166: undefined reference to `UART_printf'
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../app.c:166:(.text+0xb8): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `UART_printf'
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../app.c:194: undefined reference to `UART_printf'
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../app.c:194:(.text+0xc0): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `UART_printf'
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../app.c:161: undefined reference to `UART_printf'
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../app.c:161:(.text+0xfc): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `UART_printf'
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../app.c:164: undefined reference to `UART_scanFmt'
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../app.c:164:(.text+0x108): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `UART_scanFmt'
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../app.c:181: undefined reference to `UART_printf'
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../app.c:181:(.text+0x124): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `UART_printf'
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../app.c:183: undefined reference to `UART_printf'
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../app.c:183:(.text+0x12c): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `UART_printf'
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../app.c:185: undefined reference to `UART_printf'
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../app.c:185:(.text+0x134): additional relocation overflows omitted from the output
    ./app.o: In function `spi_test_task':
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../app.c:215: undefined reference to `UART_printf'
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../app.c:218: undefined reference to `SPI_Params_init'
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../app.c:222: undefined reference to `UART_printf'
    ./app.o: In function `i2c_eeprom_read_and_display_task':
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../app.c:251: undefined reference to `UART_printf'
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../app.c:246: undefined reference to `UART_printf'
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../app.c:257: undefined reference to `UART_printf'
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../app.c:259: undefined reference to `UART_printf'
    ./app.o:C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../app.c:291: more undefined references to `UART_printf' follow
    ./main.o: In function `peripheralInit':
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../main.c:152: undefined reference to `GPIO_init'
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../main.c:153: undefined reference to `UART_printf'
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../main.c:156: undefined reference to `MCSPI_init'
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../main.c:157: undefined reference to `UART_printf'
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../main.c:161: undefined reference to `UART_printf'
    ./main.o: In function `Board_initGPIO':
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../main.c:232: undefined reference to `GPIO_socGetInitCfg'
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../main.c:240: undefined reference to `GPIO_socSetInitCfg'
    ./main.o: In function `main':
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../main.c:116: undefined reference to `UART_printf'
    C:\CCS_Workspace\rtos_template_app_am65xx_a53\Debug/../main.c:114: undefined reference to `UART_printf'
    C:/ti/pdk_am65xx_1_0_6/packages/ti/board/lib/am65xx_evm/a53/release/\ti.board.aa53fg(am65xx_evm.oa53fg): In function `Board_sysInit':
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/am65xx_evm/am65xx_evm.c:78: undefined reference to `Sciclient_init'
    C:/ti/pdk_am65xx_1_0_6/packages/ti/board/lib/am65xx_evm/a53/release/\ti.board.aa53fg(am65xx_evm_info.oa53fg): In function `enableWKUPI2C':
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/am65xx_evm/am65xx_evm_info.c:47: undefined reference to `I2C_socGetInitCfg'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/am65xx_evm/am65xx_evm_info.c:52: undefined reference to `I2C_socSetInitCfg'
    C:/ti/pdk_am65xx_1_0_6/packages/ti/board/lib/am65xx_evm/a53/release/\ti.board.aa53fg(am65xx_evm_info.oa53fg): In function `Board_getIDInfo_v2':
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/am65xx_evm/am65xx_evm_info.c:88: undefined reference to `I2C_transactionInit'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/am65xx_evm/am65xx_evm_info.c:113: undefined reference to `I2C_transfer'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/am65xx_evm/am65xx_evm_info.c:131: undefined reference to `I2C_transfer'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/am65xx_evm/am65xx_evm_info.c:146: undefined reference to `I2C_transfer'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/am65xx_evm/am65xx_evm_info.c:162: undefined reference to `I2C_transfer'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/am65xx_evm/am65xx_evm_info.c:256: undefined reference to `I2C_close'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/am65xx_evm/am65xx_evm_info.c:182: undefined reference to `I2C_transfer'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/am65xx_evm/am65xx_evm_info.c:197: undefined reference to `I2C_transfer'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/am65xx_evm/am65xx_evm_info.c:218: undefined reference to `I2C_transfer'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/am65xx_evm/am65xx_evm_info.c:233: undefined reference to `I2C_transfer'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/am65xx_evm/am65xx_evm_info.c:251: undefined reference to `I2C_close'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/am65xx_evm/am65xx_evm_info.c:150: undefined reference to `I2C_close'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/am65xx_evm/am65xx_evm_info.c:237: undefined reference to `I2C_close'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/am65xx_evm/am65xx_evm_info.c:117: undefined reference to `I2C_close'
    C:/ti/pdk_am65xx_1_0_6/packages/ti/board/lib/am65xx_evm/a53/release/\ti.board.aa53fg(am65xx_evm_serdes_cfg.oa53fg): In function `Board_OnelanePCIeUSBSerdesCfg':
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/am65xx_evm/am65xx_evm_serdes_cfg.c:107: undefined reference to `CSL_serdesPorReset'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/am65xx_evm/am65xx_evm_serdes_cfg.c:109: undefined reference to `CSL_serdesPorReset'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/am65xx_evm/am65xx_evm_serdes_cfg.c:112: undefined reference to `CSL_serdesUSBInit'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/am65xx_evm/am65xx_evm_serdes_cfg.c:121: undefined reference to `CSL_serdesLaneEnable'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/am65xx_evm/am65xx_evm_serdes_cfg.c:129: undefined reference to `CSL_serdesPCIeInit'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/am65xx_evm/am65xx_evm_serdes_cfg.c:138: undefined reference to `CSL_serdesLaneEnable'
    C:/ti/pdk_am65xx_1_0_6/packages/ti/board/lib/am65xx_evm/a53/release/\ti.board.aa53fg(board_pll.oa53fg): In function `Board_PLLSetModuleClkFreq':
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/evmKeystone3/board_pll.c:723: undefined reference to `Sciclient_pmQueryModuleClkFreq'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/evmKeystone3/board_pll.c:731: undefined reference to `Sciclient_pmModuleGetClkStatus'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/evmKeystone3/board_pll.c:740: undefined reference to `Sciclient_pmGetModuleClkNumParent'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/evmKeystone3/board_pll.c:774: undefined reference to `Sciclient_pmModuleClkRequest'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/evmKeystone3/board_pll.c:783: undefined reference to `Sciclient_pmSetModuleClkParent'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/evmKeystone3/board_pll.c:792: undefined reference to `Sciclient_pmQueryModuleClkFreq'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/evmKeystone3/board_pll.c:816: undefined reference to `Sciclient_pmSetModuleClkFreq'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/evmKeystone3/board_pll.c:748: undefined reference to `Sciclient_pmSetModuleClkFreq'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/evmKeystone3/board_pll.c:826: undefined reference to `Sciclient_pmModuleClkRequest'
    C:/ti/pdk_am65xx_1_0_6/packages/ti/board/lib/am65xx_evm/a53/release/\ti.board.aa53fg(board_lld_init.oa53fg): In function `Board_uartStdioInit':
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/evmKeystone3/board_lld_init.c:46: undefined reference to `UART_stdioInit'
    C:/ti/pdk_am65xx_1_0_6/packages/ti/board/lib/am65xx_evm/a53/release/\ti.board.aa53fg(board_lld_init.oa53fg): In function `Board_internalInitI2C':
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/evmKeystone3/board_lld_init.c:75: undefined reference to `I2C_socGetInitCfg'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/evmKeystone3/board_lld_init.c:78: undefined reference to `I2C_socSetInitCfg'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/evmKeystone3/board_lld_init.c:82: undefined reference to `I2C_init'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/evmKeystone3/board_lld_init.c:84: undefined reference to `I2C_Params_init'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/evmKeystone3/board_lld_init.c:88: undefined reference to `I2C_open'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/evmKeystone3/board_lld_init.c:99: undefined reference to `I2C_socGetInitCfg'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/evmKeystone3/board_lld_init.c:101: undefined reference to `I2C_socSetInitCfg'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/evmKeystone3/board_lld_init.c:82: undefined reference to `I2C_init'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/evmKeystone3/board_lld_init.c:84: undefined reference to `I2C_Params_init'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/evmKeystone3/board_lld_init.c:88: undefined reference to `I2C_open'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/evmKeystone3/board_lld_init.c:106: undefined reference to `I2C_config'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/evmKeystone3/board_lld_init.c:106: undefined reference to `I2C_config'
    C:/ti/pdk_am65xx_1_0_6/packages/ti/board/lib/am65xx_evm/a53/release/\ti.board.aa53fg(board_clock.oa53fg): In function `Board_moduleClockEnable':
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/evmKeystone3/board_clock.c:319: undefined reference to `Sciclient_pmGetModuleState'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/evmKeystone3/board_clock.c:326: undefined reference to `Sciclient_pmSetModuleState'
    /oe/bld/build-AARCH64_1/arago-tmp-external-arm-toolchain/work/am65xx_evm-linux/board-rtos/01.00.10.06G-r0/build/ti/board/src/evmKeystone3/board_clock.c:333: undefined reference to `Sciclient_pmSetModuleRst'
    collect2.exe: error: ld returned 1 exit status
    gmake[1]: *** [rtos_template_app_am65xx_a53.out] Error 1
    gmake: *** [all] Error 2
    makefile:145: recipe for target 'all' failed

    **** Build Finished ****

  • John,

    Are you still struggling with this example? From the logs you have a lot of undefined references, so it seems that you're not referencing the project header files completely.

    Can you confirm in your CCS project explorer you see your header files pulled in from the PDK?

    Best regards,

    Dave

  • I have added all of the search paths for the libraries and now have been able to build the project.

    I am now trying to connect the Cortex A53 to the target and am getting this error:

    The DMSC is free running and the Cortex R5 0 is running as well.

  • I am trying to run this project:

    rtos_template_app_am65xx_a53

    This is failing when the tasks are being created, within the following function:

    ti_sysbios_knl_Task_Handle ti_sysbios_knl_Task_create( ti_sysbios_knl_Task_FuncPtr fxn, const ti_sysbios_knl_Task_Params *__paramsPtr, xdc_runtime_Error_Block *eb )
    {
    ti_sysbios_knl_Task_Params prms;
    ti_sysbios_knl_Task_Object *obj;

    int iStat;

    /* common instance initialization */
    obj = xdc_runtime_Core_createObject__I(&ti_sysbios_knl_Task_Object__DESC__C, NULL, &prms, (xdc_CPtr)__paramsPtr, 0, eb);
    if (obj == NULL) {
    return NULL;
    }

    /* module-specific initialization */
    iStat = ti_sysbios_knl_Task_Instance_init__E(obj, fxn, &prms, eb);
    if (iStat) {
    xdc_runtime_Core_deleteObject__I(&ti_sysbios_knl_Task_Object__DESC__C, obj, (xdc_Fxn)ti_sysbios_knl_Task_Instance_finalize__E, iStat, 0);
    return NULL;
    }

    return obj;
    }

    This results in the following error

    CortexA53_0_0: Unhandled ADP_Stopped exception 0x7006EE90

    What am I missing from the project?


  • John,

    To confirm, you have imported the template app with no changes, and are able to clean/build now without any errors. But when you execute you see the exception? Is it failing with the initial create function?

    Can you share a view of your project explorer with the Includes expanded?

    Best regards,

    Dave

  • Dave,

    Yes, I started with the template app with no changes.

    I have no build errors.

    I have gotten one step closer.

    I made this change to the sysbios_a53.cfg file with the help of another support question. 

    /* Create default heap and hook it into Memory */
    /*var heapMemParams = new HeapMem.Params;
    heapMemParams.size = 16384*3;
    var heap0 = HeapMem.create(heapMemParams);

    Memory.defaultHeapInstance = heap0;*/
    Memory.defaultHeapInstance = Program.global.INTMEM_HEAP;

    Now the bios is using the same heap and the tasks are being created.

    The problem now is that the tasks are not starting. The code goes to this function:

    Void BIOS_linkedWithIncorrectBootLibrary(Void)
    {
    /* LCOV_EXCL_STOP */
    /*
    * If execution reaches this function, it indicates that the wrong
    * boot library was linked with and the XDC runtime startup functions
    * were not called. This can happen if the code gen tool's RTS library
    * was before SYS/BIOS's generated linker cmd file on the link line.
    */
    while (1);
    }

    This issue was discussed in this thread, but I do not see any real solution.

    RTOS/AM5728: Incorrect linking of boot library in McASP example

    Here is the end of the build script.

    Building target: "rtos_template_app_am65xx_a53.out"
    Invoking: GNU Linker
    "C:/ti/gcc-linaro-7.2.1-2017.11-i686-mingw32_aarch64-elf/bin/aarch64-elf-gcc-7.2.1.exe" -mtune=cortex-a53 -fno-exceptions -Dam6548 -Dcore0 -DAARCH64 -DSOC_AM6X -Dam65xx_evm -DSOC_AM65XX -Dam65xx -DUSE_BIOS -DBUILD_MPU1_0 -DBUILD_MPU -O0 -g -gdwarf-3 -gstrict-dwarf -Wall -Werror -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast -mcpu=cortex-a53+fp+simd -Wl,-Map,"rtos_template_app_am65xx_a53.map" --entry Entry -nostartfiles -static -Wl,--gc-sections -L"C:/ti/pdk_am65xx_1_0_6/packages/ti/drv/uart/src" -L"C:/ti/pdk_am65xx_1_0_6/packages/ti/board/lib/am65xx_evm/a53/release" -L"C:/ti/pdk_am65xx_1_0_6/packages/ti/osal/lib/nonos/am65xx/a53/release" -L"C:/ti/pdk_am65xx_1_0_6/packages/ti/csl/lib/am65xx/a53/release" -L"C:/ti/pdk_am65xx_1_0_6/packages/ti/drv/i2c/lib/am65xx/a53/release" -L"C:/ti/pdk_am65xx_1_0_6/packages/ti/drv/sciclient/lib/am65xx/mpu1_0/release" -L"C:/ti/pdk_am65xx_1_0_6/packages/ti/drv/spi/lib/am65xx/a53/release" -L"C:/ti/pdk_am65xx_1_0_6/packages/ti/drv/gpio/lib/a53/release" -L"C:/ti/pdk_am65xx_1_0_6/packages/ti/drv/uart/lib/am65xx/a53/release" -L"C:/ti/bios_6_76_02_02/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib" -L"C:/ti/pdk_am65xx_1_0_6/packages/ti/board/lib/am65xx_evm/a53/release/" -L"C:/ti/bios_6_76_02_02/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib" -Wl,--defsym,CORE0=1 -Wl,--defsym,STACKSIZE=0x10000 -Wl,--defsym,HEAPSIZE=0x4000 -Wl,--defsym,HEAPSIZE=0x400 -o"rtos_template_app_am65xx_a53.out" "./GPIO_evmAM65xx_board.o" "./app.o" "./main.o" -Wl,-T"../linker_a53.lds" -Wl,-T"configPkg/linker.cmd" -Wl,--start-group "C:/ti/pdk_am65xx_1_0_6/packages/ti/board/lib/am65xx_evm/a53/release/ti.board.aa53fg" "C:/ti/pdk_am65xx_1_0_6/packages/ti/osal/lib/nonos/am65xx/a53/release/ti.osal.aa53fg" "C:/ti/pdk_am65xx_1_0_6/packages/ti/csl/lib/am65xx/a53/release/ti.csl.aa53fg" "C:/ti/pdk_am65xx_1_0_6/packages/ti/csl/lib/am65xx/a53/release/ti.csl.init.aa53fg" "C:/ti/pdk_am65xx_1_0_6/packages/ti/drv/i2c/lib/am65xx/a53/release/ti.drv.i2c.aa53fg" "C:/ti/pdk_am65xx_1_0_6/packages/ti/drv/sciclient/lib/am65xx/mpu1_0/release/sciclient.aa53fg" "C:/ti/pdk_am65xx_1_0_6/packages/ti/drv/spi/lib/am65xx/a53/release/ti.drv.spi.aa53fg" "C:/ti/pdk_am65xx_1_0_6/packages/ti/drv/gpio/lib/am65xx/a53/release/ti.drv.gpio.aa53fg" "C:/ti/pdk_am65xx_1_0_6/packages/ti/drv/uart/lib/am65xx/a53/release/ti.drv.uart.aa53fg" -lgcc -lm -lrdimon -lc -Wl,--end-group
    Finished building target: "rtos_template_app_am65xx_a53.out"

    **** Build Finished ****

  • John,

    I don't see the same on my side. Would it be possible for you to try the same with the Processor SDK 6.3 release and see if you have no issues? You should be able to build and run with no changes after importing the project.

    The 7.0 release is the latest, but 6.3 may be a quicker check if you're already using 6.1.

    Best regards,

    Dave