Witam
Uzywam WinAVR -> Programmers Notepad
Pierwszy prosty programik wg tutoriala majacy poprostu zaswiecic diode ;]
Wyskakuje mi takie cos:
> "make.exe" all
avr-gcc -g -Wall -O2 -mmcu=atmega8 -c -o led.o led.c
led.c: In function `main':
led.c:5: 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:\AVR_projekt\LED/led.c:5: undefined reference to `sbi'
led.o(.text+0x1a):C:\AVR_projekt\LED/led.c:5: undefined reference to `sbi'
make.exe: *** [led.elf] Error 1
> Process Exit Code: 2
Ma ktos jakis pomysl czym to moze byc spowdowane ???
Pozdrawiam
Niedved
Uzywam WinAVR -> Programmers Notepad
Pierwszy prosty programik wg tutoriala majacy poprostu zaswiecic diode ;]
#include <avr/io.h>
#define LED_ON sbi(DDRB,PB1);sbi(PORTB,PB1)
int main(void)
{
LED_ON;
for(;;)
{
}
return (0);
}
Wyskakuje mi takie cos:
> "make.exe" all
avr-gcc -g -Wall -O2 -mmcu=atmega8 -c -o led.o led.c
led.c: In function `main':
led.c:5: 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:\AVR_projekt\LED/led.c:5: undefined reference to `sbi'
led.o(.text+0x1a):C:\AVR_projekt\LED/led.c:5: undefined reference to `sbi'
make.exe: *** [led.elf] Error 1
> Process Exit Code: 2
Ma ktos jakis pomysl czym to moze byc spowdowane ???
Pozdrawiam
Niedved