AVR Studio Build error

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
honda4life
Posts: 4
Joined: Sat Jun 20, 2009 11:05 am

AVR Studio Build error

Post by honda4life » Sat Jun 20, 2009 11:14 am

Hello everyone

I've got following build errors:

Code: Select all

c:/program files/winavr-20090313/bin/../lib/gcc/avr/4.3.2/../../../../avr/lib/avr5/crtm16.o:(.init9+0x0): undefined reference to `main'
usbdrv.o: In function `usbProcessRx':
C:\Documents and Settings\Bart\Mijn documenten\AVR\BootUSB\default/../usbdrv.c:448: undefined reference to `usbFunctionSetup'
make: *** [BootUSB.elf] Error 1
Build failed with 2 errors and 0 warnings...


Can someone tell me what's wrong?

Here are my project files if interested:
http://home.scarlet.be/~tsg80011/BootUSB.zip

A second question:
Is it possible to program the same avr with usb, it should be nice to get completely rid of serial port :mrgreen:
Or should i concider make a usb programmer, jtag for realtime debugging with avr studio should be nice

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Re: AVR Studio Build error

Post by christian » Fri Jul 10, 2009 5:56 pm

These errors indicate that you forgot to write your own code :-), or at least you did not include it in the compile. The compiler did not find your main() function and your usbFunctionSetup() function.

Post Reply