關(guān)于用msp430的編程問題(CH375)!

#ifdef DISK_BASE_BUF_ADDR no_init UINT8 DISK_BASE_BUF[512] & DISK_BASE_BUF_ADDR; /* 外部RAM的磁盤數(shù)據(jù)緩沖區(qū),緩沖區(qū)長度為一個扇區(qū)的長度 */ #else UINT8 DISK_BASE_BUF[512]; /* 外部RAM的磁盤數(shù)據(jù)緩沖區(qū),緩沖區(qū)長度為一個扇區(qū)的長度,起始地址必須為偶地址 */ #endif #ifdef FILE_DATA_BUF_LEN #ifdef FILE_DATA_BUF_ADDR no_init UINT8 FILE_DATA_BUF[ FILE_DATA_BUF_LEN ] & FILE_DATA_BUF_ADDR; /* 外部RAM的文件數(shù)據(jù)緩沖區(qū),緩沖區(qū)長度不小于一次讀寫的數(shù)據(jù)長度 */ #else UINT8 FILE_DATA_BUF[ FILE_DATA_BUF_LEN ]; /* 外部RAM的文件數(shù)據(jù)緩沖區(qū),緩沖區(qū)長度不小于一次讀寫的數(shù)據(jù)長度,起始地址建議為偶地址 */ #endif ////////////////////////////////////////////////////////

????這段怎么編譯都通不過,哪個at需要改成什么?

no_init UINT8 DISK_BASE_BUF[512] & DISK_BASE_BUF_ADDR; 就是這句編譯不通過,應(yīng)該是開個緩沖區(qū),no_init應(yīng)該沒錯吧!還有那個@,原來是這個,C51用的是_at_,430不知道該用什么??


網(wǎng)上的430的例子,在IAR下編譯是 通過的


這位老兄用的是V2.10A吧!我用出問題了!

Error[e46]: Undefined external "CH375FileReadX" referred in CH375HFT ( D:\EXAM1\ Debug\Obj\CH375HFT.r43 ) Error[e46]: Undefined external "CH375FileWriteX" referred in CH375HFT ( D:\EXAM1\ Debug\Obj\CH375HFT.r43 ) Error[e46]: Undefined external "CH375IntStatus" referred in CH375HFT ( D:\EXAM1\Debug\ Obj\CH375HFT.r43 ) Error[e46]: Undefined external "CH375DiskStatus" referred in CH375HFT ( D:\EXAM1\ Debug\Obj\CH375HFT.r43 ) Error[e46]: Undefined external "CH375LibConfig" referred in CH375HFT ( D:\EXAM1\Debug\ Obj\CH375HFT.r43 ) Error[e46]: Undefined external "CH375GetVer" referred in CH375HFT ( D:\EXAM1\Debug\ Obj\CH375HFT.r43 ) Error[e46]: Undefined external "CH375Init" referred in CH375HFT ( D:\EXAM1\Debug\Obj\ CH375HFT.r43 ) Error[e46]: Undefined external "CH375DiskReady" referred in CH375HFT ( D:\EXAM1\ Debug\Obj\CH375HFT.r43 ) Error[e46]: Undefined external "CH375FileOpen" referred in CH375HFT ( D:\EXAM1\Debug\ Obj\CH375HFT.r43 ) Error[e46]: Undefined external "CH375vFileSize" referred in CH375HFT ( D:\EXAM1\Debug\ Obj\CH375HFT.r43 ) Error[e46]: Undefined external "CH375FileClose" referred in CH375HFT ( D:\EXAM1\Debug\ Obj\CH375HFT.r43 ) Error[e46]: Undefined external "CH375FileCreate" referred in CH375HFT ( D:\EXAM1\ Debug\Obj\CH375HFT.r43 ) Error[e46]: Undefined external "CH375FileModify" referred in CH375HFT ( D:\EXAM1\ Debug\Obj\CH375HFT.r43 )


關(guān)于編譯器的問題???

--------------------------------------------------------------------------------

Making target Debug... Linking... Error[e46]: Undefined external "CH375DiskReady" referred in ch375hft ( D:\EXAM1\Debug\Obj\CH375HFT.r43 ) Error[e46]: Undefined external "CH375DiskStatus" referred in ch375hft ( D:\EXAM1\Debug\Obj\CH375HFT.r43 ) Error[e46]: Undefined external "CH375FileClose" referred in ch375hft ( D:\EXAM1\Debug\Obj\CH375HFT.r43 ) Error[e46]: Undefined external "CH375FileCreate" referred in ch375hft ( D:\EXAM1\Debug\Obj\CH375HFT.r43 ) Error[e46]: Undefined external "CH375FileModify" referred in ch375hft ( D:\EXAM1\Debug\Obj\CH375HFT.r43 ) Error[e46]: Undefined external "CH375FileOpen" referred in ch375hft ( D:\EXAM1\Debug\Obj\CH375HFT.r43 ) Error[e46]: Undefined external "CH375FileReadX" referred in ch375hft ( D:\EXAM1\Debug\Obj\CH375HFT.r43 ) Error[e46]: Undefined external "CH375FileWriteX" referred in ch375hft ( D:\EXAM1\Debug\Obj\CH375HFT.r43 ) Error[e46]: Undefined external "CH375GetVer" referred in ch375hft ( D:\EXAM1\Debug\Obj\CH375HFT.r43 ) Error[e46]: Undefined external "CH375Init" referred in ch375hft ( D:\EXAM1\Debug\Obj\CH375HFT.r43 ) Error[e46]: Undefined external "CH375IntStatus" referred in ch375hft ( D:\EXAM1\Debug\Obj\CH375HFT.r43 ) Error[e46]: Undefined external "CH375LibConfig" referred in ch375hft ( D:\EXAM1\Debug\Obj\CH375HFT.r43 ) Error[e46]: Undefined external "CH375vFileSize" referred in ch375hft ( D:\EXAM1\Debug\Obj\CH375HFT.r43 )

Total number of errors: 13 Total number of warnings: 0

兩個版本都這樣,2.10A和1.26A都是這個問題,我的msp430f149C.xcl和msp430f149.ddf都設(shè)置了!找不到原因!


可能是CH375HF?.H文件和庫文件CH375HF?.R43沒加進(jìn)去,另外編譯器版本要差不多


恩,應(yīng)該是CH375HF8.R43沒添加進(jìn)去!要怎么添加? /* ICC430 CH375HFT.C -l CH375HFT.LST -o CH375HFT.R43 */ /* XLINK CH375HFT.R43 -o CH375HFT.TXT -Fmsp430_txt ..\430\lib\cl430f.r43 CH375HF8.R43 -f ..\430\config\lnk430F449.xcl */ 這句話沒看懂?。∥乙郧坝玫氖?.26A版本,對這個版本不熟悉!試了很多方法不好用! 請指點(diǎn),謝謝!


跟源程序一樣往里添加就是了.


搜索到這個帖子一下明白了呀。謝謝


只有登錄才能回復(fù),可以選擇微信賬號登錄

国产91精品新入口,国产成人综合网在线播放,九热这里只有精品,本道在线观看,美女视频a美女视频,韩国美女激情视频,日本美女pvp视频