CH375B無法初始化CH375程序庫

你好!我自己做了塊51單片機(jī)+CH375B的板,基本上按照CH375DS1.PDF上并口方式畫的一樣,就A0腳改為接在P2.0,我程序是用的CH375.EVT里的EXAM1,把CH375_DAT_PORT_ADDR改為0xB0CF,CH375_CMD_PORT_ADDR改為0xB1DF。程序無法初始化CH375程序庫,就在判斷CH375GetVer( ) < CH375_LIB_VER 后單片機(jī)就自動(dòng)重啟了。我加了led指示了,在之前亮,但之后就不亮了,用串口調(diào)試助手只能看到一連串的start。我把 if ( CH375GetVer( ) < CH375_LIB_VER ) { return( 0xFF ); /* 獲取當(dāng)前子程序庫的版本號(hào),版本太低則返回錯(cuò)誤 */ } 去掉后,也會(huì)在進(jìn)入CH375Init( )函數(shù)后重啟。 我已經(jīng)使用測試命令,寫入測試數(shù)據(jù)與返回?cái)?shù)據(jù)是取反的. 程序如下: CH375_WR_CMD_PORT( CMD_CHECK_EXIST ); CH375_WR_DAT_PORT( 0x55 ); i = ~ 0x55; if ( CH375_RD_DAT_PORT( ) != i ) { for ( i=80; i!=0; i-- ) { CH375_WR_CMD_PORT( CMD_RESET_ALL ); CH375_RD_DAT_PORT( ); } } 我使用CMD_GET_IC_VER命令得到的是0xB7,即版本是0x37,程序如上; 請問這個(gè)是什么原因啊,我仔細(xì)檢查了我的電路,應(yīng)該沒有問題的.求+助各位了

參考我們的例子程序,頭文件的(ch375hf?.h)文件的位置不可隨便的改動(dòng)


好像是調(diào)用庫函數(shù)時(shí),沒有找到庫函數(shù)的地址,所以程序就復(fù)位了 編譯、鏈接時(shí)是否有異常警告


庫的路徑我已經(jīng)改對了,如果不對的話是編譯不通過的。 例子用keil c 編譯有87個(gè)警告,都是L16、L1、L2,不知道有沒有影響 *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS 我理解是程序中有些函數(shù)從未被調(diào)用過,或者根本沒有調(diào)用它的語句。 *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL 我理解是函數(shù)有聲明,但是沒有定義。應(yīng)該是庫文件里的函數(shù)在CH375定義,在整個(gè)系統(tǒng)的連接的時(shí)候,軟件無法找到這個(gè)變量的空間地址。但我不知道怎么解決。 不知道這個(gè)有沒有問題


*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL 這類警告對于函數(shù)而言,是指該函數(shù)僅有聲明,但沒有定義函數(shù)體,若被調(diào)用,那么會(huì)引起程序復(fù)位 把警告函數(shù)的名稱貼出來,若該函數(shù)在庫中定義了,那么也不會(huì)有警告


是啊,我知道啊。但是在庫文件里定義的函數(shù)不是集成在CH375B里面嗎??應(yīng)該怎樣設(shè)置的??我用的是keil C


我們庫函數(shù)一般是聲明在與程序相匹配的頭文件中的.至于庫的配置,在CH375hf?.H頭文件中可以查看CH375LibConfig這個(gè)變量.


這個(gè)我明白。但是我問題是我編譯后下載到SC89C52單片機(jī)后執(zhí)行到調(diào)用庫子程序后,單片機(jī)自動(dòng)重啟。編譯時(shí)候出現(xiàn)87個(gè)警告,都是L16、L1、L2 *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS 我理解是程序中有些函數(shù)從未被調(diào)用過,或者根本沒有調(diào)用它的語句。 *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL 我理解是函數(shù)有聲明,但是沒有定義。應(yīng)該是庫文件里的函數(shù)在CH375定義,在整個(gè)系統(tǒng)的連接的時(shí)候,軟件無法找到這個(gè)變量的空間地址。 我想問下CH375文件級子程序庫是不是內(nèi)置在了CH375里面??使用keil c怎么調(diào)用這些子程序?我直接調(diào)用的話會(huì)導(dǎo)致單片機(jī)重啟。


