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.

TMS320F28335: 无法编译,总是有四个错误两个警告,用的是ccs6.2添加了ccs5.5的仿真功能

Part Number: TMS320F28335

"D:\\TI\\ccsv6\\utils\\bin\\gmake" -k all
'Building target: TEST6.out'
'Invoking: C2000 Linker'
"D:/TI/ccsv6/tools/compiler/c2000_15.12.3.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -g --display_error_number --diag_warning=225 --diag_wrap=off --printf_support=minimal -z -m"TEST6.map" --stack_size=0x300 --warn_sections -i"D:/TI/ccsv6/tools/compiler/c2000_15.12.3.LTS/lib" -i"D:/TI/ccsv6/tools/compiler/c2000_15.12.3.LTS/include" --reread_libs --diag_wrap=off --display_error_number --xml_link_info="TEST6_linkInfo.xml" --rom_model -o "TEST6.out" "./hello.obj" "../28335_RAM_lnk.cmd" "../DSP2833x_Headers_nonBIOS.cmd" -llibc.a
<Linking>
warning #10247-D: creating output section ".cio" without a SECTIONS specification

warning #10210-D: creating ".esysmem" section with default size of 0x400; use the -heap option to change the default size
>> Compilation failure
makefile:141: recipe for target 'TEST6.out' failed
"../28335_RAM_lnk.cmd", line 137: error #10099-D: program will not fit into available memory. run placement with alignment/blocking fails for section ".stack" size 0x300 page 1. Available memory ranges:
RAMM1 size: 0x400 unused: 0x0 max hole: 0x0
error #10010: errors encountered during linking; "TEST6.out" not built
gmake: *** [TEST6.out] Error 1
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

  • 您好,看一下warning:

    warning #10247-D: creating output section ".cio" without a SECTIONS specification

    您没有在链接器命令文件中为.cio指定内存分配;

    warning #10210-D: creating ".esysmem" section with default size of 0x400; use the -heap option to change the default size

    .esysmem分配的是默认大小的内存,应该是不够。

    "../28335_RAM_lnk.cmd", line 137: error #10099-D: program will not fit into available memory. run placement with alignment/blocking fails for section ".stack" size 0x300 page 1.

    给栈分配的大小也不够。可用的分配范围:

    Available memory ranges:
    RAMM1 size: 0x400 unused: 0x0 max hole: 0x0