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.

编译starterware的bootloader工程报错

Other Parts Discussed in Thread: AM4378, SYSBIOSSDK-IND-SITARA

1.使用的是ccs6.1.2版本,编译器配置为GNU v4.9.3,目标芯片是am4378

starterware包被放在SYSBIOSSDK-IND-SITARA软件包中

www.ti.com.cn/.../sysbiossdk-ind-sitara

2.向ccs工程中导入bootloader工程,依照提示又导入依赖的6个工程:

依照上图中的要求,逐个修改各依赖工程的编译配置

3.编译bootloader工程,结果报错:

**** Build of configuration am43xx_boot_mmcsd_debug for project bootloader ****

"D:\\ti\\ccsv6\\utils\\bin\\gmake" -j 4 -s -k all
'Building file: D:/ti/starterware/examples/mmcsd/hsmmcsd_app_pol.c'
'Building file: D:/ti/starterware/examples/gpio/gpio_app.c'
'Building file: D:/ti/starterware/bootloader/src/am43xx/sbl_am43xx_platform.c'
'Building file: D:/ti/starterware/bootloader/src/am43xx/sbl_am43xx_platform_ddr.c'
'Invoking: GNU Compiler'
'Invoking: GNU Compiler'
'Invoking: GNU Compiler'
'Invoking: GNU Compiler'
'Finished building: D:/ti/starterware/examples/gpio/gpio_app.c'
'Finished building: D:/ti/starterware/examples/mmcsd/hsmmcsd_app_pol.c'
'Finished building: D:/ti/starterware/bootloader/src/am43xx/sbl_am43xx_platform.c'
'Finished building: D:/ti/starterware/bootloader/src/am43xx/sbl_am43xx_platform_ddr.c'
' '
' '
' '
' '
'Building file: D:/ti/starterware/bootloader/src/sbl_copy.c'
'Building file: D:/ti/starterware/bootloader/src/am43xx/sbl_am43xx_platform_pll.c'
'Building file: D:/ti/starterware/bootloader/src/sbl_main.c'
'Building file: D:/ti/starterware/bootloader/src/sbl_mmcsd.c'
'Invoking: GNU Compiler'
'Invoking: GNU Compiler'
'Invoking: GNU Compiler'
'Invoking: GNU Compiler'
D:/ti/starterware/bootloader/src/sbl_main.c: In function 'main':
D:/ti/starterware/bootloader/src/sbl_main.c:88:14: warning: variable 'status' set but not used [-Wunused-but-set-variable]
uint32_t status;
^
'Finished building: D:/ti/starterware/bootloader/src/sbl_copy.c'
'Finished building: D:/ti/starterware/bootloader/src/sbl_main.c'
'Finished building: D:/ti/starterware/bootloader/src/sbl_mmcsd.c'
'Finished building: D:/ti/starterware/bootloader/src/am43xx/sbl_am43xx_platform_pll.c'
' '
' '
' '
' '
'Building target: ../../../binary/bootloader/bin/am43xx-evm/ccs/bootloader_boot_mmcsd_a9host_debug.out'
'Invoking: GNU Linker'
d:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe:../../../examples/gcc/am43xx_boot_ccs.lds:50: warning: redeclaration of memory region `DDR0'
d:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: ../../../binary/bootloader/bin/am43xx-evm/ccs/bootloader_boot_mmcsd_a9host_debug.out section `.stack' will not fit in region `OCMCRAM'
d:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: region `OCMCRAM' overflowed by 61784 bytes
collect2.exe: error: ld returned 1 exit status
gmake: *** [../../../binary/bootloader/bin/am43xx-evm/ccs/bootloader_boot_mmcsd_a9host_debug.out] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

请问这是什么原因啊