多謝大家,已經(jīng)搞定,在設(shè)置中把選擇Thumb模式的勾去掉就可以了!
謝謝樓主提供!非常感謝!
12
123
21
怎么沒有430的IAR?
IAR的庫(kù)添加和KIEL有點(diǎn)相似,你可以試下
這個(gè)是GCC編譯庫(kù)的鏈接方法
CH375HFx.A與CH375HFx.lib之間的關(guān)系怎樣。 CH375HFB.A相當(dāng)于那個(gè)lib 而CH375HF6.lib又相當(dāng)于那個(gè)*.A庫(kù)呢。 并求CH375HF6.lib對(duì)應(yīng)的*.A文件及其頭文件,謝謝熱心人了。
我的郵箱是:個(gè)人信息保護(hù),已隱藏
直接到網(wǎng)上下載CH375LIB.ZIP,里面的FILELIBB有頭文件和庫(kù)文件
請(qǐng)問(wèn)在WinAVR中怎么添加庫(kù)啊?
好象WinAVR中需要用GCC做出MAKEFILE文件之后在將MAKEFILE文件鏈接到WinAVR中
在Win AVR環(huán)境下如何調(diào)用庫(kù)函數(shù),我將CH375HFD.H和CH375HFT.C放在一個(gè)文件夾下面,為什么我的編譯出那么多錯(cuò)??? -------- begin -------- avr-gcc (GCC) 3.4.3 Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Linking: CH375HFT.elf avr-gcc -mmcu=atmega16 -I. -gdwarf-2 -DF_CPU=1000000UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=CH375HFT.o -std=gnu99 -MD -MP -MF .dep/CH375HFT.elf.d CH375HFT.o --output CH375HFT.elf -Wl,-Map=CH375HFT.map,--cref -lm CH375HFT.o(.text+0xc): In function `CH375FileRead': F:\BIYESHEJI\ch3751/CH375HFD.h:675: undefined reference to `CH375FileReadX' CH375HFT.o(.text+0x20): In function `CH375FileWrite': F:\BIYESHEJI\ch3751/CH375HFD.h:681: undefined reference to `CH375FileWriteX' CH375HFT.o(.text+0x8a): In function `xQueryInterrupt': F:\BIYESHEJI\ch3751/CH375HFD.h:718: undefined reference to `CH375IntStatus' CH375HFT.o(.text+0x8e):F:\BIYESHEJI\ch3751/CH375HFD.h:719: undefined reference to `CH375IntStatus' CH375HFT.o(.text+0x98):F:\BIYESHEJI\ch3751/CH375HFD.h:719: undefined reference to `CH375DiskStatus' CH375HFT.o(.text+0x9e):F:\BIYESHEJI\ch3751/CH375HFD.h:720: undefined reference to `CH375IntStatus' CH375HFT.o(.text+0xa8):F:\BIYESHEJI\ch3751/CH375HFD.h:720: undefined reference to `CH375DiskStatus' CH375HFT.o(.text+0xcc): In function `CH375LibInit': F:\BIYESHEJI\ch3751/CH375HFD.h:855: undefined reference to `CH375LibConfig' CH375HFT.o(.text+0xd2):F:\BIYESHEJI\ch3751/CH375HFD.h:857: undefined reference to `CH375GetVer' CH375HFT.o(.text+0xe0):F:\BIYESHEJI\ch3751/CH375HFD.h:858: undefined reference to `CH375Init' CH375HFT.o(.text+0x19c): In function `main': F:\BIYESHEJI\ch3751/CH375HFT.c:189: undefined reference to `CH375DiskStatus' CH375HFT.o(.text+0x1a2):F:\BIYESHEJI\ch3751/CH375HFT.c:188: undefined reference to `CH375DiskConnect' CH375HFT.o(.text+0x1ca):F:\BIYESHEJI\ch3751/CH375HFT.c:198: undefined reference to `CH375DiskReady' CH375HFT.o(.text+0x1f8):F:\BIYESHEJI\ch3751/CH375HFT.c:210: undefined reference to `CH375FileOpen' CH375HFT.o(.text+0x258):F:\BIYESHEJI\ch3751/CH375HFT.c:220: undefined reference to `CH375FileOpen' CH375HFT.o(.text+0x2e4):F:\BIYESHEJI\ch3751/CH375HFT.c:240: undefined reference to `CH375ByteRead' CH375HFT.o(.text+0x328):F:\BIYESHEJI\ch3751/CH375HFT.c:268: undefined reference to `CH375FileClose' CH375HFT.o(.text+0x34a):F:\BIYESHEJI\ch3751/CH375HFT.c:276: undefined reference to `CH375FileCreate' CH375HFT.o(.text+0x380):F:\BIYESHEJI\ch3751/CH375HFT.c:289: undefined reference to `CH375ByteWrite' CH375HFT.o(.text+0x398):F:\BIYESHEJI\ch3751/CH375HFT.c:302: undefined reference to `CH375FileClose' CH375HFT.o(.text+0x3aa):F:\BIYESHEJI\ch3751/CH375HFT.c:323: undefined reference to `CH375DiskStatus' CH375HFT.o(.text+0x3b0):F:\BIYESHEJI\ch3751/CH375HFT.c:322: undefined reference to `CH375DiskConnect' make.exe: *** [CH375HFT.elf] Error 1
> Process Exit Code: 2
那請(qǐng)教在 IAR 中怎么鏈接呢?
IAR庫(kù)的添加方法和添加。C文件的方法是一樣的,直接將。R43的文件添加進(jìn)去就可以了。