AVR Studio 7 Xmega-e5 Xplained DEMO build failure

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

Hi Guys, been a while and just got myself a used Xplain board with Xmega32E5     Tried to import a couple example projects successfully,but a few i had build-time errors that i cannot solve. might it be related to outdated ASF libraries?

 

Error        'ADC_SAMPNUM_2X_gc' undeclared here (not in a function)    XMEGA_E5_XPLAINED_DEMO1    c:\users\alex\Documents\Atmel Studio\7.0\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\adc\adc.h    1594    Build

 

 

My understanding was this was supposed to be out of the can example ready to be built and uploaded, yet the certain functions and variables seem to be undeclared ie missing or broken header files?

 

Please help out with opinions  

 

Thx

 

Attachment(s): 

Last Edited: Mon. Nov 14, 2016 - 06:34 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Please help out with opinions

Posting screen shots is pointless.  So is only posting the code that generates the error, because that's almost always not where the problem is.  When asking about build errors, post the "Output" from the build, not the error list, like this:

------ Build started: Project: XMEGA_E5_XPLAINED_DEMO1, Configuration: Debug AVR ------
Build started.
Project "XMEGA_E5_XPLAINED_DEMO1.cproj" (default targets):
Target "PreBuildEvent" skipped, due to false condition; ('$(PreBuildEvent)'!='') was evaluated as (''!='').
Target "CoreBuild" in file "C:\Program Files (x86)\Atmel\Studio\7.0\Vs\Compiler.targets" from project "S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1.cproj" (target "Build" depends on it):
    Using "RunCompilerTask" task from assembly "C:\Program Files (x86)\Atmel\Studio\7.0\Extensions\Application\AvrGCC.dll".
    Task "RunCompilerTask"
        Shell Utils Path C:\Program Files (x86)\Atmel\Studio\7.0\shellUtils
        C:\Program Files (x86)\Atmel\Studio\7.0\shellUtils\make.exe all --jobs 4 --output-sync
        Building file: ../src/app_cpu_load.c
        Invoking: AVR/GNU C Compiler : 4.9.2
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-gcc.exe"  -x c -DDEBUG -DBOARD=XMEGA_E5_XPLAINED -DGFX_MONO_UG_2832HSWEG04=1 -DIOPORT_XMEGA_COMPAT -DISR_CUSTOM_H=\"app_cpu_load.h\"  -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\XMEGAE_DFP\1.2.46\include" -I"../src" -I"../src/ASF/common/services/clock" -I"../src/ASF/xmega/drivers/cpu" -I"../src/ASF/xmega/utils/preprocessor" -I"../src/ASF/xmega/utils" -I"../src/ASF/common/utils" -I"../src/ASF/common/services/sleepmgr" -I"../src/ASF/xmega/drivers/sleep" -I"../src/ASF/common/services/fifo" -I"../src/ASF/common/services/delay" -I"../src/ASF/common/services/gfx_mono" -I"../src/ASF/common/components/display/ssd1306" -I"../src/ASF/common/services/ioport" -I"../src/ASF/common/services/spi" -I"../src/ASF/xmega/drivers/usart" -I"../src/ASF/xmega/drivers/pmic" -I"../src/ASF/common/utils/stdio/stdio_serial" -I"../src/ASF/common/services/serial/xmega_usart" -I"../src/ASF/common/services/serial" -I"../src/ASF/xmega/drivers/qdec" -I"../src/ASF/xmega/drivers/tc45" -I"../src/ASF/xmega/drivers/rtc" -I"../src/ASF/xmega/drivers/adc" -I"../src/ASF/xmega/drivers/nvm" -I"../src/ASF/xmega/boards/xmega_e5_xplained" -I"../src/ASF/xmega/boards" -I"../src/ASF/common/boards" -I"../src/ASF/common/services/gpio" -I"../src/ASF/xmega/applications/xmega_e5_xplained_demo/atxmega32e5_xmega_e5_xplained" -I"../src/config"  -O1 -fdata-sections -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -g3 -Wall -mmcu=atxmega32e5 -B "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\XMEGAE_DFP\1.2.46\gcc\dev\atxmega32e5" -c -std=gnu99 -fno-strict-aliasing -Wstrict-prototypes -Wmissing-prototypes -Werror-implicit-function-declaration -Wpointer-arith -mrelax -MD -MP -MF "src/app_cpu_load.d" -MT"src/app_cpu_load.d" -MT"src/app_cpu_load.o"   -o "src/app_cpu_load.o" "../src/app_cpu_load.c"
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\Debug\Makefile(324,1): error: recipe for target 'src/app_cpu_load.o' failed
        In file included from ../src/asf.h:56:0,
                         from ../src/app_cpu_load.c:47:
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\adc\adc.h(1594,19): error: 'ADC_SAMPNUM_2X_gc' undeclared here (not in a function)
          ADC_SAMPNUM_2X = ADC_SAMPNUM_2X_gc,
                           ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\adc\adc.h(1596,19): error: 'ADC_SAMPNUM_4X_gc' undeclared here (not in a function)
          ADC_SAMPNUM_4X = ADC_SAMPNUM_4X_gc,
                           ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\adc\adc.h(1598,19): error: 'ADC_SAMPNUM_8X_gc' undeclared here (not in a function)
          ADC_SAMPNUM_8X = ADC_SAMPNUM_8X_gc,
                           ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\adc\adc.h(1600,20): error: 'ADC_SAMPNUM_16X_gc' undeclared here (not in a function)
          ADC_SAMPNUM_16X = ADC_SAMPNUM_16X_gc,
                            ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\adc\adc.h(1602,20): error: 'ADC_SAMPNUM_32X_gc' undeclared here (not in a function)
          ADC_SAMPNUM_32X = ADC_SAMPNUM_32X_gc,
                            ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\adc\adc.h(1604,20): error: 'ADC_SAMPNUM_64X_gc' undeclared here (not in a function)
          ADC_SAMPNUM_64X = ADC_SAMPNUM_64X_gc,
                            ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\adc\adc.h(1606,21): error: 'ADC_SAMPNUM_128X_gc' undeclared here (not in a function)
          ADC_SAMPNUM_128X = ADC_SAMPNUM_128X_gc,
                             ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\adc\adc.h(1608,21): error: 'ADC_SAMPNUM_256X_gc' undeclared here (not in a function)
          ADC_SAMPNUM_256X = ADC_SAMPNUM_256X_gc,
                             ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\adc\adc.h(1610,21): error: 'ADC_SAMPNUM_512X_gc' undeclared here (not in a function)
          ADC_SAMPNUM_512X = ADC_SAMPNUM_512X_gc,
                             ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\adc\adc.h(1612,22): error: 'ADC_SAMPNUM_1024X_gc' undeclared here (not in a function)
          ADC_SAMPNUM_1024X = ADC_SAMPNUM_1024X_gc,
                              ^
        In file included from ../src/asf.h:123:0,
                         from ../src/app_cpu_load.c:47:
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(133,17): error: 'TC45_CCAMODE_COMP_gc' undeclared here (not in a function)
          TC45_CCACOMP = TC45_CCAMODE_COMP_gc,
                         ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(134,17): error: 'TC45_CCAMODE_CAPT_gc' undeclared here (not in a function)
          TC45_CCACAPT = TC45_CCAMODE_CAPT_gc,
                         ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(136,17): error: 'TC45_CCBMODE_COMP_gc' undeclared here (not in a function)
          TC45_CCBCOMP = TC45_CCBMODE_COMP_gc,
                         ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(137,17): error: 'TC45_CCBMODE_CAPT_gc' undeclared here (not in a function)
          TC45_CCBCAPT = TC45_CCBMODE_CAPT_gc,
                         ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(139,17): error: 'TC45_CCCMODE_COMP_gc' undeclared here (not in a function)
          TC45_CCCCOMP = TC45_CCCMODE_COMP_gc,
                         ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(140,17): error: 'TC45_CCCMODE_CAPT_gc' undeclared here (not in a function)
          TC45_CCCCAPT = TC45_CCCMODE_CAPT_gc,
                         ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(142,17): error: 'TC45_CCDMODE_COMP_gc' undeclared here (not in a function)
          TC45_CCDCOMP = TC45_CCDMODE_COMP_gc,
                         ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(143,17): error: 'TC45_CCDMODE_CAPT_gc' undeclared here (not in a function)
          TC45_CCDCAPT = TC45_CCDMODE_CAPT_gc,
                         ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(157,19): error: 'TC45_WGMODE_NORMAL_gc' undeclared here (not in a function)
          TC45_WG_NORMAL = TC45_WGMODE_NORMAL_gc,
                           ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(159,16): error: 'TC45_WGMODE_FRQ_gc' undeclared here (not in a function)
          TC45_WG_FRQ = TC45_WGMODE_FRQ_gc,
                        ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(165,18): error: 'TC45_WGMODE_DSBOTH_gc' undeclared here (not in a function)
          TC45_WG_DS_TB = TC45_WGMODE_DSBOTH_gc,
                          ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(167,17): error: 'TC45_WGMODE_DSBOTTOM_gc' undeclared here (not in a function)
          TC45_WG_DS_B = TC45_WGMODE_DSBOTTOM_gc
                         ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(586,3): error: unknown type name 'TC45_CLKSEL_t'
           TC45_CLKSEL_t TC45_CLKSEL_enum)
           ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(606,15): error: unknown type name 'TC45_CLKSEL_t'
         static inline TC45_CLKSEL_t tc45_read_clock_source(volatile void *tc)
                       ^
        ../src/ASF/xmega/drivers/tc45/tc45.h: In function 'tc45_read_clock_source':
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(609,11): error: 'TC45_CLKSEL_t' undeclared (first use in this function)
           return (TC45_CLKSEL_t)(((TC4_t *)tc)->CTRLA & TC4_CLKSEL_gm);
                   ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(609,11): info: each undeclared identifier is reported only once for each function it appears in
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(615,9): error: 'TC45_CLKSEL_OFF_gc' undeclared (first use in this function)
          return TC45_CLKSEL_OFF_gc;
                 ^
        ../src/ASF/xmega/drivers/tc45/tc45.h: In function 'tc45_set_resolution':
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(636,3): error: implicit declaration of function 'tc45_write_clock_source' [-Werror=implicit-function-declaration]
           tc45_write_clock_source(tc, TC45_CLKSEL_DIV1024_gc);
           ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(636,31): error: 'TC45_CLKSEL_DIV1024_gc' undeclared (first use in this function)
           tc45_write_clock_source(tc, TC45_CLKSEL_DIV1024_gc);
                                       ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(638,31): error: 'TC45_CLKSEL_DIV256_gc' undeclared (first use in this function)
           tc45_write_clock_source(tc, TC45_CLKSEL_DIV256_gc);
                                       ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(640,31): error: 'TC45_CLKSEL_DIV64_gc' undeclared (first use in this function)
           tc45_write_clock_source(tc, TC45_CLKSEL_DIV64_gc);
                                       ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(642,31): error: 'TC45_CLKSEL_DIV8_gc' undeclared (first use in this function)
           tc45_write_clock_source(tc, TC45_CLKSEL_DIV8_gc);
                                       ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(644,31): error: 'TC45_CLKSEL_DIV4_gc' undeclared (first use in this function)
           tc45_write_clock_source(tc, TC45_CLKSEL_DIV4_gc);
                                       ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(646,31): error: 'TC45_CLKSEL_DIV2_gc' undeclared (first use in this function)
           tc45_write_clock_source(tc, TC45_CLKSEL_DIV2_gc);
                                       ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(648,31): error: 'TC45_CLKSEL_DIV1_gc' undeclared (first use in this function)
           tc45_write_clock_source(tc, TC45_CLKSEL_DIV1_gc);
                                       ^
        ../src/ASF/xmega/drivers/tc45/tc45.h: In function 'tc45_get_resolution':
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(669,7): error: 'TC45_CLKSEL_OFF_gc' undeclared (first use in this function)
          case TC45_CLKSEL_OFF_gc:
               ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(673,7): error: 'TC45_CLKSEL_DIV1024_gc' undeclared (first use in this function)
          case TC45_CLKSEL_DIV1024_gc:
               ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(677,7): error: 'TC45_CLKSEL_DIV256_gc' undeclared (first use in this function)
          case TC45_CLKSEL_DIV256_gc:
               ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(681,7): error: 'TC45_CLKSEL_DIV64_gc' undeclared (first use in this function)
          case TC45_CLKSEL_DIV64_gc:
               ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(685,7): error: 'TC45_CLKSEL_DIV8_gc' undeclared (first use in this function)
          case TC45_CLKSEL_DIV8_gc:
               ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(689,7): error: 'TC45_CLKSEL_DIV4_gc' undeclared (first use in this function)
          case TC45_CLKSEL_DIV4_gc:
               ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(693,7): error: 'TC45_CLKSEL_DIV2_gc' undeclared (first use in this function)
          case TC45_CLKSEL_DIV2_gc:
               ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(697,7): error: 'TC45_CLKSEL_DIV1_gc' undeclared (first use in this function)
          case TC45_CLKSEL_DIV1_gc:
               ^
        ../src/ASF/xmega/drivers/tc45/tc45.h: In function 'tc45_restart':
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(961,29): error: 'TC45_CMD_RESTART_gc' undeclared (first use in this function)
           ((TC4_t *)tc)->CTRLGSET = TC45_CMD_RESTART_gc;
                                     ^
        ../src/ASF/xmega/drivers/tc45/tc45.h: In function 'tc45_reset':
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(976,29): error: 'TC45_CMD_RESET_gc' undeclared (first use in this function)
           ((TC4_t *)tc)->CTRLGSET = TC45_CMD_RESET_gc;
                                     ^
        ../src/ASF/xmega/drivers/tc45/tc45.h: In function 'tc45_update':
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(991,29): error: 'TC45_CMD_UPDATE_gc' undeclared (first use in this function)
           ((TC4_t *)tc)->CTRLGSET = TC45_CMD_UPDATE_gc;
                                     ^
        ../src/ASF/xmega/drivers/tc45/tc45.h: At top level:
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(1116,3): error: unknown type name 'TC45_EVSEL_t'
           TC45_EVSEL_t eventsource, TC45_EVACT_t eventaction)
           ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(1116,29): error: unknown type name 'TC45_EVACT_t'
           TC45_EVSEL_t eventsource, TC45_EVACT_t eventaction)
                                     ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(1712,3): error: unknown type name 'TC45_EVSEL_t'
           TC45_EVSEL_t eventSource )
           ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(1730,3): error: unknown type name 'TC45_EVSEL_t'
           TC45_EVSEL_t eventAction )
           ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(1749,3): error: unknown type name 'TC45_EVSEL_t'
           TC45_EVSEL_t eventSource )
           ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(1772,3): error: unknown type name 'TC45_EVSEL_t'
           TC45_EVSEL_t eventSource )
           ^
        ../src/app_cpu_load.c: In function 'app_cpu_load_init':
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\app_cpu_load.c(71,33): error: 'TC45_CLKSEL_DIV256_gc' undeclared (first use in this function)
          tc45_write_clock_source(&TCC4, TC45_CLKSEL_DIV256_gc); /* 24MHz / 256 */
                                         ^
        cc1.exe: some warnings being treated as errors
        make: *** [src/app_cpu_load.o] Error 1
        make: *** Waiting for unfinished jobs....
        Building file: ../src/app_bitmaps.c
        Invoking: AVR/GNU C Compiler : 4.9.2
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-gcc.exe"  -x c -DDEBUG -DBOARD=XMEGA_E5_XPLAINED -DGFX_MONO_UG_2832HSWEG04=1 -DIOPORT_XMEGA_COMPAT -DISR_CUSTOM_H=\"app_cpu_load.h\"  -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\XMEGAE_DFP\1.2.46\include" -I"../src" -I"../src/ASF/common/services/clock" -I"../src/ASF/xmega/drivers/cpu" -I"../src/ASF/xmega/utils/preprocessor" -I"../src/ASF/xmega/utils" -I"../src/ASF/common/utils" -I"../src/ASF/common/services/sleepmgr" -I"../src/ASF/xmega/drivers/sleep" -I"../src/ASF/common/services/fifo" -I"../src/ASF/common/services/delay" -I"../src/ASF/common/services/gfx_mono" -I"../src/ASF/common/components/display/ssd1306" -I"../src/ASF/common/services/ioport" -I"../src/ASF/common/services/spi" -I"../src/ASF/xmega/drivers/usart" -I"../src/ASF/xmega/drivers/pmic" -I"../src/ASF/common/utils/stdio/stdio_serial" -I"../src/ASF/common/services/serial/xmega_usart" -I"../src/ASF/common/services/serial" -I"../src/ASF/xmega/drivers/qdec" -I"../src/ASF/xmega/drivers/tc45" -I"../src/ASF/xmega/drivers/rtc" -I"../src/ASF/xmega/drivers/adc" -I"../src/ASF/xmega/drivers/nvm" -I"../src/ASF/xmega/boards/xmega_e5_xplained" -I"../src/ASF/xmega/boards" -I"../src/ASF/common/boards" -I"../src/ASF/common/services/gpio" -I"../src/ASF/xmega/applications/xmega_e5_xplained_demo/atxmega32e5_xmega_e5_xplained" -I"../src/config"  -O1 -fdata-sections -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -g3 -Wall -mmcu=atxmega32e5 -B "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\XMEGAE_DFP\1.2.46\gcc\dev\atxmega32e5" -c -std=gnu99 -fno-strict-aliasing -Wstrict-prototypes -Wmissing-prototypes -Werror-implicit-function-declaration -Wpointer-arith -mrelax -MD -MP -MF "src/app_bitmaps.d" -MT"src/app_bitmaps.d" -MT"src/app_bitmaps.o"   -o "src/app_bitmaps.o" "../src/app_bitmaps.c"
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\Debug\Makefile(324,1): error: recipe for target 'src/app_bitmaps.o' failed
        In file included from ../src/asf.h:56:0,
                         from ../src/app_bitmaps.c:47:
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\adc\adc.h(1594,19): error: 'ADC_SAMPNUM_2X_gc' undeclared here (not in a function)
          ADC_SAMPNUM_2X = ADC_SAMPNUM_2X_gc,
                           ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\adc\adc.h(1596,19): error: 'ADC_SAMPNUM_4X_gc' undeclared here (not in a function)
          ADC_SAMPNUM_4X = ADC_SAMPNUM_4X_gc,
                           ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\adc\adc.h(1598,19): error: 'ADC_SAMPNUM_8X_gc' undeclared here (not in a function)
          ADC_SAMPNUM_8X = ADC_SAMPNUM_8X_gc,
                           ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\adc\adc.h(1600,20): error: 'ADC_SAMPNUM_16X_gc' undeclared here (not in a function)
          ADC_SAMPNUM_16X = ADC_SAMPNUM_16X_gc,
                            ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\adc\adc.h(1602,20): error: 'ADC_SAMPNUM_32X_gc' undeclared here (not in a function)
          ADC_SAMPNUM_32X = ADC_SAMPNUM_32X_gc,
                            ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\adc\adc.h(1604,20): error: 'ADC_SAMPNUM_64X_gc' undeclared here (not in a function)
          ADC_SAMPNUM_64X = ADC_SAMPNUM_64X_gc,
                            ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\adc\adc.h(1606,21): error: 'ADC_SAMPNUM_128X_gc' undeclared here (not in a function)
          ADC_SAMPNUM_128X = ADC_SAMPNUM_128X_gc,
                             ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\adc\adc.h(1608,21): error: 'ADC_SAMPNUM_256X_gc' undeclared here (not in a function)
          ADC_SAMPNUM_256X = ADC_SAMPNUM_256X_gc,
                             ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\adc\adc.h(1610,21): error: 'ADC_SAMPNUM_512X_gc' undeclared here (not in a function)
          ADC_SAMPNUM_512X = ADC_SAMPNUM_512X_gc,
                             ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\adc\adc.h(1612,22): error: 'ADC_SAMPNUM_1024X_gc' undeclared here (not in a function)
          ADC_SAMPNUM_1024X = ADC_SAMPNUM_1024X_gc,
                              ^
        In file included from ../src/asf.h:123:0,
                         from ../src/app_bitmaps.c:47:
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(133,17): error: 'TC45_CCAMODE_COMP_gc' undeclared here (not in a function)
          TC45_CCACOMP = TC45_CCAMODE_COMP_gc,
                         ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(134,17): error: 'TC45_CCAMODE_CAPT_gc' undeclared here (not in a function)
          TC45_CCACAPT = TC45_CCAMODE_CAPT_gc,
                         ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(136,17): error: 'TC45_CCBMODE_COMP_gc' undeclared here (not in a function)
          TC45_CCBCOMP = TC45_CCBMODE_COMP_gc,
                         ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(137,17): error: 'TC45_CCBMODE_CAPT_gc' undeclared here (not in a function)
          TC45_CCBCAPT = TC45_CCBMODE_CAPT_gc,
                         ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(139,17): error: 'TC45_CCCMODE_COMP_gc' undeclared here (not in a function)
          TC45_CCCCOMP = TC45_CCCMODE_COMP_gc,
                         ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(140,17): error: 'TC45_CCCMODE_CAPT_gc' undeclared here (not in a function)
          TC45_CCCCAPT = TC45_CCCMODE_CAPT_gc,
                         ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(142,17): error: 'TC45_CCDMODE_COMP_gc' undeclared here (not in a function)
          TC45_CCDCOMP = TC45_CCDMODE_COMP_gc,
                         ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(143,17): error: 'TC45_CCDMODE_CAPT_gc' undeclared here (not in a function)
          TC45_CCDCAPT = TC45_CCDMODE_CAPT_gc,
                         ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(157,19): error: 'TC45_WGMODE_NORMAL_gc' undeclared here (not in a function)
          TC45_WG_NORMAL = TC45_WGMODE_NORMAL_gc,
                           ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(159,16): error: 'TC45_WGMODE_FRQ_gc' undeclared here (not in a function)
          TC45_WG_FRQ = TC45_WGMODE_FRQ_gc,
                        ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(165,18): error: 'TC45_WGMODE_DSBOTH_gc' undeclared here (not in a function)
          TC45_WG_DS_TB = TC45_WGMODE_DSBOTH_gc,
                          ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(167,17): error: 'TC45_WGMODE_DSBOTTOM_gc' undeclared here (not in a function)
          TC45_WG_DS_B = TC45_WGMODE_DSBOTTOM_gc
                         ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(586,3): error: unknown type name 'TC45_CLKSEL_t'
           TC45_CLKSEL_t TC45_CLKSEL_enum)
           ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(606,15): error: unknown type name 'TC45_CLKSEL_t'
         static inline TC45_CLKSEL_t tc45_read_clock_source(volatile void *tc)
                       ^
        ../src/ASF/xmega/drivers/tc45/tc45.h: In function 'tc45_read_clock_source':
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(609,11): error: 'TC45_CLKSEL_t' undeclared (first use in this function)
           return (TC45_CLKSEL_t)(((TC4_t *)tc)->CTRLA & TC4_CLKSEL_gm);
                   ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(609,11): info: each undeclared identifier is reported only once for each function it appears in
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(615,9): error: 'TC45_CLKSEL_OFF_gc' undeclared (first use in this function)
          return TC45_CLKSEL_OFF_gc;
                 ^
        ../src/ASF/xmega/drivers/tc45/tc45.h: In function 'tc45_set_resolution':
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(636,3): error: implicit declaration of function 'tc45_write_clock_source' [-Werror=implicit-function-declaration]
           tc45_write_clock_source(tc, TC45_CLKSEL_DIV1024_gc);
           ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(636,31): error: 'TC45_CLKSEL_DIV1024_gc' undeclared (first use in this function)
           tc45_write_clock_source(tc, TC45_CLKSEL_DIV1024_gc);
                                       ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(638,31): error: 'TC45_CLKSEL_DIV256_gc' undeclared (first use in this function)
           tc45_write_clock_source(tc, TC45_CLKSEL_DIV256_gc);
                                       ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(640,31): error: 'TC45_CLKSEL_DIV64_gc' undeclared (first use in this function)
           tc45_write_clock_source(tc, TC45_CLKSEL_DIV64_gc);
                                       ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(642,31): error: 'TC45_CLKSEL_DIV8_gc' undeclared (first use in this function)
           tc45_write_clock_source(tc, TC45_CLKSEL_DIV8_gc);
                                       ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(644,31): error: 'TC45_CLKSEL_DIV4_gc' undeclared (first use in this function)
           tc45_write_clock_source(tc, TC45_CLKSEL_DIV4_gc);
                                       ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(646,31): error: 'TC45_CLKSEL_DIV2_gc' undeclared (first use in this function)
           tc45_write_clock_source(tc, TC45_CLKSEL_DIV2_gc);
                                       ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(648,31): error: 'TC45_CLKSEL_DIV1_gc' undeclared (first use in this function)
           tc45_write_clock_source(tc, TC45_CLKSEL_DIV1_gc);
                                       ^
        ../src/ASF/xmega/drivers/tc45/tc45.h: In function 'tc45_get_resolution':
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(669,7): error: 'TC45_CLKSEL_OFF_gc' undeclared (first use in this function)
          case TC45_CLKSEL_OFF_gc:
               ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(673,7): error: 'TC45_CLKSEL_DIV1024_gc' undeclared (first use in this function)
          case TC45_CLKSEL_DIV1024_gc:
               ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(677,7): error: 'TC45_CLKSEL_DIV256_gc' undeclared (first use in this function)
          case TC45_CLKSEL_DIV256_gc:
               ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(681,7): error: 'TC45_CLKSEL_DIV64_gc' undeclared (first use in this function)
          case TC45_CLKSEL_DIV64_gc:
               ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(685,7): error: 'TC45_CLKSEL_DIV8_gc' undeclared (first use in this function)
          case TC45_CLKSEL_DIV8_gc:
               ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(689,7): error: 'TC45_CLKSEL_DIV4_gc' undeclared (first use in this function)
          case TC45_CLKSEL_DIV4_gc:
               ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(693,7): error: 'TC45_CLKSEL_DIV2_gc' undeclared (first use in this function)
          case TC45_CLKSEL_DIV2_gc:
               ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(697,7): error: 'TC45_CLKSEL_DIV1_gc' undeclared (first use in this function)
          case TC45_CLKSEL_DIV1_gc:
               ^
        ../src/ASF/xmega/drivers/tc45/tc45.h: In function 'tc45_restart':
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(961,29): error: 'TC45_CMD_RESTART_gc' undeclared (first use in this function)
           ((TC4_t *)tc)->CTRLGSET = TC45_CMD_RESTART_gc;
                                     ^
        Building file: ../src/app_sampling.c
        Invoking: AVR/GNU C Compiler : 4.9.2
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-gcc.exe"  -x c -DDEBUG -DBOARD=XMEGA_E5_XPLAINED -DGFX_MONO_UG_2832HSWEG04=1 -DIOPORT_XMEGA_COMPAT -DISR_CUSTOM_H=\"app_cpu_load.h\"  -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\XMEGAE_DFP\1.2.46\include" -I"../src" -I"../src/ASF/common/services/clock" -I"../src/ASF/xmega/drivers/cpu" -I"../src/ASF/xmega/utils/preprocessor" -I"../src/ASF/xmega/utils" -I"../src/ASF/common/utils" -I"../src/ASF/common/services/sleepmgr" -I"../src/ASF/xmega/drivers/sleep" -I"../src/ASF/common/services/fifo" -I"../src/ASF/common/services/delay" -I"../src/ASF/common/services/gfx_mono" -I"../src/ASF/common/components/display/ssd1306" -I"../src/ASF/common/services/ioport" -I"../src/ASF/common/services/spi" -I"../src/ASF/xmega/drivers/usart" -I"../src/ASF/xmega/drivers/pmic" -I"../src/ASF/common/utils/stdio/stdio_serial" -I"../src/ASF/common/services/serial/xmega_usart" -I"../src/ASF/common/services/serial" -I"../src/ASF/xmega/drivers/qdec" -I"../src/ASF/xmega/drivers/tc45" -I"../src/ASF/xmega/drivers/rtc" -I"../src/ASF/xmega/drivers/adc" -I"../src/ASF/xmega/drivers/nvm" -I"../src/ASF/xmega/boards/xmega_e5_xplained" -I"../src/ASF/xmega/boards" -I"../src/ASF/common/boards" -I"../src/ASF/common/services/gpio" -I"../src/ASF/xmega/applications/xmega_e5_xplained_demo/atxmega32e5_xmega_e5_xplained" -I"../src/config"  -O1 -fdata-sections -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -g3 -Wall -mmcu=atxmega32e5 -B "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\XMEGAE_DFP\1.2.46\gcc\dev\atxmega32e5" -c -std=gnu99 -fno-strict-aliasing -Wstrict-prototypes -Wmissing-prototypes -Werror-implicit-function-declaration -Wpointer-arith -mrelax -MD -MP -MF "src/app_sampling.d" -MT"src/app_sampling.d" -MT"src/app_sampling.o"   -o "src/app_sampling.o" "../src/app_sampling.c"
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\Debug\Makefile(324,1): error: recipe for target 'src/app_sampling.o' failed
        ../src/ASF/xmega/drivers/tc45/tc45.h: In function 'tc45_reset':
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(976,29): error: 'TC45_CMD_RESET_gc' undeclared (first use in this function)
           ((TC4_t *)tc)->CTRLGSET = TC45_CMD_RESET_gc;
                                     ^
        ../src/ASF/xmega/drivers/tc45/tc45.h: In function 'tc45_update':
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(991,29): error: 'TC45_CMD_UPDATE_gc' undeclared (first use in this function)
           ((TC4_t *)tc)->CTRLGSET = TC45_CMD_UPDATE_gc;
                                     ^
        ../src/ASF/xmega/drivers/tc45/tc45.h: At top level:
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(1116,3): error: unknown type name 'TC45_EVSEL_t'
           TC45_EVSEL_t eventsource, TC45_EVACT_t eventaction)
           ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(1116,29): error: unknown type name 'TC45_EVACT_t'
           TC45_EVSEL_t eventsource, TC45_EVACT_t eventaction)
                                     ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(1712,3): error: unknown type name 'TC45_EVSEL_t'
           TC45_EVSEL_t eventSource )
           ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(1730,3): error: unknown type name 'TC45_EVSEL_t'
           TC45_EVSEL_t eventAction )
           ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(1749,3): error: unknown type name 'TC45_EVSEL_t'
           TC45_EVSEL_t eventSource )
           ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(1772,3): error: unknown type name 'TC45_EVSEL_t'
           TC45_EVSEL_t eventSource )
           ^
        cc1.exe: some warnings being treated as errors
        make: *** [src/app_bitmaps.o] Error 1
        In file included from ../src/asf.h:56:0,
                         from ../src/app_sampling.c:47:
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\adc\adc.h(1594,19): error: 'ADC_SAMPNUM_2X_gc' undeclared here (not in a function)
          ADC_SAMPNUM_2X = ADC_SAMPNUM_2X_gc,
                           ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\adc\adc.h(1596,19): error: 'ADC_SAMPNUM_4X_gc' undeclared here (not in a function)
          ADC_SAMPNUM_4X = ADC_SAMPNUM_4X_gc,
                           ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\adc\adc.h(1598,19): error: 'ADC_SAMPNUM_8X_gc' undeclared here (not in a function)
          ADC_SAMPNUM_8X = ADC_SAMPNUM_8X_gc,
                           ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\adc\adc.h(1600,20): error: 'ADC_SAMPNUM_16X_gc' undeclared here (not in a function)
          ADC_SAMPNUM_16X = ADC_SAMPNUM_16X_gc,
                            ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\adc\adc.h(1602,20): error: 'ADC_SAMPNUM_32X_gc' undeclared here (not in a function)
          ADC_SAMPNUM_32X = ADC_SAMPNUM_32X_gc,
                            ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\adc\adc.h(1604,20): error: 'ADC_SAMPNUM_64X_gc' undeclared here (not in a function)
          ADC_SAMPNUM_64X = ADC_SAMPNUM_64X_gc,
                            ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\adc\adc.h(1606,21): error: 'ADC_SAMPNUM_128X_gc' undeclared here (not in a function)
          ADC_SAMPNUM_128X = ADC_SAMPNUM_128X_gc,
                             ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\adc\adc.h(1608,21): error: 'ADC_SAMPNUM_256X_gc' undeclared here (not in a function)
          ADC_SAMPNUM_256X = ADC_SAMPNUM_256X_gc,
                             ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\adc\adc.h(1610,21): error: 'ADC_SAMPNUM_512X_gc' undeclared here (not in a function)
          ADC_SAMPNUM_512X = ADC_SAMPNUM_512X_gc,
                             ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\adc\adc.h(1612,22): error: 'ADC_SAMPNUM_1024X_gc' undeclared here (not in a function)
          ADC_SAMPNUM_1024X = ADC_SAMPNUM_1024X_gc,
                              ^
        In file included from ../src/asf.h:123:0,
                         from ../src/app_sampling.c:47:
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(133,17): error: 'TC45_CCAMODE_COMP_gc' undeclared here (not in a function)
          TC45_CCACOMP = TC45_CCAMODE_COMP_gc,
                         ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(134,17): error: 'TC45_CCAMODE_CAPT_gc' undeclared here (not in a function)
          TC45_CCACAPT = TC45_CCAMODE_CAPT_gc,
                         ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(136,17): error: 'TC45_CCBMODE_COMP_gc' undeclared here (not in a function)
          TC45_CCBCOMP = TC45_CCBMODE_COMP_gc,
                         ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(137,17): error: 'TC45_CCBMODE_CAPT_gc' undeclared here (not in a function)
          TC45_CCBCAPT = TC45_CCBMODE_CAPT_gc,
                         ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(139,17): error: 'TC45_CCCMODE_COMP_gc' undeclared here (not in a function)
          TC45_CCCCOMP = TC45_CCCMODE_COMP_gc,
                         ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(140,17): error: 'TC45_CCCMODE_CAPT_gc' undeclared here (not in a function)
          TC45_CCCCAPT = TC45_CCCMODE_CAPT_gc,
                         ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(142,17): error: 'TC45_CCDMODE_COMP_gc' undeclared here (not in a function)
          TC45_CCDCOMP = TC45_CCDMODE_COMP_gc,
                         ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(143,17): error: 'TC45_CCDMODE_CAPT_gc' undeclared here (not in a function)
          TC45_CCDCAPT = TC45_CCDMODE_CAPT_gc,
                         ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(157,19): error: 'TC45_WGMODE_NORMAL_gc' undeclared here (not in a function)
          TC45_WG_NORMAL = TC45_WGMODE_NORMAL_gc,
                           ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(159,16): error: 'TC45_WGMODE_FRQ_gc' undeclared here (not in a function)
          TC45_WG_FRQ = TC45_WGMODE_FRQ_gc,
                        ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(165,18): error: 'TC45_WGMODE_DSBOTH_gc' undeclared here (not in a function)
          TC45_WG_DS_TB = TC45_WGMODE_DSBOTH_gc,
                          ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(167,17): error: 'TC45_WGMODE_DSBOTTOM_gc' undeclared here (not in a function)
          TC45_WG_DS_B = TC45_WGMODE_DSBOTTOM_gc
                         ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(586,3): error: unknown type name 'TC45_CLKSEL_t'
           TC45_CLKSEL_t TC45_CLKSEL_enum)
           ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(606,15): error: unknown type name 'TC45_CLKSEL_t'
         static inline TC45_CLKSEL_t tc45_read_clock_source(volatile void *tc)
                       ^
        ../src/ASF/xmega/drivers/tc45/tc45.h: In function 'tc45_read_clock_source':
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(609,11): error: 'TC45_CLKSEL_t' undeclared (first use in this function)
           return (TC45_CLKSEL_t)(((TC4_t *)tc)->CTRLA & TC4_CLKSEL_gm);
                   ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(609,11): info: each undeclared identifier is reported only once for each function it appears in
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(615,9): error: 'TC45_CLKSEL_OFF_gc' undeclared (first use in this function)
          return TC45_CLKSEL_OFF_gc;
                 ^
        ../src/ASF/xmega/drivers/tc45/tc45.h: In function 'tc45_set_resolution':
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(636,3): error: implicit declaration of function 'tc45_write_clock_source' [-Werror=implicit-function-declaration]
           tc45_write_clock_source(tc, TC45_CLKSEL_DIV1024_gc);
           ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(636,31): error: 'TC45_CLKSEL_DIV1024_gc' undeclared (first use in this function)
           tc45_write_clock_source(tc, TC45_CLKSEL_DIV1024_gc);
                                       ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(638,31): error: 'TC45_CLKSEL_DIV256_gc' undeclared (first use in this function)
           tc45_write_clock_source(tc, TC45_CLKSEL_DIV256_gc);
                                       ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(640,31): error: 'TC45_CLKSEL_DIV64_gc' undeclared (first use in this function)
           tc45_write_clock_source(tc, TC45_CLKSEL_DIV64_gc);
                                       ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(642,31): error: 'TC45_CLKSEL_DIV8_gc' undeclared (first use in this function)
           tc45_write_clock_source(tc, TC45_CLKSEL_DIV8_gc);
                                       ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(644,31): error: 'TC45_CLKSEL_DIV4_gc' undeclared (first use in this function)
           tc45_write_clock_source(tc, TC45_CLKSEL_DIV4_gc);
                                       ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(646,31): error: 'TC45_CLKSEL_DIV2_gc' undeclared (first use in this function)
           tc45_write_clock_source(tc, TC45_CLKSEL_DIV2_gc);
                                       ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(648,31): error: 'TC45_CLKSEL_DIV1_gc' undeclared (first use in this function)
           tc45_write_clock_source(tc, TC45_CLKSEL_DIV1_gc);
                                       ^
        ../src/ASF/xmega/drivers/tc45/tc45.h: In function 'tc45_get_resolution':
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(669,7): error: 'TC45_CLKSEL_OFF_gc' undeclared (first use in this function)
          case TC45_CLKSEL_OFF_gc:
               ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(673,7): error: 'TC45_CLKSEL_DIV1024_gc' undeclared (first use in this function)
          case TC45_CLKSEL_DIV1024_gc:
               ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(677,7): error: 'TC45_CLKSEL_DIV256_gc' undeclared (first use in this function)
          case TC45_CLKSEL_DIV256_gc:
               ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(681,7): error: 'TC45_CLKSEL_DIV64_gc' undeclared (first use in this function)
          case TC45_CLKSEL_DIV64_gc:
               ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(685,7): error: 'TC45_CLKSEL_DIV8_gc' undeclared (first use in this function)
          case TC45_CLKSEL_DIV8_gc:
               ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(689,7): error: 'TC45_CLKSEL_DIV4_gc' undeclared (first use in this function)
          case TC45_CLKSEL_DIV4_gc:
               ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(693,7): error: 'TC45_CLKSEL_DIV2_gc' undeclared (first use in this function)
          case TC45_CLKSEL_DIV2_gc:
               ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(697,7): error: 'TC45_CLKSEL_DIV1_gc' undeclared (first use in this function)
          case TC45_CLKSEL_DIV1_gc:
               ^
        ../src/ASF/xmega/drivers/tc45/tc45.h: In function 'tc45_restart':
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(961,29): error: 'TC45_CMD_RESTART_gc' undeclared (first use in this function)
           ((TC4_t *)tc)->CTRLGSET = TC45_CMD_RESTART_gc;
                                     ^
        ../src/ASF/xmega/drivers/tc45/tc45.h: In function 'tc45_reset':
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(976,29): error: 'TC45_CMD_RESET_gc' undeclared (first use in this function)
           ((TC4_t *)tc)->CTRLGSET = TC45_CMD_RESET_gc;
                                     ^
        ../src/ASF/xmega/drivers/tc45/tc45.h: In function 'tc45_update':
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(991,29): error: 'TC45_CMD_UPDATE_gc' undeclared (first use in this function)
           ((TC4_t *)tc)->CTRLGSET = TC45_CMD_UPDATE_gc;
                                     ^
        ../src/ASF/xmega/drivers/tc45/tc45.h: At top level:
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(1116,3): error: unknown type name 'TC45_EVSEL_t'
           TC45_EVSEL_t eventsource, TC45_EVACT_t eventaction)
           ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(1116,29): error: unknown type name 'TC45_EVACT_t'
           TC45_EVSEL_t eventsource, TC45_EVACT_t eventaction)
                                     ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(1712,3): error: unknown type name 'TC45_EVSEL_t'
           TC45_EVSEL_t eventSource )
           ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(1730,3): error: unknown type name 'TC45_EVSEL_t'
           TC45_EVSEL_t eventAction )
           ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(1749,3): error: unknown type name 'TC45_EVSEL_t'
           TC45_EVSEL_t eventSource )
           ^
