

#Atmel studio 7 include library code#
I also tried to create a C library project with the ASF code and add this library in a CPP executable project.

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

Make: *** Error 1ĭone executing task "RunCompilerTask" - FAILED.ĭone building target "CoreBuild" in project "ASF_CPP.cppproj" - FAILED.ĭone building project "ASF_CPP.cppproj" - FAILED.

PMC->CKGR_MOR = SYS_CKGR_MOR_KEY_VALUE | SYS_BOARD_OSCOUNT |ĭ:\Eigene Datein\Documents\Atmel Studio\7.0\TestCPP\ASF_CPP\src\ASF\sam\utils\cmsis\sam4e\source\templates\system_sam4e.c(66,32): info: each undeclared identifier is reported only once for each function it appears in #define SYS_CKGR_MOR_KEY_VALUE CKGR_MOR_KEY_PASSWD/* Key to unlock MOR register */ĭ:\Eigene Datein\Documents\Atmel Studio\7.0\TestCPP\ASF_CPP\src\ASF\sam\utils\cmsis\sam4e\source\templates\system_sam4e.c(81,19): info: in expansion of macro 'SYS_CKGR_MOR_KEY_VALUE' src/ASF/sam/utils/cmsis/sam4e/source/templates/system_sam4e.c: In function 'SystemInit':ĭ:\Eigene Datein\Documents\Atmel Studio\7.0\TestCPP\ASF_CPP\src\ASF\sam\utils\cmsis\sam4e\source\templates\system_sam4e.c(66,32): error: 'CKGR_MOR_KEY_PASSWD' undeclared (first use in this function) "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-gcc.exe" -x c -mthumb -D_SAM4E8C_ -DDEBUG -Dscanf=iscanf -DBOARD=USER_BOARD -DARM_MATH_CM4=true -Dprintf=iprintf -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\SAM4E_DFP\1.1.30\ic.sam4e\include" -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\arm\cmsis\4.2.0\CMSIS\Include" -I"./common/applications/user_application/user_board/config" -I"./src/config" -I"./src/ASF/thirdparty/CMSIS/Lib/GCC" -I"./src/ASF/common/utils" -I"./src" -I"./src/ASF/sam/utils/fpu" -I"./src/ASF/sam/utils" -I"./src/ASF/sam/utils/preprocessor" -I"./src/ASF/sam/utils/cmsis/sam4e/include" -I"./src/ASF/common/boards" -I"./src/ASF/sam/utils/header_files" -I"./src/ASF/common/boards/user_board" -I"./src/ASF/thirdparty/CMSIS/Include" -I"./src/ASF/sam/utils/cmsis/sam4e/source/templates" -O1 -fdata-sections -ffunction-sections -mlong-calls -g3 -Wall -mcpu=cortex-m4 -c -pipe -fno-strict-aliasing -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror-implicit-function-declaration -Wpointer-arith -std=gnu99 -ffunction-sections -fdata-sections -Wchar-subscripts -Wcomment -Wformat=2 -Wimplicit-int -Wmain -Wparentheses -Wsequence-point -Wreturn-type -Wswitch -Wtrigraphs -Wunused -Wuninitialized -Wunknown-pragmas -Wfloat-equal -Wundef -Wshadow -Wbad-function-cast -Wwrite-strings -Wsign-compare -Waggregate-return -Wmissing-declarations -Wformat -Wmissing-format-attribute -Wno-deprecated-declarations -Wpacked -Wredundant-decls -Wnested-externs -Wlong-long -Wunreachable-code -Wcast-align -param max-inline-insns-single=500 -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -MD -MP -MF "src/ASF/sam/utils/cmsis/sam4e/source/templates/system_sam4e.d" -MT"src/ASF/sam/utils/cmsis/sam4e/source/templates/system_sam4e.d" -MT"src/ASF/sam/utils/cmsis/sam4e/source/templates/system_sam4e.o" -o "src/ASF/sam/utils/cmsis/sam4e/source/templates/system_sam4e.o" "./src/ASF/sam/utils/cmsis/sam4e/source/templates/system_sam4e.c" src/ASF/sam/utils/cmsis/sam4e/source/templates/system_sam4e.c Shell Utils Path C:\Program Files (x86)\Atmel\Studio\7.0\shellUtilsĬ:\Program Files (x86)\Atmel\Studio\7.0\shellUtils\make.exe allīuilding file. Target "CoreBuild" in file "C:\Program Files (x86)\Atmel\Studio\7.0\Vs\Compiler.targets" from project "D:\Eigene Datein\Documents\Atmel Studio\7.0\TestCPP\ASF_CPP\ASF_CPP.cppproj" (target "Build" depends on it): Target "PreBuildEvent" skipped, due to false condition ('$(PreBuildEvent)'!='') was evaluated as (''!=''). Project "ASF_CPP.cppproj" (default targets): Build started: Project: ASF_CPP, Configuration: Debug ARM. I will start a new project with a SAM4E8C in the Atmel Studio 7 with the ASF and C++.īut when I create a C++ executable Project and add an user board template then the build end into an error:
