Page 1 of 1

Compiler problem Mega88 vs. 88P

Posted: Wed Jul 28, 2010 11:10 am
by iphi
Hi,

I have just downloaded the latest V-USB drivers and built a little example for a Mega88.
I compile the example using gcc in AVRStudio4.

Everything works fine if I compile for the Atmega88.

BUT: If I try to compile the same code for the Atmega88P (Pee!!!) I get a whole bunch of error messages:
../usbdrv/usbdrv.c: In function 'usbInit':
../usbdrv/usbdrv.c:615: error: 'EIMSK' undeclared (first use in this function)
../usbdrv/usbdrv.c:615: error: (Each undeclared identifier is reported only once
../usbdrv/usbdrv.c:615: error: for each function it appears in.)
../usbdrv/usbdrv.c:615: error: 'INT1' undeclared (first use in this function)
...


What am I doing wrong?


Thanks, Tom

Re: Compiler problem Mega88 vs. 88P

Posted: Wed Jul 28, 2010 12:48 pm
by iphi
I just noticed, that with winavr20080610 it compiles allright.

The problem occurs with the latest winavr release.
???

Re: Compiler problem Mega88 vs. 88P

Posted: Wed Jul 28, 2010 3:14 pm
by iphi
Problem solved.
It was an AVRStudio problem which displayed usage of a newer avrgcc version than it used. Uninstalling and reinstalling the toolchain solved the problem.