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.

AM2432: Failed to build bootloader via command line in Ubuntu Linux 22.04

Part Number: AM2432

Hello, 

Our bootloader build failed in Ubuntu Linux 22.04 from command line, here is the error log.  Help is appreciated. 

Building target: "bootloader_am243.out"
Invoking: Arm Linker
"/opt/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang" -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -mlittle-endian -mthumb -DSOC_AM243X -D_DEBUG_=1 -g -Wall -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -Wl,-m"sbl_ospi.Debug.map" -Wl,-i"/opt/ti/mcu_plus_sdk_am243x_08_03_00_18/source/kernel/nortos/lib" -Wl,-i"/opt/ti/mcu_plus_sdk_am243x_08_03_00_18/source/drivers/lib" -Wl,-i"/opt/ti/mcu_plus_sdk_am243x_08_03_00_18/source/board/lib" -Wl,-i"/opt/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/lib" -Wl,--reread_libs -Wl,--diag_suppress=10063 -Wl,--diag_wrap=off -Wl,--display_error_number -Wl,--warn_sections -Wl,--xml_link_info="bootloader_am243_linkInfo.xml" -Wl,--ram_model -o "bootloader_am243.out" "./bootflash.o" "./bootflash_am243x.o" "./bootflash_nor_xspi_am243x.o" "./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" "./syscfg/ti_enet_config.o" "./syscfg/ti_enet_open_close.o" "./main.o" "./sha256_openssl.o" "./ti_flash_open_close.o" "./tick_am243.o" "../linker.cmd"  -Wl,-lnortos.am243x.r5f.ti-arm-clang.debug.lib -Wl,-ldrivers.am243x.r5f.ti-arm-clang.debug.lib -Wl,-lboard.am243x.r5f.ti-arm-clang.debug.lib -Wl,-llibc.a 
Finished building target: "bootloader_am243.out"
/opt/ti/ccs1220/ccs/utils/bin/gmake -C /proj -f makefile_ccs_bootimage_gen OUTNAME=bootloader_am243 PROFILE=Debug MCU_PLUS_SDK_PATH=/opt/ti/mcu_plus_sdk_am243x_08_03_00_18 CG_TOOL_ROOT=/opt/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS CCS_INSTALL_DIR=/opt/ti/ccs1220/ccs CCS_IDE_MODE=desktop
Boot image: am243x:r5fss0-0:nortos:ti-arm-clang /proj/Debug/bootloader_am243.tiimage ...
/opt/ti/ccs1220/ccs/utils/tiobj2bin/tiobj2bin Debug/bootloader_am243.out /proj/Debug/bootloader_am243.bin /opt/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmofd /opt/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmhex /opt/ti/ccs1220/ccs/utils/tiobj2bin/mkhex4bin
mkhex4bin failure occurred. Giving up.
makefile_ccs_bootimage_gen:68: recipe for target 'all' failed
gmake[3]: *** [all] Error 1
gmake[2]: [post-build] Error 2 (ignored)
makefile:168: recipe for target 'post-build' failed


Thanks,

Hong