TI中文支持网
TI专业的中文技术问题搜集分享网站

CCS5.3编译一个自己修改的CANopen时出现存储空间不够的问题?

**** Build of configuration Debug for project CANopen_28035 ****

"C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all'Building target: CANopen_28035.out'
'Invoking: C2000 Linker'
"C:/ti/ccsv5/tools/compiler/c2000_6.1.0/bin/cl2000" -v28 -ml -mt –cla_support=cla0 -g –diag_warning=225 –display_error_number –diag_wrap=off -z –stack_size=0x300 -m"CANopen_28035.map" –warn_sections -i"C:/ti/ccsv5/tools/compiler/c2000_6.1.0/lib" -i"C:/ti/ccsv5/tools/compiler/c2000_6.1.0/include" –reread_libs –display_error_number –diag_wrap=off –rom_model -o "CANopen_28035.out" "./DSP2803x_common/source/DSP2803x_usDelay.obj" "./DSP2803x_common/source/DSP2803x_TempSensorConv.obj" "./DSP2803x_common/source/DSP2803x_SysCtrl.obj" "./DSP2803x_common/source/DSP2803x_Spi.obj" "./DSP2803x_common/source/DSP2803x_Sci.obj" "./DSP2803x_common/source/DSP2803x_PieVect.obj" "./DSP2803x_common/source/DSP2803x_PieCtrl.obj" "./DSP2803x_common/source/DSP2803x_OscComp.obj" "./DSP2803x_common/source/DSP2803x_MemCopy.obj" "./DSP2803x_common/source/DSP2803x_Lin.obj" "./DSP2803x_common/source/DSP2803x_I2C.obj" "./DSP2803x_common/source/DSP2803x_HRCap.obj" "./DSP2803x_common/source/DSP2803x_Gpio.obj" "./DSP2803x_common/source/DSP2803x_EQep.obj" "./DSP2803x_common/source/DSP2803x_EPwm.obj" "./DSP2803x_common/source/DSP2803x_ECap.obj" "./DSP2803x_common/source/DSP2803x_ECan.obj" "./DSP2803x_common/source/DSP2803x_DisInt.obj" "./DSP2803x_common/source/DSP2803x_DefaultIsr.obj" "./DSP2803x_common/source/DSP2803x_DBGIER.obj" "./DSP2803x_common/source/DSP2803x_CpuTimers.obj" "./DSP2803x_common/source/DSP2803x_Comp.obj" "./DSP2803x_common/source/DSP2803x_CodeStartBranch.obj" "./DSP2803x_common/source/DSP2803x_CSMPasswords.obj" "./DSP2803x_common/source/DSP2803x_Adc.obj" "./DSP2803x_headers/source/DSP2803x_GlobalVariableDefs.obj" "./canopen/timer_f28335.obj" "./canopen/timer.obj" "./canopen/sync.obj" "./canopen/states.obj" "./canopen/sdo.obj" "./canopen/pdo.obj" "./canopen/objacces.obj" "./canopen/nmtSlave.obj" "./canopen/nmtMaster.obj" "./canopen/lss.obj" "./canopen/lifegrd.obj" "./canopen/emcy.obj" "./canopen/ds401.obj" "./canopen/dcf.obj" "./canopen/can_f28335.obj" "./canopen/ObjDict.obj" "./main.obj" -l"libc.a" "../28035_RAM_lnk.cmd" "../canopen/DSP2803x_Headers_nonBIOS.cmd" "../DSP2803x_common/lib/2803x_FlashAPI_BootROMSymbols.lib" "../DSP2803x_common/lib/Flash2803x_API_V100.lib" "../DSP2803x_common/lib/SFO_TI_Build_V6.lib" "../DSP2803x_common/lib/SFO_TI_Build_V6b.lib"warning #10247-D: creating output section ".sysmem" without a SECTIONS specification
<Linking>
warning #10247-D: creating output section "csm_rsvd" without a SECTIONS specification

