Hello folks,
Does anyone have a clue as to why I'm able to compile some of the Instaspin labs for F28027F, but not others? I keep getting what look like linker errors (the code looks to be compiling), this is the kind of output I get:
'Building target: proj_lab03a.out'
'Invoking: C2000 Linker'
"C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_6.4.9/bin/cl2000" -v28 -mt -ml -O2 -g --define=FLASH --define=FAST_ROM_V1p7 --define=F2802xF --diag_warning=225 --display_error_number --asm_listing -z -m"proj_lab03a.map" --stack_size=0x200 --warn_sections -i"C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_6.4.9/lib" -i"C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_6.4.9/include" --reread_libs --priority --disable_auto_rts --diag_suppress=16002 --xml_link_info="proj_lab03a_linkInfo.xml" --rom_model -o "proj_lab03a.out" "C:/ti/motorware/motorware_1_01_00_15/sw/modules/fast/lib/32b/f28x/f2802x/2802xRevB_Fast_IQ_ROMSymbols.lib" "C:/ti/motorware/motorware_1_01_00_15/sw/modules/fast/lib/32b/f28x/f2802x/2802xRevB_Fast_ONLY_ROMSymbols.lib" "C:/ti/motorware/motorware_1_01_00_15/sw/modules/fast/lib/32b/f28x/f2802x/2802xRevB_Fast_RTS_ROMSymbols.lib" "C:/ti/motorware/motorware_1_01_00_15/sw/modules/fast/lib/32b/f28x/f2802x/fast_public.lib" "C:/ti/motorware/motorware_1_01_00_15/sw/modules/iqmath/lib/f28x/32b/IQmath.lib" "./CodeStartBranch.obj" "./adc.obj" "./clarke.obj" "./clk.obj" "./cpu.obj" "./ctrl.obj" "./drv8301.obj" "./filter_fo.obj" "./flash.obj" "./gpio.obj" "./hal.obj" "./ipark.obj" "./memCopy.obj" "./offset.obj" "./osc.obj" "./park.obj" "./pid.obj" "./pie.obj" "./pll.obj" "./proj_lab03a.obj" "./pwm.obj" "./pwr.obj" "./spi.obj" "./svgen.obj" "./timer.obj" "./traj.obj" "./usDelay.obj" "./user.obj" "./wdog.obj" "../28027_RAM_lnk.cmd" -l"libc.a"
<Linking>
warning #10247-D: creating output section "rom_accessed_data" without a
SECTIONS specification
"../28027_RAM_lnk.cmd", line 114: error #10099-D: program will not fit into
>> Compilation failure
available memory. placement with alignment/blocking fails for section
".text" size 0x3282 page 0. Available memory ranges:
PRAML0 size: 0x900 unused: 0x900 max hole: 0x900
"../28027_RAM_lnk.cmd", line 113: error #10099-D: program will not fit into
available memory. placement with alignment/blocking fails for section
"ramfuncs" size 0x637 page 0. Available memory ranges:
RAMM0 size: 0x3b0 unused: 0x311 max hole: 0x311
undefined first referenced
symbol in file
--------- ----------------
_RamfuncsLoadEnd ./proj_lab03a.obj
_RamfuncsLoadStart ./proj_lab03a.obj
_RamfuncsRunStart ./proj_lab03a.obj
_econst_end ./proj_lab03a.obj
_econst_ram_load ./proj_lab03a.obj
_econst_start ./proj_lab03a.obj
_switch_end ./proj_lab03a.obj
_switch_ram_load ./proj_lab03a.obj
_switch_start ./proj_lab03a.obj
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "proj_lab03a.out" not built
gmake: *** [proj_lab03a.out] Error 1
gmake: Target `all' not remade because of errors.
**** Build Finished ****
I've tried different .cmd files for the processor and sometimes by process of elimination I'm able to get some labs to compile but not others. Surely by importing the labs from Motorware's directory structure I should be able to compile directly? Apparently not on my machine.
Has anyone come across this kind of thing before?
I've reinstalled Motorware (no change), tried no less than three versions of CCS (no change), tried as many .cmd files as I can find (no change in most cases), tried RAM/FLASH active config setings (generally no change).
Any help is welcome, many thanks,
Rich