下面是编译失败的Console:
**** Build of configuration Debug for project LAB1 ****
D:\TI\ccsv5\utils\bin\gmake -k all
'Building file: ../PWM_test.c'
'Invoking: MSP430 Compiler'
"D:/TI/ccsv5/tools/compiler/msp430/bin/cl430" -vmspx --abi=coffabi -O0 -g --include_path="D:/TI/ccsv5/ccs_base/msp430/include" --include_path="D:/TI/ccsv5/tools/compiler/msp430/include" --include_path="C:/Users/KunGen/Documents/Tencent Files/971487747/FileRecv/LAB1/F5xx_F6xx_Core_Lib" --include_path="C:/Users/KunGen/Documents/Tencent Files/971487747/FileRecv/LAB1/MSP-EXP430F5529_HAL" --include_path="C:/Users/KunGen/Documents/Tencent Files/971487747/FileRecv/LAB1/FatFs" --include_path="C:/Users/KunGen/Documents/Tencent Files/971487747/FileRecv/LAB1/CTS" --include_path="C:/Users/KunGen/Documents/Tencent Files/971487747/FileRecv/LAB1/USB" --include_path="C:/Users/KunGen/Documents/Tencent Files/971487747/FileRecv/LAB1/USB/USB_API/USB_CDC_API" --include_path="C:/Users/KunGen/Documents/Tencent Files/971487747/FileRecv/LAB1/USB/USB_API/USB_Common" --include_path="C:/Users/KunGen/Documents/Tencent Files/971487747/FileRecv/LAB1/USB/USB_API/USB_HID_API" --include_path="C:/Users/KunGen/Documents/Tencent Files/971487747/FileRecv/LAB1/USB/USB_User" --include_path="C:/Users/KunGen/Documents/Tencent Files/971487747/FileRecv/LAB1/USB/USB_API" --include_path="C:/Users/KunGen/Documents/Tencent Files/971487747/FileRecv/LAB1/USB/USB_config" --include_path="C:/Users/KunGen/Documents/Tencent Files/971487747/FileRecv/LAB1/UserExperienceDemo" --include_path="C:/Users/KunGen/Documents/Tencent Files/971487747/FileRecv/LAB1/UserExperienceDemo/Puzzle" --gcc --define=__MSP430F5529__ --diag_warning=225 --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --large_memory_model --printf_support=minimal --preproc_with_compile --preproc_dependency="PWM_test.pp" "../PWM_test.c"
"../PWM_test.c", line 173: warning #169-D: argument of type "char *" is incompatible with parameter of type "uint8_t *"
"../PWM_test.c", line 232: warning #462-D: declaration of "temp" hides function parameter
"../PWM_test.c", line 232: warning #179-D: variable "temp" was declared but never referenced
'Finished building: ../PWM_test.c'
' '
'Building target: LAB1.out'
'Invoking: MSP430 Linker'
"D:/TI/ccsv5/tools/compiler/msp430/bin/cl430" -vmspx --abi=coffabi -O0 -g --gcc --define=__MSP430F5529__ --diag_warning=225 --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --large_memory_model --printf_support=minimal -z -m"LAB1.map" --stack_size=160 --heap_size=160 --use_hw_mpy=F5 -i"D:/TI/ccsv5/ccs_base/msp430/include" -i"D:/TI/ccsv5/tools/compiler/msp430/lib" -i"D:/TI/ccsv5/tools/compiler/msp430/include" --reread_libs --warn_sections --undef_sym=iUsbInterruptHandler --rom_model -o "LAB1.out" "./USB/USB_User/usb_eventHandling.obj" "./USB/USB_User/usbConstructs.obj" "./USB/USB_User/UsbMscUser.obj" "./USB/USB_config/descriptors.obj" "./USB/USB_config/UsbIsr.obj" "./system_pre_init.obj" "./PWM_test.obj" "./MSP430_test.obj" -l"libc.a" "../MSP-EXP430F5529_UE.lib" "../lnk_msp430f5529.cmd" "../lnk_msp430f5529_USB.cmd" "../rts430xl.lib"
<Linking>
"../lnk_msp430f5529.cmd", line 180: error #10099-D: program will not fit into
available memory. placement with alignment fails for section ".int54" size
0x4 . Available memory ranges:
INT54 size: 0x2 unused: 0x2 max hole: 0x2
error #10010: errors encountered during linking; "LAB1.out" not built
>> Compilation failure
gmake: *** [LAB1.out] Error 1
gmake: Target `all' not remade because of errors.
**** Build Finished ****
当我把程序中:
#pragma vector = ADC12_VECTOR
__interrupt void ADC12ISR (void)
{
Voltage_feedback_globle=ADC12MEM0;
}
这个错误指向 “lnk_msp430f5529.cmd” 的180行: .int54 : {} > INT54 (此行代码)
#pragma vector = ADC12_VECTOR
__interrupt void ADC12ISR (void)
{
Voltage_feedback_globle=ADC12MEM0;
}
这几行代码去掉就能编译通过,请帮忙解决一下这个问题!
非常感谢您的帮助!