>> Compilation failure
warning #10247-D: creating output section "csmpasswds" without a SECTIONS specification
warning #10210-D: creating ".sysmem" section with default size of 0x400; use the -heap option to change the default size
"../28035_RAM_lnk.cmd", line 110: error #10099-D: program will not fit into available memory. placement with alignment/blocking fails for section ".text" size 0x480a page 0. Available memory ranges:
RAML0L1 size: 0xc00 unused: 0xc00 max hole: 0xc00"../28035_RAM_lnk.cmd", line 117: error #10099-D: program will not fit into available memory. run placement with alignment/blocking fails for section ".ebss" size 0x5f4 page 1. Available memory ranges:
RAML2 size: 0x400 unused: 0x1ef max hole: 0x1ef"../28035_RAM_lnk.cmd", line 111: error #10099-D: program will not fit into available memory. placement with alignment/blocking fails for section ".cinit" size 0x566 page 0. Available memory ranges:
RAMM0 size: 0x3b0 unused: 0x2ed max hole: 0x2ederror #10010: errors encountered during linking; "CANopen_28035.out" not built
gmake: *** [CANopen_28035.out] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

Eric Ma:

你这个代码量太大了,不能把代码放在RAM中,所以你要用flash的CMD,将代码都放到flash里面去。

C:\ti\controlSUITE\device_support\f2803x\v130\DSP2803x_common\cmd

F28035.cmd

ERIC

**** Build of configuration Debug for project CANopen_28035 ****

"C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all'Building target: CANopen_28035.out'
'Invoking: C2000 Linker'
"C:/ti/ccsv5/tools/compiler/c2000_6.1.0/bin/cl2000" -v28 -ml -mt –cla_support=cla0 -g –diag_warning=225 –display_error_number –diag_wrap=off -z –stack_size=0x300 -m"CANopen_28035.map" –warn_sections -i"C:/ti/ccsv5/tools/compiler/c2000_6.1.0/lib" -i"C:/ti/ccsv5/tools/compiler/c2000_6.1.0/include" –reread_libs –display_error_number –diag_wrap=off –rom_model -o "CANopen_28035.out" "./DSP2803x_common/source/DSP2803x_usDelay.obj" "./DSP2803x_common/source/DSP2803x_TempSensorConv.obj" "./DSP2803x_common/source/DSP2803x_SysCtrl.obj" "./DSP2803x_common/source/DSP2803x_Spi.obj" "./DSP2803x_common/source/DSP2803x_Sci.obj" "./DSP2803x_common/source/DSP2803x_PieVect.obj" "./DSP2803x_common/source/DSP2803x_PieCtrl.obj" "./DSP2803x_common/source/DSP2803x_OscComp.obj" "./DSP2803x_common/source/DSP2803x_MemCopy.obj" "./DSP2803x_common/source/DSP2803x_Lin.obj" "./DSP2803x_common/source/DSP2803x_I2C.obj" "./DSP2803x_common/source/DSP2803x_HRCap.obj" "./DSP2803x_common/source/DSP2803x_Gpio.obj" "./DSP2803x_common/source/DSP2803x_EQep.obj" "./DSP2803x_common/source/DSP2803x_EPwm.obj" "./DSP2803x_common/source/DSP2803x_ECap.obj" "./DSP2803x_common/source/DSP2803x_ECan.obj" "./DSP2803x_common/source/DSP2803x_DisInt.obj" "./DSP2803x_common/source/DSP2803x_DefaultIsr.obj" "./DSP2803x_common/source/DSP2803x_DBGIER.obj" "./DSP2803x_common/source/DSP2803x_CpuTimers.obj" "./DSP2803x_common/source/DSP2803x_Comp.obj" "./DSP2803x_common/source/DSP2803x_CodeStartBranch.obj" "./DSP2803x_common/source/DSP2803x_CSMPasswords.obj" "./DSP2803x_common/source/DSP2803x_Adc.obj" "./DSP2803x_headers/source/DSP2803x_GlobalVariableDefs.obj" "./canopen/timer_f28335.obj" "./canopen/timer.obj" "./canopen/sync.obj" "./canopen/states.obj" "./canopen/sdo.obj" "./canopen/pdo.obj" "./canopen/objacces.obj" "./canopen/nmtSlave.obj" "./canopen/nmtMaster.obj" "./canopen/lss.obj" "./canopen/lifegrd.obj" "./canopen/emcy.obj" "./canopen/ds401.obj" "./canopen/dcf.obj" "./canopen/can_f28335.obj" "./canopen/ObjDict.obj" "./main.obj" -l"libc.a" "../28035_RAM_lnk.cmd" "../canopen/DSP2803x_Headers_nonBIOS.cmd" "../DSP2803x_common/lib/2803x_FlashAPI_BootROMSymbols.lib" "../DSP2803x_common/lib/Flash2803x_API_V100.lib" "../DSP2803x_common/lib/SFO_TI_Build_V6.lib" "../DSP2803x_common/lib/SFO_TI_Build_V6b.lib"warning #10247-D: creating output section ".sysmem" without a SECTIONS specification
<Linking>
warning #10247-D: creating output section "csm_rsvd" without a SECTIONS specification

