Author Topic: building AVR projects  (Read 3793 times)

sputnik01

  • Guest
building AVR projects
« on: June 01, 2008, 11:55:56 am »

I'm trying to create a AVR -> HEX file for the at90usb162 chip,
this is what i get when i build the project:

Code
-------------- Build: Debug in night ---------------

Compiling: main.c
In file included from main.c:4:
/usr/lib/gcc/avr/4.2.1/../../../../avr/include/avr/io.h:332:6: warning: #warning "device type not defined"
main.c: In function ‘main’:
main.c:15: error: ‘DDRB’ undeclared (first use in this function)
main.c:15: error: (Each undeclared identifier is reported only once
main.c:15: error: for each function it appears in.)
main.c:16: error: ‘DDRC’ undeclared (first use in this function)
main.c:17: error: ‘PORTC’ undeclared (first use in this function)
main.c:22: error: ‘PORTB’ undeclared (first use in this function)
Process terminated with status 1 (0 minutes, 0 seconds)
6 errors, 1 warnings

i get this although I was able to set the chip in the project wizard
anyone idea whats wrong?