S:\Documents\Atmel Studio\7.0\SAM\XMEGA_E5_XPLAINED_DEMO1\XMEGA_E5_XPLAINED_DEMO1\src\ASF\xmega\drivers\tc45\tc45.h(1772,3): error: unknown type name 'TC45_EVSEL_t'
           TC45_EVSEL_t eventSource )
           ^
        cc1.exe: some warnings being treated as errors
        make: *** [src/app_sampling.o] Error 1
        Building file: ../src/ASF/common/components/display/ssd1306/font.c
        Invoking: AVR/GNU C Compiler : 4.9.2
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-gcc.exe"  -x c -DDEBUG -DBOARD=XMEGA_E5_XPLAINED -DGFX_MONO_UG_2832HSWEG04=1 -DIOPORT_XMEGA_COMPAT -DISR_CUSTOM_H=\"app_cpu_load.h\"  -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\XMEGAE_DFP\1.2.46\include" -I"../src" -I"../src/ASF/common/services/clock" -I"../src/ASF/xmega/drivers/cpu" -I"../src/ASF/xmega/utils/preprocessor" -I"../src/ASF/xmega/utils" -I"../src/ASF/common/utils" -I"../src/ASF/common/services/sleepmgr" -I"../src/ASF/xmega/drivers/sleep" -I"../src/ASF/common/services/fifo" -I"../src/ASF/common/services/delay" -I"../src/ASF/common/services/gfx_mono" -I"../src/ASF/common/components/display/ssd1306" -I"../src/ASF/common/services/ioport" -I"../src/ASF/common/services/spi" -I"../src/ASF/xmega/drivers/usart" -I"../src/ASF/xmega/drivers/pmic" -I"../src/ASF/common/utils/stdio/stdio_serial" -I"../src/ASF/common/services/serial/xmega_usart" -I"../src/ASF/common/services/serial" -I"../src/ASF/xmega/drivers/qdec" -I"../src/ASF/xmega/drivers/tc45" -I"../src/ASF/xmega/drivers/rtc" -I"../src/ASF/xmega/drivers/adc" -I"../src/ASF/xmega/drivers/nvm" -I"../src/ASF/xmega/boards/xmega_e5_xplained" -I"../src/ASF/xmega/boards" -I"../src/ASF/common/boards" -I"../src/ASF/common/services/gpio" -I"../src/ASF/xmega/applications/xmega_e5_xplained_demo/atxmega32e5_xmega_e5_xplained" -I"../src/config"  -O1 -fdata-sections -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -g3 -Wall -mmcu=atxmega32e5 -B "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\XMEGAE_DFP\1.2.46\gcc\dev\atxmega32e5" -c -std=gnu99 -fno-strict-aliasing -Wstrict-prototypes -Wmissing-prototypes -Werror-implicit-function-declaration -Wpointer-arith -mrelax -MD -MP -MF "src/ASF/common/components/display/ssd1306/font.d" -MT"src/ASF/common/components/display/ssd1306/font.d" -MT"src/ASF/common/components/display/ssd1306/font.o"   -o "src/ASF/common/components/display/ssd1306/font.o" "../src/ASF/common/components/display/ssd1306/font.c"
        Finished building: ../src/ASF/common/components/display/ssd1306/font.c
    Done executing task "RunCompilerTask" -- FAILED.
