Na poczatku chce powiedziec ze o prockach nie wiem nic i dopiero zaczynam z nimi zabawe. Przejrzalem tutortial z tej strony http://www.patron.net.pl/AVRintropl.htm i kupilem procka atmega8-16pi. Zbudowalem programator, a nastepnie probowalem skompilowac pierwszy program jaki jest w tym tutorialu. Skopiowalem kod tego sterownika diody led, stworzylem makefile i jak dalem "make all" to mi wyrzucil:
> "make.exe" all
avr-gcc -g -Wall -O2 -mmcu=atmega8 -c -o led.o led.c
led.c: In function `main':
led.c:11: warning: implicit declaration of function `sbi'
avr-gcc -g -Wall -O2 -mmcu=atmega8 -Wl,-Map,led.map -o led.elf led.o
led.o(.text+0x10): In function `main':
C:\WinAVR\projekty\led/led.c:11: undefined reference to `sbi'
led.o(.text+0x1a):C:\WinAVR\projekty\led/led.c:11: undefined reference to `sbi'
make.exe: *** [led.elf] Error 1
> Process Exit Code: 2
Pomozcie, nic nie wiem o tych prockach.
> "make.exe" all
avr-gcc -g -Wall -O2 -mmcu=atmega8 -c -o led.o led.c
led.c: In function `main':
led.c:11: warning: implicit declaration of function `sbi'
avr-gcc -g -Wall -O2 -mmcu=atmega8 -Wl,-Map,led.map -o led.elf led.o
led.o(.text+0x10): In function `main':
C:\WinAVR\projekty\led/led.c:11: undefined reference to `sbi'
led.o(.text+0x1a):C:\WinAVR\projekty\led/led.c:11: undefined reference to `sbi'
make.exe: *** [led.elf] Error 1
> Process Exit Code: 2
Pomozcie, nic nie wiem o tych prockach.