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.

CCSTUDIO-SITARA: AM64x, hello world project, makefile_ccs_bootimage_gen:78: recipe for target 'all' failed

Part Number: CCSTUDIO-SITARA

Hi, TI support:

Right now I am trying to follow AM64x_MCU_SDK to get code running with R5 core with AM64x_EVM board, got SDK, CCS, sysconfig installed on my PC, but when I am build "hello world" project, got .out  file build successfully, but looks like build bootimage file failed.

Building file: "../hello_world.c"
Invoking: Arm Compiler
"H:/ti/ccs1120/ccs/tools/compiler/ti-cgt-armllvm_1.3.1.LTS/bin/tiarmclang.exe" -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -mlittle-endian -I"H:/ti/ccs1120/ccs/tools/compiler/ti-cgt-armllvm_1.3.1.LTS/include/c" -I"H:/ti/mcu_plus_sdk_am64x_08_02_00_31/source" -I"H:/ti/mcu_plus_sdk_am64x_08_02_00_31/source/kernel/freertos/FreeRTOS-Kernel/include" -I"H:/ti/mcu_plus_sdk_am64x_08_02_00_31/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CR5F" -I"H:/ti/mcu_plus_sdk_am64x_08_02_00_31/source/kernel/freertos/config/am64x/r5f" -DSOC_AM64X -D_DEBUG_=1 -gstrict-dwarf -g -Wall -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -MMD -MP -MF"hello_world.d_raw" -MT"hello_world.o" -I"H:/ti/Workspace_v11/hello_world_am64x-evm_r5fss0-0_freertos_ti-arm-clang/Debug/syscfg" -o"hello_world.o" "../hello_world.c"
Finished building: "../hello_world.c"

Building file: "../main.c"
Invoking: Arm Compiler
"H:/ti/ccs1120/ccs/tools/compiler/ti-cgt-armllvm_1.3.1.LTS/bin/tiarmclang.exe" -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -mlittle-endian -I"H:/ti/ccs1120/ccs/tools/compiler/ti-cgt-armllvm_1.3.1.LTS/include/c" -I"H:/ti/mcu_plus_sdk_am64x_08_02_00_31/source" -I"H:/ti/mcu_plus_sdk_am64x_08_02_00_31/source/kernel/freertos/FreeRTOS-Kernel/include" -I"H:/ti/mcu_plus_sdk_am64x_08_02_00_31/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CR5F" -I"H:/ti/mcu_plus_sdk_am64x_08_02_00_31/source/kernel/freertos/config/am64x/r5f" -DSOC_AM64X -D_DEBUG_=1 -gstrict-dwarf -g -Wall -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -MMD -MP -MF"main.d_raw" -MT"main.o" -I"H:/ti/Workspace_v11/hello_world_am64x-evm_r5fss0-0_freertos_ti-arm-clang/Debug/syscfg" -o"main.o" "../main.c"
Finished building: "../main.c"

Building target: "hello_world_am64x-evm_r5fss0-0_freertos_ti-arm-clang.out"
Invoking: Arm Linker
"H:/ti/ccs1120/ccs/tools/compiler/ti-cgt-armllvm_1.3.1.LTS/bin/tiarmclang.exe" -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -mlittle-endian -DSOC_AM64X -D_DEBUG_=1 -gstrict-dwarf -g -Wall -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -Wl,-m"hello_world.Debug.map" -Wl,-i"H:/ti/mcu_plus_sdk_am64x_08_02_00_31/source/kernel/freertos/lib" -Wl,-i"H:/ti/mcu_plus_sdk_am64x_08_02_00_31/source/drivers/lib" -Wl,-i"H:/ti/mcu_plus_sdk_am64x_08_02_00_31/source/board/lib" -Wl,-i"H:/ti/ccs1120/ccs/tools/compiler/ti-cgt-armllvm_1.3.1.LTS/lib" -Wl,--reread_libs -Wl,--diag_suppress=10063 -Wl,--diag_wrap=off -Wl,--display_error_number -Wl,--warn_sections -Wl,--xml_link_info="hello_world_am64x-evm_r5fss0-0_freertos_ti-arm-clang_linkInfo.xml" -Wl,--ram_model -o "hello_world_am64x-evm_r5fss0-0_freertos_ti-arm-clang.out" "./syscfg/ti_dpl_config.o" "./syscfg/ti_drivers_config.o" "./syscfg/ti_drivers_open_close.o" "./syscfg/ti_pinmux_config.o" "./syscfg/ti_power_clock_config.o" "./syscfg/ti_board_config.o" "./syscfg/ti_board_open_close.o" "./hello_world.o" "./main.o" "../linker.cmd" -Wl,-lfreertos.am64x.r5f.ti-arm-clang.debug.lib -Wl,-ldrivers.am64x.r5f.ti-arm-clang.debug.lib -Wl,-lboard.am64x.r5f.ti-arm-clang.debug.lib -Wl,-llibc.a
Finished building target: "hello_world_am64x-evm_r5fss0-0_freertos_ti-arm-clang.out"

