Other Parts Discussed in Thread: SYSCONFIG
Hello TI team,
sbl_keywriter project failed to build with CCS 12.50 enviroment as below. I used version: otp_keywriter_am243x_09_00_00-windows-installer.exe.
Since we use SDK 09.01 in our FW development, we would like to have the keywriter working in the same environment as well.
Your help is appreciated,
Thanks,
Hong
Hong@honzhzha-97VT0T3 MINGW64 /c/ti/mcu_plus_sdk_am243x_09_01_00_41/source/security/sbl_keywriter/am243x-evm/r5fss0-0_nortos/ti-arm-clang
$ gmake -j PROFILE=debug
Generating SysConfig files ...
C:/ti/sysconfig_1.18.0/nodejs/node C:/ti/sysconfig_1.18.0/dist/cli.js --product C:/ti/mcu_plus_sdk_am243x_09_01_00_41/.metadata/product.json --context r5fss0-0 --part ALV --package ALV --output generated/ ../example.syscfg
Running script...
Validating...
info: CONFIG_UART0(/drivers/uart/uart) baudRate: Actual Baudrate Possible: 115385 (0 % error)
info: /kernel/dpl/debug_log uartLog.baudRate: Actual Baudrate Possible: 115385 (0 % error)
Generating Code (example.syscfg)...
Writing C:\ti\mcu_plus_sdk_am243x_09_01_00_41\source\security\sbl_keywriter\am243x-evm\r5fss0-0_nortos\ti-arm-clang\generated\ti_dpl_config.c...
Writing C:\ti\mcu_plus_sdk_am243x_09_01_00_41\source\security\sbl_keywriter\am243x-evm\r5fss0-0_nortos\ti-arm-clang\generated\ti_dpl_config.h...
Writing C:\ti\mcu_plus_sdk_am243x_09_01_00_41\source\security\sbl_keywriter\am243x-evm\r5fss0-0_nortos\ti-arm-clang\generated\ti_drivers_config.c...
Writing C:\ti\mcu_plus_sdk_am243x_09_01_00_41\source\security\sbl_keywriter\am243x-evm\r5fss0-0_nortos\ti-arm-clang\generated\ti_drivers_config.h...
Writing C:\ti\mcu_plus_sdk_am243x_09_01_00_41\source\security\sbl_keywriter\am243x-evm\r5fss0-0_nortos\ti-arm-clang\generated\ti_drivers_open_close.c...
Writing C:\ti\mcu_plus_sdk_am243x_09_01_00_41\source\security\sbl_keywriter\am243x-evm\r5fss0-0_nortos\ti-arm-clang\generated\ti_drivers_open_close.h...
Writing C:\ti\mcu_plus_sdk_am243x_09_01_00_41\source\security\sbl_keywriter\am243x-evm\r5fss0-0_nortos\ti-arm-clang\generated\ti_pinmux_config.c...
Writing C:\ti\mcu_plus_sdk_am243x_09_01_00_41\source\security\sbl_keywriter\am243x-evm\r5fss0-0_nortos\ti-arm-clang\generated\ti_power_clock_config.c...
Writing C:\ti\mcu_plus_sdk_am243x_09_01_00_41\source\security\sbl_keywriter\am243x-evm\r5fss0-0_nortos\ti-arm-clang\generated\ti_board_config.c...
Writing C:\ti\mcu_plus_sdk_am243x_09_01_00_41\source\security\sbl_keywriter\am243x-evm\r5fss0-0_nortos\ti-arm-clang\generated\ti_board_config.h...
Writing C:\ti\mcu_plus_sdk_am243x_09_01_00_41\source\security\sbl_keywriter\am243x-evm\r5fss0-0_nortos\ti-arm-clang\generated\ti_board_open_close.c...
Writing C:\ti\mcu_plus_sdk_am243x_09_01_00_41\source\security\sbl_keywriter\am243x-evm\r5fss0-0_nortos\ti-arm-clang\generated\ti_board_open_close.h...
Writing C:\ti\mcu_plus_sdk_am243x_09_01_00_41\source\security\sbl_keywriter\am243x-evm\r5fss0-0_nortos\ti-arm-clang\generated\ti_enet_config.c...
Writing C:\ti\mcu_plus_sdk_am243x_09_01_00_41\source\security\sbl_keywriter\am243x-evm\r5fss0-0_nortos\ti-arm-clang\generated\ti_enet_config.h...
Writing C:\ti\mcu_plus_sdk_am243x_09_01_00_41\source\security\sbl_keywriter\am243x-evm\r5fss0-0_nortos\ti-arm-clang\generated\ti_enet_open_close.c...
Writing C:\ti\mcu_plus_sdk_am243x_09_01_00_41\source\security\sbl_keywriter\am243x-evm\r5fss0-0_nortos\ti-arm-clang\generated\ti_enet_open_close.h...
Writing C:\ti\mcu_plus_sdk_am243x_09_01_00_41\source\security\sbl_keywriter\am243x-evm\r5fss0-0_nortos\ti-arm-clang\generated\ti_enet_soc.c...
Writing C:\ti\mcu_plus_sdk_am243x_09_01_00_41\source\security\sbl_keywriter\am243x-evm\r5fss0-0_nortos\ti-arm-clang\generated\ti_enet_lwipif.c...
Writing C:\ti\mcu_plus_sdk_am243x_09_01_00_41\source\security\sbl_keywriter\am243x-evm\r5fss0-0_nortos\ti-arm-clang\generated\ti_enet_lwipif.h...
Writing C:\ti\mcu_plus_sdk_am243x_09_01_00_41\source\security\sbl_keywriter\am243x-evm\r5fss0-0_nortos\ti-arm-clang\generated\ti_pru_io_config.inc...
C:/ti/ccs1250/ccs/utils/cygwin/mkdir -p obj/debug/
Compiling: am243x:r5fss0-0:nortos:ti-arm-clang sbl_keywriter.debug.out: ../main.c
C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-armllvm_3.2.0.LTS/bin/tiarmclang -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -Wall -Werror -g -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -D_DEBUG_=1 -IC:/ti/ccs1250/ccs/tools/compiler/ti-cgt-armllvm_3.2.0.LTS/include/c -IC:/ti/mcu_plus_sdk_am243x_09_01_00_41/source -Igenerated -DSOC_AM243X -MMD -o obj/debug//main.obj ../main.c
Compiling: am243x:r5fss0-0:nortos:ti-arm-clang sbl_keywriter.debug.out: ../keywriter_utils.c
C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-armllvm_3.2.0.LTS/bin/tiarmclang -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -Wall -Werror -g -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -D_DEBUG_=1 -IC:/ti/ccs1250/ccs/tools/compiler/ti-cgt-armllvm_3.2.0.LTS/include/c -IC:/ti/mcu_plus_sdk_am243x_09_01_00_41/source -Igenerated -DSOC_AM243X -MMD -o obj/debug//keywriter_utils.obj ../keywriter_utils.c
Compiling: am243x:r5fss0-0:nortos:ti-arm-clang sbl_keywriter.debug.out: ../board.c
C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-armllvm_3.2.0.LTS/bin/tiarmclang -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -Wall -Werror -g -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -D_DEBUG_=1 -IC:/ti/ccs1250/ccs/tools/compiler/ti-cgt-armllvm_3.2.0.LTS/include/c -IC:/ti/mcu_plus_sdk_am243x_09_01_00_41/source -Igenerated -DSOC_AM243X -MMD -o obj/debug//board.obj ../board.c
Compiling: am243x:r5fss0-0:nortos:ti-arm-clang sbl_keywriter.debug.out: generated/ti_drivers_config.c
C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-armllvm_3.2.0.LTS/bin/tiarmclang -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -Wall -Werror -g -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -D_DEBUG_=1 -IC:/ti/ccs1250/ccs/tools/compiler/ti-cgt-armllvm_3.2.0.LTS/include/c -IC:/ti/mcu_plus_sdk_am243x_09_01_00_41/source -Igenerated -DSOC_AM243X -MMD -o obj/debug//ti_drivers_config.obj generated/ti_drivers_config.c
Compiling: am243x:r5fss0-0:nortos:ti-arm-clang sbl_keywriter.debug.out: generated/ti_drivers_open_close.c
C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-armllvm_3.2.0.LTS/bin/tiarmclang -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -Wall -Werror -g -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -D_DEBUG_=1 -IC:/ti/ccs1250/ccs/tools/compiler/ti-cgt-armllvm_3.2.0.LTS/include/c -IC:/ti/mcu_plus_sdk_am243x_09_01_00_41/source -Igenerated -DSOC_AM243X -MMD -o obj/debug//ti_drivers_open_close.obj generated/ti_drivers_open_close.c
Compiling: am243x:r5fss0-0:nortos:ti-arm-clang sbl_keywriter.debug.out: generated/ti_board_config.c
C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-armllvm_3.2.0.LTS/bin/tiarmclang -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -Wall -Werror -g -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -D_DEBUG_=1 -IC:/ti/ccs1250/ccs/tools/compiler/ti-cgt-armllvm_3.2.0.LTS/include/c -IC:/ti/mcu_plus_sdk_am243x_09_01_00_41/source -Igenerated -DSOC_AM243X -MMD -o obj/debug//ti_board_config.obj generated/ti_board_config.c
Compiling: am243x:r5fss0-0:nortos:ti-arm-clang sbl_keywriter.debug.out: generated/ti_board_open_close.c
C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-armllvm_3.2.0.LTS/bin/tiarmclang -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -Wall -Werror -g -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -D_DEBUG_=1 -IC:/ti/ccs1250/ccs/tools/compiler/ti-cgt-armllvm_3.2.0.LTS/include/c -IC:/ti/mcu_plus_sdk_am243x_09_01_00_41/source -Igenerated -DSOC_AM243X -MMD -o obj/debug//ti_board_open_close.obj generated/ti_board_open_close.c
Compiling: am243x:r5fss0-0:nortos:ti-arm-clang sbl_keywriter.debug.out: generated/ti_dpl_config.c
C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-armllvm_3.2.0.LTS/bin/tiarmclang -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -Wall -Werror -g -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -D_DEBUG_=1 -IC:/ti/ccs1250/ccs/tools/compiler/ti-cgt-armllvm_3.2.0.LTS/include/c -IC:/ti/mcu_plus_sdk_am243x_09_01_00_41/source -Igenerated -DSOC_AM243X -MMD -o obj/debug//ti_dpl_config.obj generated/ti_dpl_config.c
Compiling: am243x:r5fss0-0:nortos:ti-arm-clang sbl_keywriter.debug.out: generated/ti_pinmux_config.c
C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-armllvm_3.2.0.LTS/bin/tiarmclang -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -Wall -Werror -g -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -D_DEBUG_=1 -IC:/ti/ccs1250/ccs/tools/compiler/ti-cgt-armllvm_3.2.0.LTS/include/c -IC:/ti/mcu_plus_sdk_am243x_09_01_00_41/source -Igenerated -DSOC_AM243X -MMD -o obj/debug//ti_pinmux_config.obj generated/ti_pinmux_config.c
Compiling: am243x:r5fss0-0:nortos:ti-arm-clang sbl_keywriter.debug.out: generated/ti_power_clock_config.c
C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-armllvm_3.2.0.LTS/bin/tiarmclang -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -Wall -Werror -g -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -D_DEBUG_=1 -IC:/ti/ccs1250/ccs/tools/compiler/ti-cgt-armllvm_3.2.0.LTS/include/c -IC:/ti/mcu_plus_sdk_am243x_09_01_00_41/source -Igenerated -DSOC_AM243X -MMD -o obj/debug//ti_power_clock_config.obj generated/ti_power_clock_config.c
.
Linking: am243x:r5fss0-0:nortos:ti-arm-clang sbl_keywriter.debug.out ...
C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-armllvm_3.2.0.LTS/bin/tiarmclang -Wl,--diag_suppress=10063 -Wl,--ram_model -Wl,--reread_libs -Wl,-iC:/ti/mcu_plus_sdk_am243x_09_01_00_41/source/kernel/nortos/lib -Wl,-iC:/ti/mcu_plus_sdk_am243x_09_01_00_41/source/drivers/lib -Wl,-iC:/ti/mcu_plus_sdk_am243x_09_01_00_41/source/board/lib -Wl,-iC:/ti/ccs1250/ccs/tools/compiler/ti-cgt-armllvm_3.2.0.LTS/lib -Wl,-m=sbl_keywriter.debug.map -o sbl_keywriter.debug.out obj/debug/main.obj obj/debug/keywriter_utils.obj obj/debug/board.obj obj/debug/ti_drivers_config.obj obj/debug/ti_drivers_open_close.obj obj/debug/ti_board_config.obj obj/debug/ti_board_open_close.obj obj/debug/ti_dpl_config.obj obj/debug/ti_pinmux_config.obj obj/debug/ti_power_clock_config.obj -lnortos.am243x.r5f.ti-arm-clang.debug.lib -ldrivers.am243x.r5f.ti-arm-clang.debug.lib -lboard.am243x.r5f.ti-arm-clang.debug.lib -llibc.a linker.cmd
"linker.cmd", line 18: error: program will not fit into available memory, or
the section contains a call site that requires a trampoline that can't be
generated for this section. placement with alignment fails for section
"GROUP_1" size 0x53089. Available memory ranges:
MSRAM_0 size: 0x4ff00 unused: 0x4ff00 max hole: 0x4ff00
undefined first referenced
symbol in file
--------- ----------------
gCacheConfig C:/ti/mcu_plus_sdk_am243x_09_01_00_41/source/kernel/nortos/lib/nortos.am243x.r5f.ti-arm-clang.debug.lib<CacheP_armv7r.obj>
error: unresolved symbols remain
error: errors encountered during linking; "sbl_keywriter.debug.out" not built
tiarmclang: error: tiarmlnk command failed with exit code 1 (use -v to see invocation)
makefile:136: recipe for target 'sbl_keywriter.debug.out' failed
gmake: *** [sbl_keywriter.debug.out] Error 1