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?