H:/ti/ccs1120/ccs/utils/bin/gmake -C H:\ti\Workspace_v11\hello_world_am64x-evm_r5fss0-0_freertos_ti-arm-clang -f makefile_ccs_bootimage_gen OUTNAME=hello_world_am64x-evm_r5fss0-0_freertos_ti-arm-clang PROFILE=Debug MCU_PLUS_SDK_PATH=H:/ti/mcu_plus_sdk_am64x_08_02_00_31 CG_TOOL_ROOT=H:/ti/ccs1120/ccs/tools/compiler/ti-cgt-armllvm_1.3.1.LTS CCS_INSTALL_DIR=H:\ti\ccs1120\ccs CCS_IDE_MODE=desktop
Boot image: am64x:r5fss0-0:freertos:ti-arm-clang H:/ti/Workspace_v11/hello_world_am64x-evm_r5fss0-0_freertos_ti-arm-clang/Debug/hello_world_am64x-evm_r5fss0-0_freertos_ti-arm-clang.appimage ...
C:/ti/sysconfig_1.11.0/nodejs/node H:/ti/mcu_plus_sdk_am64x_08_02_00_31/tools/boot/out2rprc/elf2rprc.js Debug/hello_world_am64x-evm_r5fss0-0_freertos_ti-arm-clang.out >> Debug/temp_stdout_Debug.txt
makefile_ccs_bootimage_gen:78: recipe for target 'all' failed
The system cannot find the path specified.
gmake[3]: *** [all] Error 1
gmake[2]: [post-build] Error 2 (ignored)
makefile:177: recipe for target 'post-build' failed

**** Build Finished ****

It looks like when building bootimage, somehow it invoked wrong path for sysconfig, it called "C:/ti/sysconfig_1.11.0/nodejs/node" from drive "C:" instead of drive "H:" somehow. Please advice where to change the setting, the environment variable defined by project has pointing to correct path for sysconfig already.

  • Please advice where to change the setting, the environment variable defined by project has pointing to correct path for sysconfig already.

    I don't currently have mcu_plus_sdk_am64x_08_02_00_31 installed, but based upon looking at mcu_plus_sdk_am243x_08_02_00_31 I think if you go to the CCS project properties -> CCS Build -> Steps and add SYSCFG_PATH=${SYSCONFIG_TOOL_ROOT} to the end of the Post-build steps:

    Then setting SYSCFG_PATH in the post-build step which generates the appimage should override the default path in $(MCU_PLUS_SDK_PATH)/imports.mak which assumes the SDK is installed under C:/ti

    Where $(MCU_PLUS_SDK_PATH)/imports.mak is included by makefile_ccs_bootimage_gen

  • Fixed my issue by changing path from "C:/ti" to "H:ti" in $(MCU_PLUS_SDK_PATH)/imports.mak, add "SYSCFG_PATH=${SYSCONFIG_TOOL_ROOT}" in post-build steps with project property doesn't work.