Atmel studio build failure

Hi,

I am trying to learn how to use Atmel studio7 to debug ARduino but I keep getting errors as below for the simple blinking led. Please share your thoughts if you know how to solve this problem.

thank you!

Severity Code Description Project File Line
Error ‘volatile struct USB_DEVICE_EPINTFLAG_Type::’ has no member named ‘STALL’; did you mean ‘STALL0’? ArduinoCore c:\users\latitude\Documents\Atmel Studio\7.0\ArduinoSketch1\ArduinoSketch1\ArduinoCore\include\core\USB\SAMD21_USBDevice.h 94
Error recipe for target ‘src/core/USB/USBCore.o’ failed ArduinoCore c:\users\latitude\Documents\Atmel Studio\7.0\ArduinoSketch1\ArduinoSketch1\ArduinoCore\Debug\Makefile 400
Error ‘volatile struct USB_DEVICE_EPINTFLAG_Type::’ has no member named ‘STALL’; did you mean ‘STALL0’? ArduinoCore c:\users\latitude\Documents\Atmel Studio\7.0\ArduinoSketch1\ArduinoSketch1\ArduinoCore\include\core\USB\SAMD21_USBDevice.h 95
Error ‘volatile struct USB_DEVICE_EPINTFLAG_Type::’ has no member named ‘TRCPT’; did you mean ‘TRCPT0’? ArduinoCore c:\users\latitude\Documents\Atmel Studio\7.0\ArduinoSketch1\ArduinoSketch1\ArduinoCore\include\core\USB\SAMD21_USBDevice.h 96
Error ‘volatile struct USB_DEVICE_EPINTFLAG_Type::’ has no member named ‘TRCPT’; did you mean ‘TRCPT0’? ArduinoCore c:\users\latitude\Documents\Atmel Studio\7.0\ArduinoSketch1\ArduinoSketch1\ArduinoCore\include\core\USB\SAMD21_USBDevice.h 97
Error ‘volatile struct USB_DEVICE_EPINTENSET_Type::’ has no member named ‘STALL’; did you mean ‘STALL0’? ArduinoCore c:\users\latitude\Documents\Atmel Studio\7.0\ArduinoSketch1\ArduinoSketch1\ArduinoCore\include\core\USB\SAMD21_USBDevice.h 106
Error ‘volatile struct USB_DEVICE_EPINTENSET_Type::’ has no member named ‘STALL’; did you mean ‘STALL0’? ArduinoCore c:\users\latitude\Documents\Atmel Studio\7.0\ArduinoSketch1\ArduinoSketch1\ArduinoCore\include\core\USB\SAMD21_USBDevice.h 107
Error ‘volatile struct USB_DEVICE_EPINTENSET_Type::’ has no member named ‘TRCPT’; did you mean ‘TRCPT0’? ArduinoCore c:\users\latitude\Documents\Atmel Studio\7.0\ArduinoSketch1\ArduinoSketch1\ArduinoCore\include\core\USB\SAMD21_USBDevice.h 108
Error ‘volatile struct USB_DEVICE_EPINTENSET_Type::’ has no member named ‘TRCPT’; did you mean ‘TRCPT0’? ArduinoCore c:\users\latitude\Documents\Atmel Studio\7.0\ArduinoSketch1\ArduinoSketch1\ArduinoCore\include\core\USB\SAMD21_USBDevice.h 109
Error ‘volatile struct USB_DEVICE_EPINTENCLR_Type::’ has no member named ‘STALL’; did you mean ‘STALL0’? ArduinoCore c:\users\latitude\Documents\Atmel Studio\7.0\ArduinoSketch1\ArduinoSketch1\ArduinoCore\include\core\USB\SAMD21_USBDevice.h 112
Error ‘volatile struct USB_DEVICE_EPINTENCLR_Type::’ has no member named ‘STALL’; did you mean ‘STALL0’? ArduinoCore c:\users\latitude\Documents\Atmel Studio\7.0\ArduinoSketch1\ArduinoSketch1\ArduinoCore\include\core\USB\SAMD21_USBDevice.h 113
Error ‘volatile struct USB_DEVICE_EPINTENCLR_Type::’ has no member named ‘TRCPT’; did you mean ‘TRCPT0’? ArduinoCore c:\users\latitude\Documents\Atmel Studio\7.0\ArduinoSketch1\ArduinoSketch1\ArduinoCore\include\core\USB\SAMD21_USBDevice.h 114
Error ‘volatile struct USB_DEVICE_EPINTENCLR_Type::’ has no member named ‘TRCPT’; did you mean ‘TRCPT0’? ArduinoCore c:\users\latitude\Documents\Atmel Studio\7.0\ArduinoSketch1\ArduinoSketch1\ArduinoCore\include\core\USB\SAMD21_USBDevice.h 115
Error ‘volatile struct USB_DEVICE_EPSTATUSSET_Type::’ has no member named ‘STALLRQ’; did you mean ‘STALLRQ0’? ArduinoCore c:\users\latitude\Documents\Atmel Studio\7.0\ArduinoSketch1\ArduinoSketch1\ArduinoCore\include\core\USB\SAMD21_USBDevice.h 125
Error ‘volatile struct USB_DEVICE_EPSTATUSSET_Type::’ has no member named ‘STALLRQ’; did you mean ‘STALLRQ0’? ArduinoCore c:\users\latitude\Documents\Atmel Studio\7.0\ArduinoSketch1\ArduinoSketch1\ArduinoCore\include\core\USB\SAMD21_USBDevice.h 126
Error ‘volatile struct USB_DEVICE_EPSTATUSCLR_Type::’ has no member named ‘STALLRQ’; did you mean ‘STALLRQ0’? ArduinoCore c:\users\latitude\Documents\Atmel Studio\7.0\ArduinoSketch1\ArduinoSketch1\ArduinoCore\include\core\USB\SAMD21_USBDevice.h 127
Error ‘volatile struct USB_DEVICE_EPSTATUSCLR_Type::’ has no member named ‘STALLRQ’; did you mean ‘STALLRQ0’? ArduinoCore c:\users\latitude\Documents\Atmel Studio\7.0\ArduinoSketch1\ArduinoSketch1\ArduinoCore\include\core\USB\SAMD21_USBDevice.h 128
Error cannot find -lArduinoCore Blink 1
Error recipe for target ‘Blink.elf’ failed Blink c:\users\latitude\Documents\Atmel Studio\7.0\ArduinoSketch1\ArduinoSketch1\Blink\Debug\Makefile 111
Error ld returned 1 exit status Blink collect2.exe 0