ok了,是我忘記鏈接lib了


借問一下1278910.你到底是怎樣把他弄好的?我的程序編譯出來也是很多那樣的警告。你到底是怎么樣連接lib的。我剛接觸單片機(jī)。還很多不大懂。麻煩,謝謝!


庫沒加正確,請查看帖子: http://m.findthetime.net/bbs/View.asp?S=101&I=1511


有誰用過Silion Laboratories IDE的嗎?我把LIB文件加到Project中,然后打開它里面什么也沒有。編譯還是錯(cuò)的。


Silion Laboratories 的用法還是一樣的,庫是開不開的,編譯錯(cuò)誤的信息是什么? 參考: UploadImages/2008123111512549.rar


錯(cuò)誤信息跟1278910發(fā)的錯(cuò)誤情況一樣。加進(jìn)去錯(cuò)誤還那樣。我再看一下你給我發(fā)的參考,謝謝了!


紅桃六:你好! 我剛剛用你發(fā)給我的程序試了一下!錯(cuò)誤信息如下! Link in progress... D:\軟件源程序\SiLabs\MCU\IDEfiles\C51\BIN\bl51.exe @E:\8051單片機(jī)\單片機(jī)開發(fā)板\usb\ch375專題\SL\cyglink.txt

BL51 BANKED LINKER/LOCATER V5.03 - SN: Cygnal_8051Fxxx COPYRIGHT KEIL ELEKTRONIK GmbH 1987 - 2002 E:\8051單片機(jī)\單片機(jī)開發(fā)板\usb\ch375專題\SL\CH375HFT.obj TO E:\8051單片機(jī)\單片機(jī)開發(fā)板\usb\ch375專題\SL\USBDISK RS(256) PL(68) PW(78)

*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?XQUERYINTERRUPT?CH375HFT

*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?XDELAY100US?CH375HFT

*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?XDELAYAFTERWRITE?CH375HFT

*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?XFILENAMEENUMER?CH375HFT

*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375FILEREADX MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375FILECREATE MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375DISKCONNECT MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375FILEWRITEX MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375FILEMODIFY MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375LIBCONFIG MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375FILECLOSE MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375DISKREADY MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375VSECTORSIZE MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375INIT MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375DISKSTATUS MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375FILEOPEN MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375VFILESIZE MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: PDISK_BASE_BUF MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375INTSTATUS MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375GETVER MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375FILEREADX MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> ADDRESS: 0A6DH

*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375FILEWRITEX MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> ADDRESS: 0A78H

*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375INTSTATUS MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> ADDRESS: 099DH

*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375INTSTATUS MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> ADDRESS: 09A0H

*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375INTSTATUS MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> ADDRESS: 09A5H

*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375INTSTATUS MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> ADDRESS: 09ABH

*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375INTSTATUS MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> ADDRESS: 09ADH

*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375DISKSTATUS MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> ADDRESS: 09B2H

*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375INTSTATUS MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> ADDRESS: 09B6H

*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375DISKSTATUS MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> ADDRESS: 09BBH

*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375LIBCONFIG MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> ADDRESS: 09F0H

*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375GETVER MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> ADDRESS: 09F3H

*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: PDISK_BASE_BUF MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> ADDRESS: 09FFH

*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: PDISK_BASE_BUF MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> ADDRESS: 0A02H

*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375INIT MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> ADDRESS: 0A05H

*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375DISKSTATUS MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> ADDRESS: 002AH

*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375DISKCONNECT MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> ADDRESS: 0031H

*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375DISKREADY MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> ADDRESS: 0053H

*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375VSECTORSIZE MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> ADDRESS: 0063H

*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375VSECTORSIZE MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> ADDRESS: 0069H

*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375DISKCONNECT MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> ADDRESS: 007AH

*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375FILEOPEN MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> ADDRESS: 0099H

*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375FILEOPEN MODULE: E:\8051單片機(jī)\單片機(jī)開發(fā)板\USB\CH375專題\SL\CH375HFT.OBJ (CH375HFT)

>> ADDRESS: 00E6H

*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375VFILESIZE MODULE:


這樣吧,我們這邊已經(jīng)做了個(gè)程序,需要設(shè)置一下,你打電話過來我們指導(dǎo)一下,02552638370或者QQ357684981


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

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