Here is the build log:
-------------- Build: Release in LUFA-test (compiler: GNU GCC Compiler for AVR)---------------
avr-gcc.exe -Wall -mmcu=at90usb1286 -DF_CPU=16000000UL -Os -std=c11 -IC:\WinAVR\avr\include -IC:\avr8-gnu-toolchain\avr\include -IC:\Users\adolfo1x\Documents\GitHub\USB-FreelancerDevice\LUFA-test\LUFA -c LUFA\CodeTemplates\DeviceTemplate\Descriptors.c -o obj\Release\LUFA\CodeTemplates\DeviceTemplate\Descriptors.o
avr-gcc.exe -Wall -mmcu=at90usb1286 -DF_CPU=16000000UL -Os -std=c11 -IC:\WinAVR\avr\include -IC:\avr8-gnu-toolchain\avr\include -IC:\Users\adolfo1x\Documents\GitHub\USB-FreelancerDevice\LUFA-test\LUFA -c LUFA\CodeTemplates\DeviceTemplate\DeviceApplication.c -o obj\Release\LUFA\CodeTemplates\DeviceTemplate\DeviceApplication.o
avr-gcc.exe -Wall -mmcu=at90usb1286 -DF_CPU=16000000UL -Os -std=c11 -IC:\WinAVR\avr\include -IC:\avr8-gnu-toolchain\avr\include -IC:\Users\adolfo1x\Documents\GitHub\USB-FreelancerDevice\LUFA-test\LUFA -c LUFA\CodeTemplates\HostTemplate\HostApplication.c -o obj\Release\LUFA\CodeTemplates\HostTemplate\HostApplication.o
avr-gcc.exe -Wall -mmcu=at90usb1286 -DF_CPU=16000000UL -Os -std=c11 -IC:\WinAVR\avr\include -IC:\avr8-gnu-toolchain\avr\include -IC:\Users\adolfo1x\Documents\GitHub\USB-FreelancerDevice\LUFA-test\LUFA -c LUFA\Drivers\USB\Class\Device\AudioClassDevice.c -o obj\Release\LUFA\Drivers\USB\Class\Device\AudioClassDevice.o
In file included from LUFA\CodeTemplates\DeviceTemplate\Descriptors.c:38:0:
LUFA\CodeTemplates\DeviceTemplate\Descriptors.h:40:36: fatal error: LUFA/Drivers/USB/USB.h: No such file or directory
#include <LUFA/Drivers/USB/USB.h>
^
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
In file included from LUFA\CodeTemplates\DeviceTemplate\DeviceApplication.c:38:0:
LUFA\CodeTemplates\DeviceTemplate\DeviceApplication.h:44:38: fatal error: LUFA/Platform/Platform.h: No such file or directory
#include <LUFA/Platform/Platform.h>
^
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
In file included from LUFA\CodeTemplates\HostTemplate\HostApplication.c:38:0:
LUFA\CodeTemplates\HostTemplate\HostApplication.h:44:36: fatal error: LUFA/Drivers/USB/USB.h: No such file or directory
#include <LUFA/Drivers/USB/USB.h>
^
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
In file included from LUFA\Drivers\USB\Class\Device\../../Core/USBController.h:150:0,
from LUFA\Drivers\USB\Class\Device\../../Core/USBTask.h:47,
from LUFA\Drivers\USB\Class\Device\../../USB.h:386,
from LUFA\Drivers\USB\Class\Device\AudioClassDevice.h:57,
from LUFA\Drivers\USB\Class\Device\AudioClassDevice.c:38:
LUFA\Drivers\USB\Class\Device\../../Core/AVR8/USBController_AVR8.h:84:5: error: #error F_USB is not defined. You must define F_USB to the frequency of the unprescaled USB controller clock in your project makefile.
#error F_USB is not defined. You must define F_USB to the frequency of the unprescaled USB controller clock in your project makefile.
^
In file included from LUFA\Drivers\USB\Class\Device\../../Core/USBController.h:150:0,
from LUFA\Drivers\USB\Class\Device\../../Core/USBTask.h:47,
from LUFA\Drivers\USB\Class\Device\../../USB.h:386,
from LUFA\Drivers\USB\Class\Device\AudioClassDevice.h:57,
from LUFA\Drivers\USB\Class\Device\AudioClassDevice.c:38:
LUFA\Drivers\USB\Class\Device\../../Core/AVR8/USBController_AVR8.h:114:5: error: #error No PLL prescale value available for chosen F_USB value and AVR model.
#error No PLL prescale value available for chosen F_USB value and AVR model.
^
LUFA\Drivers\USB\Class\Device\../../Core/AVR8/USBController_AVR8.h: In function 'USB_PLL_On':
LUFA\Drivers\USB\Class\Device\../../Core/AVR8/USBController_AVR8.h:330:14: error: 'USB_PLL_PSC' undeclared (first use in this function)
PLLCSR = USB_PLL_PSC;
^
LUFA\Drivers\USB\Class\Device\../../Core/AVR8/USBController_AVR8.h:330:14: note: each undeclared identifier is reported only once for each function it appears in
Process terminated with status 1 (0 minute(s), 0 second(s))
6 error(s), 0 warning(s) (0 minute(s), 0 second(s))
Thanks for your suggestion
I suspect you put lufa in
C:\Users\adolfo1x\Documents\GitHub\USB-FreelancerDevice\LUFA-test\LUFA
so that that the path to this USB.h is like following:
C:\Users\adolfo1x\Documents\GitHub\USB-FreelancerDevice\LUFA-test\LUFA\Drivers\USB\USB.h
So you have to set the include search path in
Project->Build options->Select project name on the left side->Search directories->Compiler-> Add
C:\Users\adolfo1x\Documents\GitHub\USB-FreelancerDevice\LUFA-test