Done building target "CoreBuild" in project "XMEGA_E5_XPLAINED_DEMO1.cproj" -- FAILED.
Done building project "XMEGA_E5_XPLAINED_DEMO1.cproj" -- FAILED.

Build FAILED.
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========

 

This build generated 157 errors.  You need to ask Microchip why that's happening.

 

Greg Muth

Portland, OR, US

Atmel Studio 7.0 on Windows 10

Xplained/Pro/Mini Boards mostly

 

 

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

I'm having this same problem.  This is a brand-new installation of Studio7, just downloaded yesterday.  I created a new example project, and opened "Demo for XMEGA-E5 Xplained - XMEGA-E5 Xplained". The source files are now open and everything looks good. The target chip is the Xmega32E5.

I click on "Build Solution" and get 163 errors.

What is going on here? Am I doing something wrong? I thought this would be the easy part.

 

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

This is because the previous version of the constant name defined in iox32e5.h has changed.
"ADC_SAMPNUM_2X_gc" has been changed to "ADC_CH_ SAMPNUM_2X_gc".

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

They changed the constant names?  How precious....  It appears that many others changed as well. 

The old iox32e5.h is located at Atmel/Sudio/7.0/toolchain/avr8/avr8-gnu-toolchain/avr/include/avr.  The new one is located at Atmel/Studio/7.0/packs/atmel/XMEGAE_DFP/1.2.51/include/avr.  What's the easiest way to direct the compiler to include the old one instead of the new one?

 

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

Just got this from Microchip.  It's a clear and concise explanation, with an easy fix:

 

The reason for getting build error in Atmel studio7.0 is that the ASF project is originally created in Atmel studio 6, and it requires the Device Pack file used in Atmel studio 6 to build successfully in Atmel studio 7.0
To use the old device pack files
Go to 
Project -> <project> Properties-> Packs 
Change the ‘Current version’ to 1.0.xx and build the project.

 

If It is not listing previous packs versions under Packs -> ‘Current version’ then Please install previous packs from 
Tools-> Device pack manager
Search for ‘XmegaE’
Under XMEGAE_DFP, check all the versions and click install
Restart Atmel studio7.0.
Now it should list all the pack files under packs ‘Current version’. now select the old pack as suggested above and build the project.

Regards,
Sadik

 **** Microchip Comments End ******

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

@dsherman, thanks for posting the solution!

Greg Muth

Portland, OR, US

Atmel Studio 7.0 on Windows 10

Xplained/Pro/Mini Boards mostly