关于用msp430的编程问题(CH375)!

#ifdef DISK_BASE_BUF_ADDR no_init UINT8 DISK_BASE_BUF[512] & DISK_BASE_BUF_ADDR; /* 外部RAM的磁盘数据缓冲区,缓冲区长度为一个扇区的长度 */ #else UINT8 DISK_BASE_BUF[512]; /* 外部RAM的磁盘数据缓冲区,缓冲区长度为一个扇区的长度,起始地址必须为偶地址 */ #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的文件数据缓冲区,缓冲区长度不小于一次读写的数据长度 */ #else UINT8 FILE_DATA_BUF[ FILE_DATA_BUF_LEN ]; /* 外部RAM的文件数据缓冲区,缓冲区长度不小于一次读写的数据长度,起始地址建议为偶地址 */ #endif ////////////////////////////////////////////////////////

????这段怎么编译都通不过,哪个at需要改成什么?

no_init UINT8 DISK_BASE_BUF[512] & DISK_BASE_BUF_ADDR; 就是这句编译不通过,应该是开个缓冲区,no_init应该没错吧!还有那个@,原来是这个,C51用的是_at_,430不知道该用什么??


网上的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 )


关于编译器的问题???

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

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都设置了!找不到原因!


可能是CH375HF?.H文件和库文件CH375HF?.R43没加进去,另外编译器版本要差不多


恩,应该是CH375HF8.R43没添加进去!要怎么添加? /* 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 */ 这句话没看懂啊!我以前用的是1.26A版本,对这个版本不熟悉!试了很多方法不好用! 请指点,谢谢!


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


搜索到这个帖子一下明白了呀。谢谢


只有登录才能回复,可以选择微信账号登录