Need some LUFA help

Go To Last Post
6 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm using ATmega32u4, trying to get the USBtoSerial to work using LUFA newest library.

Before I do "#define USE_LUFA_CONFIG_HEADER"

I had these errors and warnings:

Error 1 conflicting types for 'CALLBACK_USB_GetDescriptor' C:\Users\Xusheng\Desktop\Solar Charging System\mainDesign\mainApp\Descriptors.h 101 12 mainApp
Warning 2 previous declaration of 'CALLBACK_USB_GetDescriptor' was here c:\program files (x86)\atmel\atmel studio 6.0\extensions\atmel\avrgcc\3.4.1.95\avrtoolchain\bin\../lib/gcc/avr/4.6.2/../../../../avr/include/LUFA/Drivers/USB/Core/AVR8/../Device.h 133 13 mainApp
Error 3 'FIXED_CONTROL_ENDPOINT_SIZE' undeclared here (not in a function) C:\Users\Xusheng\Desktop\Solar Charging System\mainDesign\mainApp\Descriptors.c 55 28 mainApp
Error 4 'FIXED_NUM_CONFIGURATIONS' undeclared here (not in a function) C:\Users\Xusheng\Desktop\Solar Charging System\mainDesign\mainApp\Descriptors.c 65 28 mainApp
Error 5 conflicting types for 'CALLBACK_USB_GetDescriptor' C:\Users\Xusheng\Desktop\Solar Charging System\mainDesign\mainApp\Descriptors.c 217 10 mainApp
Warning 6 previous declaration of 'CALLBACK_USB_GetDescriptor' was here c:\program files (x86)\atmel\atmel studio 6.0\extensions\atmel\avrgcc\3.4.1.95\avrtoolchain\bin\../lib/gcc/avr/4.6.2/../../../../avr/include/LUFA/Drivers/USB/Core/AVR8/../Device.h 133 13 mainApp

After that's apply, I got another set of error:

Error 1 undefined reference to `USB_Init' C:\Users\Xusheng\Desktop\Solar Charging System\mainDesign\mainApp\Debug/.././USBtoSerial.c 158 1 mainApp
Error 2 undefined reference to `CDC_Device_ReceiveByte' C:\Users\Xusheng\Desktop\Solar Charging System\mainDesign\mainApp\Debug/.././USBtoSerial.c 100 1 mainApp
Error 3 undefined reference to `CDC_Device_SendByte' C:\Users\Xusheng\Desktop\Solar Charging System\mainDesign\mainApp\Debug/.././USBtoSerial.c 125 1 mainApp
Error 4 undefined reference to `CDC_Device_USBTask' C:\Users\Xusheng\Desktop\Solar Charging System\mainDesign\mainApp\Debug/.././USBtoSerial.c 141 1 mainApp
Error 5 undefined reference to `USB_USBTask' C:\Users\Xusheng\Desktop\Solar Charging System\mainDesign\mainApp\Debug/.././USBtoSerial.c 142 1 mainApp
Error 6 undefined reference to `CDC_Device_ConfigureEndpoints' C:\Users\Xusheng\Desktop\Solar Charging System\mainDesign\mainApp\Debug/.././USBtoSerial.c 178 1 mainApp
Error 7 undefined reference to `CDC_Device_ProcessControlRequest' C:\Users\Xusheng\Desktop\Solar Charging System\mainDesign\mainApp\Debug/.././USBtoSerial.c 186 1 mainApp

Not really sure why it is doing it, but these functions are predefine in the LUFA library, and should be included through "#include "

Anyone know why I'm getting such errors?

Last Edited: Mon. Mar 11, 2013 - 01:42 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You will get more help if you edit your subject line to say something like "need some LUFA help"

Just go back and edit your message. You will find that the subject can also be changed. Then submit it again.

Jim

 

Until Black Lives Matter, we do not have "All Lives Matter"!

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Solve my problem, but thanks.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Did you mean "Solved my problem" as in "I solved my problem" or indeed "solve my problem" as in "Please solve my problem"?

Also consider subscribing to the LUFA mailing list, compilation problems are usually solved quite quickly there.

I tend to post off-topic replies when I've noticed some interesting detail.
Feel free to stop me.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Also, if it was "I solved my problem". Maybe a quick post about what the solution was will help the next person.

Clancy _________________ Step 1: RTFM Step 2: RTFF (Forums) Step 3: RTFG (Google) Step 4: Post

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I meant to say I solved the problem.

I inlucded the LUFA library directly in the project instead of placing it in the ATMEL directory for includes.