>> Compilation failure
warning #10247-D: creating output section "csmpasswds" without a SECTIONS specification
warning #10210-D: creating ".sysmem" section with default size of 0x400; use the -heap option to change the default size
"../28035_RAM_lnk.cmd", line 110: error #10099-D: program will not fit into available memory. placement with alignment/blocking fails for section ".text" size 0x480a page 0. Available memory ranges:
RAML0L1 size: 0xc00 unused: 0xc00 max hole: 0xc00"../28035_RAM_lnk.cmd", line 117: error #10099-D: program will not fit into available memory. run placement with alignment/blocking fails for section ".ebss" size 0x5f4 page 1. Available memory ranges:
RAML2 size: 0x400 unused: 0x1ef max hole: 0x1ef"../28035_RAM_lnk.cmd", line 111: error #10099-D: program will not fit into available memory. placement with alignment/blocking fails for section ".cinit" size 0x566 page 0. Available memory ranges:
RAMM0 size: 0x3b0 unused: 0x2ed max hole: 0x2ederror #10010: errors encountered during linking; "CANopen_28035.out" not built
gmake: *** [CANopen_28035.out] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

user450161651:

RAM,已经不够使用

烧写进FLASH吧,

.CMD文件记得切换

**** Build of configuration Debug for project CANopen_28035 ****

