Compiler AVR Studio 4

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
Paulo RB

Compiler AVR Studio 4

Post by Paulo RB » Fri Dec 14, 2007 8:03 pm

I am trying to compile power switch using the AVR Studio.....but i am receaving some errors...


rm -rf usbteste.o usbteste.elf dep/* usbteste.hex usbteste.eep
Build succeeded with 0 Warnings...
avr-gcc.exe -mmcu=at86rf401 -Wall -gdwarf-2 -O0 -MD -MP -MT usbteste.o -MF dep/usbteste.o.d -c ../usbteste.c
In file included from ../usbteste.c:18:
c:/winavr-20070525/bin/../avr/include/util/delay.h:89:3: warning: #warning "Compiler optimizations disabled; functions from <util/delay.h> won't work as designed"
../usbteste.c: In function 'outputByte':
../usbteste.c:41: error: 'PORTB' undeclared (first use in this function)
../usbteste.c:41: error: (Each undeclared identifier is reported only once
../usbteste.c:41: error: for each function it appears in.)
../usbteste.c:42: error: 'PORTD' undeclared (first use in this function)
../usbteste.c: In function 'eepromWrite':
../usbteste.c:47: error: 'EECR' undeclared (first use in this function)
../usbteste.c:47: error: 'EEWE' undeclared (first use in this function)
../usbteste.c:48: error: 'EEARL' undeclared (first use in this function)
../usbteste.c:49: error: 'EEDR' undeclared (first use in this function)
../usbteste.c:51: error: 'EEMWE' undeclared (first use in this function)
../usbteste.c: In function 'eepromRead':
../usbteste.c:58: error: 'EECR' undeclared (first use in this function)
../usbteste.c:58: error: 'EEWE' undeclared (first use in this function)
../usbteste.c:59: error: 'EEARL' undeclared (first use in this function)
../usbteste.c:60: error: 'EERE' undeclared (first use in this function)
../usbteste.c:61: error: 'EEDR' undeclared (first use in this function)
../usbteste.c:62: warning: control reaches end of non-void function
../usbteste.c: In function 'main':
../usbteste.c:155: error: 'DDRD' undeclared (first use in this function)
../usbteste.c:156: error: 'PORTD' undeclared (first use in this function)
../usbteste.c:157: error: 'PORTB' undeclared (first use in this function)
../usbteste.c:163: error: 'DDRB' undeclared (first use in this function)
../usbteste.c:171: error: 'TCCR0' undeclared (first use in this function)
../usbteste.c:177: error: 'TIFR' undeclared (first use in this function)
../usbteste.c:177: error: 'TOV0' undeclared (first use in this function)
make: *** [usbteste.o] Error 1
Build failed with 21 errors and 2 warnings...

Post Reply