Compiler problem Mega88 vs. 88P

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
iphi
Rank 2
Rank 2
Posts: 68
Joined: Mon Jun 25, 2007 11:37 am

Compiler problem Mega88 vs. 88P

Post by iphi » Wed Jul 28, 2010 11:10 am

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

iphi
Rank 2
Rank 2
Posts: 68
Joined: Mon Jun 25, 2007 11:37 am

Re: Compiler problem Mega88 vs. 88P

Post by iphi » Wed Jul 28, 2010 12:48 pm

I just noticed, that with winavr20080610 it compiles allright.

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

iphi
Rank 2
Rank 2
Posts: 68
Joined: Mon Jun 25, 2007 11:37 am

Re: Compiler problem Mega88 vs. 88P

Post by iphi » Wed Jul 28, 2010 3:14 pm

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.

Post Reply