Compilation error
Submitted by Mala Gowda on Fri, 01/11/2013 - 15:28
Hi:
Can you please tell me how to solve this compilation error. when i add lookup tables i get to see this error.
C:\VisSim80\cg>lnk2000 -c -x -q -mWheelchairControl.map WheelchairControl.obj -l lib\ii_F280x_fpusr.lib -heap 414 -stack 414 -o WheelchairControl.out lib\F28062''lnk.cmd 'lib\F28062lnk.cmd', line 110: error: placement fails for object '.cinit', size 0x32b (page 0). Available ranges: PL0L1RAM size: 0x4000 unused: 0x186 max hole: 0x18 error: errors encountered during linking; 'WheelchairControl.out' not built
Regards, MALA
Answers
-
Submitted by Anders89 on Sat, 01/12/2013 - 20:17.
This link error says that you don't have enough RAM on the chip to hold your entire program. Your look-up table data becomes a constant initializer for an array, and can take a lot of RAM if you have a big table. You must check the 'Target Flash' option before compiling, then your code and initial data will be allocated to flash. There is a lot more flash than RAM on the chip, and this will free up RAM to only hold your stack, heap and variables.
After you compile for flash, you must burn your program to flash before running VisSim in debug mode. You can burn the .out file to flash using either Code Composer or TI's new Uniflash tool0 -
Submitted by Mala Gowda on Mon, 01/14/2013 - 11:47.
Hi Anders:
I tried Flashing .out file generated. i get this error in CCSV4: C28xx: GEL: Warning loading file 'C:\Program Files (x86)\Texas Instruments1\ccsv4\emulation\gel\F2806.gel', line 102: the function 'GEL_OpenWindow' is not supported. C28xx: GEL: Warning loading file 'C:\Program Files (x86)\Texas Instruments1\ccsv4\emulation\gel\F2806.gel', line 111: the function 'GEL_CloseWindow' is not supported. C28xx: Flash Programmer: Error encountered when writing to flash memory C28xx: Trouble Writing Memory Block at 0x3f7ff6 on Page 0 of Length 0x2 Cannot write to target
Regards, MALA
0