刚开始接触单片机,昨天移植了一个程序,电脑端通过串口调试助手发送命令给430,然后430根据相应的命令控制LED的亮灭,但是到最后初始化程序通过不了,编译时也没出现错误提示,实在找不到问题所在原因,网上查资料说是缺少文件,但是编译其他程序是没问题的,所以来求教各位,希望能得到解决。以下是build时的提示
**** Build of configuration Debug for project UART_02 ****
"D:\\software_instill\\qian_ru_shi\\CCS\\ccsv6\\utils\\bin\\gmake" -k all
'Building file: ../src/UART_init.c'
'Invoking: MSP430 Compiler'
"D:/software_instill/qian_ru_shi/CCS/ccsv6/tools/compiler/ti-cgt-msp430_4.4.5/bin/cl430" -vmspx --abi=eabi --data_model=restricted --use_hw_mpy=F5 --include_path="D:/software_instill/qian_ru_shi/CCS/ccsv6/ccs_base/msp430/include"
--include_path="D:/Qian_ru_shi/workspace_v5_1/UART_02/src" --include_path="D:/software_instill/qian_ru_shi/CCS/ccsv6/tools/compiler/ti-cgt-msp430_4.4.5/include" --advice:power="all" -g --define=__MSP430F5529__ --diag_warning=225
--diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --printf_support=minimal --preproc_with_compile --preproc_dependency="src/UART_init.pp" --obj_directory="src" "../src/UART_init.c"
At end of source: error #68: expected a "}"
"../src/UART_init.c", line 77: remark #1538-D: (ULP 10.1) ISR USCI_A0_ISR calls function UART_OnRx. Recommend moving function call away from ISR, or inlining the function, or using pragmas
"../src/UART_init.c", line 81: remark #1538-D: (ULP 10.1) ISR USCI_A0_ISR calls function UART_OnTx. Recommend moving function call away from ISR, or inlining the function, or using pragmas
1 error detected in the compilation of "../src/UART_init.c".
>> Compilation failure
gmake: *** [src/UART_init.obj] Error 1
gmake: Target `all' not remade because of errors.
**** Build Finished ****
先在这里谢谢各位了。