"C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all'Building target: CANopen_28035.out'
'Invoking: C2000 Linker'
"C:/ti/ccsv5/tools/compiler/c2000_6.1.0/bin/cl2000" -v28 -ml -mt –cla_support=cla0 -g –diag_warning=225 –display_error_number –diag_wrap=off -z –stack_size=0x300 -m"CANopen_28035.map" –warn_sections -i"C:/ti/ccsv5/tools/compiler/c2000_6.1.0/lib" -i"C:/ti/ccsv5/tools/compiler/c2000_6.1.0/include" –reread_libs –display_error_number –diag_wrap=off –rom_model -o "CANopen_28035.out" "./DSP2803x_common/source/DSP2803x_usDelay.obj" "./DSP2803x_common/source/DSP2803x_TempSensorConv.obj" "./DSP2803x_common/source/DSP2803x_SysCtrl.obj" "./DSP2803x_common/source/DSP2803x_Spi.obj" "./DSP2803x_common/source/DSP2803x_Sci.obj" "./DSP2803x_common/source/DSP2803x_PieVect.obj" "./DSP2803x_common/source/DSP2803x_PieCtrl.obj" "./DSP2803x_common/source/DSP2803x_OscComp.obj" "./DSP2803x_common/source/DSP2803x_MemCopy.obj" "./DSP2803x_common/source/DSP2803x_Lin.obj" "./DSP2803x_common/source/DSP2803x_I2C.obj" "./DSP2803x_common/source/DSP2803x_HRCap.obj" "./DSP2803x_common/source/DSP2803x_Gpio.obj" "./DSP2803x_common/source/DSP2803x_EQep.obj" "./DSP2803x_common/source/DSP2803x_EPwm.obj" "./DSP2803x_common/source/DSP2803x_ECap.obj" "./DSP2803x_common/source/DSP2803x_ECan.obj" "./DSP2803x_common/source/DSP2803x_DisInt.obj" "./DSP2803x_common/source/DSP2803x_DefaultIsr.obj" "./DSP2803x_common/source/DSP2803x_DBGIER.obj" "./DSP2803x_common/source/DSP2803x_CpuTimers.obj" "./DSP2803x_common/source/DSP2803x_Comp.obj" "./DSP2803x_common/source/DSP2803x_CodeStartBranch.obj" "./DSP2803x_common/source/DSP2803x_CSMPasswords.obj" "./DSP2803x_common/source/DSP2803x_Adc.obj" "./DSP2803x_headers/source/DSP2803x_GlobalVariableDefs.obj" "./canopen/timer_f28335.obj" "./canopen/timer.obj" "./canopen/sync.obj" "./canopen/states.obj" "./canopen/sdo.obj" "./canopen/pdo.obj" "./canopen/objacces.obj" "./canopen/nmtSlave.obj" "./canopen/nmtMaster.obj" "./canopen/lss.obj" "./canopen/lifegrd.obj" "./canopen/emcy.obj" "./canopen/ds401.obj" "./canopen/dcf.obj" "./canopen/can_f28335.obj" "./canopen/ObjDict.obj" "./main.obj" -l"libc.a" "../28035_RAM_lnk.cmd" "../canopen/DSP2803x_Headers_nonBIOS.cmd" "../DSP2803x_common/lib/2803x_FlashAPI_BootROMSymbols.lib" "../DSP2803x_common/lib/Flash2803x_API_V100.lib" "../DSP2803x_common/lib/SFO_TI_Build_V6.lib" "../DSP2803x_common/lib/SFO_TI_Build_V6b.lib"warning #10247-D: creating output section ".sysmem" without a SECTIONS specification
<Linking>
warning #10247-D: creating output section "csm_rsvd" without a SECTIONS specification

>> Compilation failure
warning #10247-D: creating output section "csmpasswds" without a SECTIONS specification
warning #10210-D: creating ".sysmem" section with default size of 0x400; use the -heap option to change the default size
"../28035_RAM_lnk.cmd", line 110: error #10099-D: program will not fit into available memory. placement with alignment/blocking fails for section ".text" size 0x480a page 0. Available memory ranges:
RAML0L1 size: 0xc00 unused: 0xc00 max hole: 0xc00"../28035_RAM_lnk.cmd", line 117: error #10099-D: program will not fit into available memory. run placement with alignment/blocking fails for section ".ebss" size 0x5f4 page 1. Available memory ranges:
RAML2 size: 0x400 unused: 0x1ef max hole: 0x1ef"../28035_RAM_lnk.cmd", line 111: error #10099-D: program will not fit into available memory. placement with alignment/blocking fails for section ".cinit" size 0x566 page 0. Available memory ranges:
RAMM0 size: 0x3b0 unused: 0x2ed max hole: 0x2ederror #10010: errors encountered during linking; "CANopen_28035.out" not built
gmake: *** [CANopen_28035.out] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

mangui zhang:

厉害   RAM不足   

只能把重要的放到RAM中跑了   其他的放到flash里面吧

赞(0)
未经允许不得转载:TI中文支持网 » CCS5.3编译一个自己修改的CANopen时出现存储空间不够的问题?
分享到: 更多 (0)