Tool/software: Code Composer Studio
Hello,
I am using the C6748 development kit for data collection. I am trying to save around 5MB into an array. When I try to compile the program, I run into the error below:
**** Build of configuration Debug for project EMA_Speed_Test ****
"C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 8 all -O
'Building target: EMA_Speed_Test.out'
'Invoking: C6000 Linker'
"C:/ti/ti-cgt-c6000_8.1.3/bin/cl6x" -mv6740 -g --define=c6748 --diag_wrap=off --diag_warning=225 --display_error_number -z -m"EMA_Speed_Test.map" --stack_size=0x0020000 --heap_size=0x0020000 -i"C:/ti/ti-cgt-c6000_8.1.3/lib" -i"C:/ti" -i"C:/ti/tirex-product-tree" -i"C:/ti/ti-cgt-c6000_8.1.3" -i"C:/ti/xdctools_3_50_02_20_core" -i"C:/ti/xdctools_3_32_02_25_core" -i"C:/ti/C6748_StarterWare_1_20_04_01/grlib" -i"C:/ti/C6748_StarterWare_1_20_04_01/usblib" -i"C:/ti/C6748_StarterWare_1_20_04_01" -i"C:/ti/C6748_StarterWare_1_20_04_01/drivers" -i"C:/ti/ti-cgt-c6000_8.1.3/include" --reread_libs --diag_wrap=off --warn_sections --display_error_number --xml_link_info="EMA_Speed_Test_linkInfo.xml" --rom_model -o "EMA_Speed_Test.out" "./DARIGHTONE.obj" "./gpio.obj" "./psc.obj" "../C6748.cmd" -llibc.a -l"C:/ti/C6748_StarterWare_1_20_04_01/binary/c674x/cgt_ccs/c6748/drivers/Debug/drivers.lib" -l"C:/ti/C6748_StarterWare_1_20_04_01/binary/c674x/cgt_ccs/c6748/lcdkC6748/platform/Debug/platform.lib" -l"C:/ti/C6748_StarterWare_1_20_04_01/binary/c674x/cgt_ccs/c6748/system_config/Debug/system_config.lib" -l"C:/ti/C6748_StarterWare_1_20_04_01/binary/c674x/cgt_ccs/grlib/Debug/grlib.lib"
<Linking>
"../C6748.cmd", line 45: error #10099-D: program will not fit into available memory. run placement with alignment fails for section ".far" size 0x9897c8 . Available memory ranges:
SHRAM size: 0x200000 unused: 0x1b836c max hole: 0x1b8368
error #10010: errors encountered during linking; "EMA_Speed_Test.out" not built
>> Compilation failure
makefile:147: recipe for target 'EMA_Speed_Test.out' failed
gmake[1]: *** [EMA_Speed_Test.out] Error 1
makefile:143: recipe for target 'all' failed
gmake: *** [all] Error 2
My question: right now it seems that the program is trying to use SHRAM (shared memory) which can only hold 128kB of data. I would like to use something like SDRAM or DDR2 (something that can contain more data), but am having trouble configuring the device to use it. I tried changing the used memory through the C6748.cmd file and was unsure if there was anything else I needed to do for configuration. I am fairly new to the board so I'm thinking that I am missing something.
Let me know if anything else is needed.
Thanks in advanced!