CMD文件报错,请问能不能改变MEMERY{ }里面的内存段的大小啊 。比如说我想将SHRAM o = 0x80000000 l = 0x00020000这个128k的内存段改大一点。有没有人遇到过类似的问题,怎么解决的。
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.
CMD文件报错,请问能不能改变MEMERY{ }里面的内存段的大小啊 。比如说我想将SHRAM o = 0x80000000 l = 0x00020000这个128k的内存段改大一点。有没有人遇到过类似的问题,怎么解决的。
这是工程中原始的CMD文件中报的错
**** Build of configuration Debug for project test ****
"D:\\CCS7\\ccsv7\\utils\\bin\\gmake" -k -j 4 all -O
'Building target: test.out'
'Invoking: C6000 Linker'
"D:/CCS7/ccsv7/tools/compiler/ti-cgt-c6000_8.1.4/bin/cl6x" -mv6740 -g --define=c6748 --diag_wrap=off --display_error_number --diag_warning=225 -z -m"test.map" --stack_size=0x800 --heap_size=0x800 -i"D:/CCS7/ccsv7/tools/compiler/ti-cgt-c6000_8.1.4/lib" -i"D:/CCS7/ccsv7/tools/compiler/ti-cgt-c6000_8.1.4/include" --reread_libs --display_error_number --diag_wrap=off --warn_sections --xml_link_info="test_linkInfo.xml" --rom_model -o "test.out" "./EMIFAPinmuxSetup.obj" "./FFT.obj" "./FindN.obj" "./GetParameter.obj" "./GrLine.obj" "./fontcm40.obj" "./lcd.obj" "./main.obj" "../C6748.cmd" -llibc.a
<Linking>
"../C6748.cmd", line 45: error #10099-D: program will not fit into available memory. run placement with alignment fails for section ".far" size 0xc7432 . Available memory ranges:
SHRAM size: 0x20000 unused: 0x16208 max hole: 0x16208
undefined first referenced
symbol in file
--------- ----------------
CacheEnable ./main.obj
CacheEnableMAR ./main.obj
CacheWB ./main.obj
ConfigRasterDisplayEnable ./lcd.obj
EMIFAAsyncDevDataBusWidthSelect ./main.obj
EMIFAAsyncDevOpModeSelect ./main.obj
EMIFAExtendedWaitConfig ./main.obj
EMIFAWaitTimingConfig ./main.obj
GPIODirModeSet ./lcd.obj
GPIOPinRead ./main.obj
GPIOPinWrite ./lcd.obj
GrCircleDraw ./GrLine.obj
GrCircleFill ./GrLine.obj
GrContextInit ./lcd.obj
GrLineDraw ./GrLine.obj
>> Compilation failure
makefile:148: recipe for target 'test.out' failed
GrOffScreen16BPPInit ./lcd.obj
GrRectDraw ./GrLine.obj
GrRectFill ./GrLine.obj
GrStringDraw ./GrLine.obj
GrStringWidthGet ./main.obj
IntDSPINTCInit ./main.obj
IntEnable ./lcd.obj
IntEventClear ./lcd.obj
IntEventMap ./lcd.obj
IntGlobalEnable ./main.obj
IntRegister ./lcd.obj
LCDPinMuxSetup ./lcd.obj
PSCModuleControl ./lcd.obj
RasterClearGetIntStatus ./lcd.obj
RasterClkConfig ./lcd.obj
RasterDMAConfig ./lcd.obj
RasterDMAFBConfig ./lcd.obj
RasterDisable ./lcd.obj
RasterEnable ./lcd.obj
RasterEndOfFrameIntEnable ./lcd.obj
RasterFIFODMADelayConfig ./lcd.obj
RasterHparamConfig ./lcd.obj
RasterIntStatus ./lcd.obj
RasterLSBDataOrderSelect ./lcd.obj
RasterModeConfig ./lcd.obj
RasterNibbleModeDisable ./lcd.obj
RasterTiming2Configure ./lcd.obj
RasterVparamConfig ./lcd.obj
TimerConfigure ./main.obj
TimerEnable ./main.obj
TimerIntDisable ./main.obj
TimerIntEnable ./main.obj
TimerIntStatusClear ./main.obj
TimerPeriodSet ./main.obj
TouchDetect ./main.obj
TouchInit ./main.obj
g_sFontCm24 ./GrLine.obj
touch_flag ./main.obj
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "test.out" not built
gmake[1]: *** [test.out] Error 1
gmake: *** [all] Error 2
makefile:144: recipe for target 'all' failed
**** Build Finished ****
将SHRAM改为DDR2后.far上面的×没了(编译通过了?),报了后来的错
**** Build of configuration Debug for project test ****
"D:\\CCS7\\ccsv7\\utils\\bin\\gmake" -k -j 4 all -O
'Building target: test.out'
'Invoking: C6000 Linker'
"D:/CCS7/ccsv7/tools/compiler/ti-cgt-c6000_8.1.4/bin/cl6x" -mv6740 -g --define=c6748 --diag_wrap=off --display_error_number --diag_warning=225 -z -m"test.map" --stack_size=0x800 --heap_size=0x800 -i"D:/CCS7/ccsv7/tools/compiler/ti-cgt-c6000_8.1.4/lib" -i"D:/CCS7/ccsv7/tools/compiler/ti-cgt-c6000_8.1.4/include" --reread_libs --display_error_number --diag_wrap=off --warn_sections --xml_link_info="test_linkInfo.xml" --rom_model -o "test.out" "./EMIFAPinmuxSetup.obj" "./FFT.obj" "./FindN.obj" "./GetParameter.obj" "./GrLine.obj" "./fontcm40.obj" "./lcd.obj" "./main.obj" "../C6748.cmd" -llibc.a
<Linking>
undefined first referenced
symbol in file
--------- ----------------
CacheEnable ./main.obj
CacheEnableMAR ./main.obj
CacheWB ./main.obj
ConfigRasterDisplayEnable ./lcd.obj
EMIFAAsyncDevDataBusWidthSelect ./main.obj
EMIFAAsyncDevOpModeSelect ./main.obj
EMIFAExtendedWaitConfig ./main.obj
EMIFAWaitTimingConfig ./main.obj
GPIODirModeSet ./lcd.obj
GPIOPinRead ./main.obj
GPIOPinWrite ./lcd.obj
GrCircleDraw ./GrLine.obj
GrCircleFill ./GrLine.obj
GrContextInit ./lcd.obj
GrLineDraw ./GrLine.obj
GrOffScreen16BPPInit ./lcd.obj
GrRectDraw ./GrLine.obj
GrRectFill ./GrLine.obj
GrStringDraw ./GrLine.obj
GrStringWidthGet ./main.obj
IntDSPINTCInit ./main.obj
IntEnable ./lcd.obj
>> Compilation failure
makefile:148: recipe for target 'test.out' failed
IntEventClear ./lcd.obj
IntEventMap ./lcd.obj
IntGlobalEnable ./main.obj
IntRegister ./lcd.obj
LCDPinMuxSetup ./lcd.obj
PSCModuleControl ./lcd.obj
RasterClearGetIntStatus ./lcd.obj
RasterClkConfig ./lcd.obj
RasterDMAConfig ./lcd.obj
RasterDMAFBConfig ./lcd.obj
RasterDisable ./lcd.obj
RasterEnable ./lcd.obj
RasterEndOfFrameIntEnable ./lcd.obj
RasterFIFODMADelayConfig ./lcd.obj
RasterHparamConfig ./lcd.obj
RasterIntStatus ./lcd.obj
RasterLSBDataOrderSelect ./lcd.obj
RasterModeConfig ./lcd.obj
RasterNibbleModeDisable ./lcd.obj
RasterTiming2Configure ./lcd.obj
RasterVparamConfig ./lcd.obj
TimerConfigure ./main.obj
TimerEnable ./main.obj
TimerIntDisable ./main.obj
TimerIntEnable ./main.obj
TimerIntStatusClear ./main.obj
TimerPeriodSet ./main.obj
TouchDetect ./main.obj
TouchInit ./main.obj
g_sFontCm24 ./GrLine.obj
touch_flag ./main.obj
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "test.out" not built
gmake[1]: *** [test.out] Error 1
makefile:144: recipe for target 'all' failed
gmake: *** [all] Error 2
**** Build Finished ****