|
技術(shù)交流 | 電路欣賞 | 工控天地 | 數(shù)字廣電 | 通信技術(shù) | 電源技術(shù) | 測(cè)控之家 | EMC技術(shù) | ARM技術(shù) | EDA技術(shù) | PCB技術(shù) | 嵌入式系統(tǒng) 驅(qū)動(dòng)編程 | 集成電路 | 器件替換 | 模擬技術(shù) | 新手園地 | 單 片 機(jī) | DSP技術(shù) | MCU技術(shù) | IC 設(shè)計(jì) | IC 產(chǎn)業(yè) | CAN-bus/DeviceNe |
編譯出錯(cuò)了 請(qǐng)高手駐足! |
作者:chizifeng 欄目:DSP技術(shù) |
主程序中有void initial() { asm(" setc SXM"); asm(" sect OVM"); asm(" clrc CNF"); asm(" setc INTM"); *SCSR1=0x81FE; *IMR=0x0000; *IFR=0x0FFFF; *MCRC=*MCRC&0x0FF; *PEDATDIR=*PEDATDIR|0x0FF00; *PEDATDIR=*PEDATDIR&0x00FF; 在BUILD時(shí)出現(xiàn)以下錯(cuò)誤 "KEY+LED.c" ==> initial "KEY+LED.c", LINE 6: [W016] illegal source character: 0xa3 "KEY+LED.c", LINE 6: [W016] illegal source character: 0xbb "KEY+LED.c", LINE 7: [F001] syntax error at or near symbol 'asm' "KEY+LED.c", LINE 7: [W016] illegal source character: 0xa3 "KEY+LED.c", LINE 7: [W016] illegal source character: 0xbb "KEY+LED.c", LINE 8: [W016] illegal source character: 0xa3 "KEY+LED.c", LINE 8: [W016] illegal source character: 0xbb "KEY+LED.c", LINE 9: [W016] illegal source character: 0xa3 "KEY+LED.c", LINE 9: [W016] illegal source character: 0xbb "KEY+LED.c", LINE 10: [W016] illegal source character: 0xa3 "KEY+LED.c", LINE 10: [W016] illegal source character: 0xbb "KEY+LED.c" ==> nothing "KEY+LED.c", LINE 39: [W016] illegal source character: 0xa3 "KEY+LED.c", LINE 39: [W016] illegal source character: 0xbb "KEY+LED.c", LINE 40: [F001] syntax error at or near symbol '}' dspa tiaoshi.asm tiaoshi.obj -s -v2xx TMS320C1x/C2x/C2xx/C5x COFF Assembler Version 7.00 COPYRIGHT (c) 1987-1999 Texas Instruments Incorporated PASS 1 PASS 2 No Errors, No Warnings dsplnk led+KEY.mak TMS320C1x/C2x/C2xx/C5x COFF Linker Version 7.00 COPYRIGHT (c) 1987-1999 Texas Instruments Incorporated -c -o led+ >> led+KEY.mak, LINE 34: syntax error Build Complete, 3 Errors, 43 Warnings. |
2樓: | >>參與討論 |
作者: liang0516 于 2005/11/17 22:14:00 發(fā)布:
程序的名稱太長(zhǎng)!KEY+LED變?yōu)镵YLED試試!!! |
|
|
免費(fèi)注冊(cè)為維庫(kù)電子開發(fā)網(wǎng)會(huì)員,參與電子工程師社區(qū)討論,點(diǎn)此進(jìn)入 |
Copyright © 1998-2006 www.udpf.com.cn 浙ICP證030469號(hào) |