
1.Если я использую программаторAVR910USB то в makefile прописывать в avrdude usb?
То есть AVRDUDE_PORT = usb? Если нет, то как мне программировать с помощью этого программатора?(хотелось бы инструкцию)
2. При компиляции компилятор ругается на PORTD и DDRD, будь-то не знает их. Я так понял, что дело в подключаемых библиотеках
#include <avr/io.h>
#include <avr/delay.h>
их просто нет. Как быть? Качать в инете? Допустим качаю, а куда кидать?
На всякий случай реакцию компилятора, на попытку компилить прогу из примера:
> "make.exe" all
-------- begin --------
avr-gcc (WinAVR 20100110) 4.3.3
Copyright (C) 2008 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.
/usr/bin/sh: test: my_test: binary operator expected
avr-gcc -gdwarf-2 -DF_CPU=1000000UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=./my_test.lst -std=gnu99 -gdwarf-2 -DF_CPU=1000000UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -fno-exceptions -Wall -Wundef -Wa,-adhlns=my_test.c -Wl,-Map=my_test .map,--cref -lm my_test.c -o my_test
In file included from my_test.c:2:
c:/winavr/lib/gcc/../../avr/include/avr/io.h:404:6: warning: #warning "device type not defined"
In file included from my_test.c:3:
c:/winavr/lib/gcc/../../avr/include/avr/delay.h:36:2: warning: #warning "This file has been moved to <util/delay.h>."
my_test.c: In function 'main':
my_test.c:8: error: 'DDRD' undeclared (first use in this function)
my_test.c:8: error: (Each undeclared identifier is reported only once
my_test.c:8: error: for each function it appears in.)
my_test.c:12: error: 'PORTD' undeclared (first use in this function)
avr-gcc: .map,--cref: No such file or directory
make.exe: *** [my_test] Error 1
> Process Exit Code: 2
> Time Taken: 00:01
З.Ы: Использую WINAVR