Compiling AVR-USB examples with AVR studio

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
mendiola_loyola
Posts: 3
Joined: Fri May 02, 2008 1:22 am

Compiling AVR-USB examples with AVR studio

Post by mendiola_loyola » Fri May 02, 2008 1:25 am

Dear All:

When i try to compile the examples with Avr studio 4.13 when AVR studio statrs to compile the sources the gcc crashes.

Is there an example projecto using Avr Studio?

Thanks.
Alfredo Mendiola Loyola
Lima, Perú

mendiola_loyola
Posts: 3
Joined: Fri May 02, 2008 1:22 am

The problem also happens with Programmer notepad

Post by mendiola_loyola » Fri May 02, 2008 2:28 am

P.D: I'm using windows XP


-------- begin --------
avr-gcc (GCC) 4.2.2 (WinAVR 20071221)
Copyright (C) 2007 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.


Compiling C: usbdrv.c
avr-gcc -c -mmcu=atmega8 -I. -gdwarf-2 -DF_CPU=12000000UL -O2 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wundef -Wa,-adhlns=obj/usbdrv.lst -std=gnu99 -Wundef -MD -MP -MF .dep/usbdrv.o.d usbdrv.c -o obj/usbdrv.o
In file included from usbdrv.c:17:
oddebug.h:35:5: warning: "DEBUG_LEVEL" is not defined
usbdrv.c: In function 'usbInit':
usbdrv.c:503: warning: cast from pointer to integer of different size
usbdrv.c:504: warning: cast from pointer to integer of different size

Compiling C: in_dendy.c
avr-gcc -c -mmcu=atmega8 -I. -gdwarf-2 -DF_CPU=12000000UL -O2 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wundef -Wa,-adhlns=obj/in_dendy.lst -std=gnu99 -Wundef -MD -MP -MF .dep/in_dendy.o.d in_dendy.c -o obj/in_dendy.o

Compiling C: out_dendy.c
avr-gcc -c -mmcu=atmega8 -I. -gdwarf-2 -DF_CPU=12000000UL -O2 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wundef -Wa,-adhlns=obj/out_dendy.lst -std=gnu99 -Wundef -MD -MP -MF .dep/out_dendy.o.d out_dendy.c -o obj/out_dendy.o

Compiling C: oddebug.c
avr-gcc -c -mmcu=atmega8 -I. -gdwarf-2 -DF_CPU=12000000UL -O2 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wundef -Wa,-adhlns=obj/oddebug.lst -std=gnu99 -Wundef -MD -MP -MF .dep/oddebug.o.d oddebug.c -o obj/oddebug.o
In file included from oddebug.c:15:
oddebug.h:35:5: warning: "DEBUG_LEVEL" is not defined

Compiling C: main_dendy.c
avr-gcc -c -mmcu=atmega8 -I. -gdwarf-2 -DF_CPU=12000000UL -O2 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wundef -Wa,-adhlns=obj/main_dendy.lst -std=gnu99 -Wundef -MD -MP -MF .dep/main_dendy.o.d main_dendy.c -o obj/main_dendy.o

Assembling: usbdrvasm.S
avr-gcc -c -mmcu=atmega8 -I. -x assembler-with-cpp -Wa,-adhlns=obj/usbdrvasm.lst,-gstabs usbdrvasm.S -o obj/usbdrvasm.o

Linking: main_dendy.elf
avr-gcc -mmcu=atmega8 -I. -gdwarf-2 -DF_CPU=12000000UL -O2 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wundef -Wa,-adhlns=obj/usbdrv.o -std=gnu99 -Wundef -MD -MP -MF .dep/main_dendy.elf.d obj/usbdrv.o obj/in_dendy.o obj/out_dendy.o obj/oddebug.o obj/main_dendy.o obj/usbdrvasm.o --output main_dendy.elf -Wl,-Map=main_dendy.map,--cref -lm
make.exe: *** [main_dendy.elf] Error -1073741819

> Process Exit Code: 2
> Time Taken: 00:28

mendiola_loyola
Posts: 3
Joined: Fri May 02, 2008 1:22 am

Probles solved

Post by mendiola_loyola » Fri May 02, 2008 2:35 am

The problem was caused by my antyspyware NoAdaware.

Post Reply