Problems compiling Arduino core in AS7 for Arduino Due(SAM3X8E)

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello everybody! Long time lurker but first time participant in this community.

 

I've been trying to migrate some arduino(Ver 1.8.8) source code for the Due(board lib ver. 1.6.11) into AS7(Ver. 7.0.1931) for the debug feature.

 

From reading the forum(ref below), I knew that this would not be possible with the arduino import tool in AS7, at least not automatically.

 

(https://www.avrfreaks.net/forum/solved-as7-arduino-libraries-how),  https://www.avrfreaks.net/forum/arduino-core-will-not-compile-arduino-due-as7

 

I started with an arduino blink project and imported that into AS7 using the import tool and I get a solution with an ArduinoCore and my sketch. I fixed all the necessary includes to the three compilers to get the ArduinoCore to compile (fixing references to libsam, chip.h, CMSIS) but I am now getting a very peculiar error that I cant seem to fix!

 

I have undefined references to the UDD_Init, UDD_SetStack,...  functions from USBCore.cpp. I click on the error and I get to the implementation USB_device.h, uotghs_device.c.

 

Does this mean that these functions are defined in two places? or that the linker cant find them in the USB_device.h, uotghs_device.c files?

 

I am completely stumped here. I have heard of people importing the arduino core for the due successfully in the past, I just cant find much documentation on the process.

 

Attached is my solution with CMSIS removed because it is so large!

 

 

Below are the errors I get, my output window and my makefile(because it seems to be the stage it hangs on:

 

Severity	Code	Description	Project	File	Line	Source
Error		undefined reference to `UDD_SetAddress'	SAMBlink	C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp	749	Build
Error		undefined reference to `pmc_enable_periph_clk'	SAMBlink	C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\UARTClass.cpp	53	Build
Error		undefined reference to `SystemCoreClock'	SAMBlink	C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\UARTClass.cpp	79	Build
Error		undefined reference to `pmc_disable_periph_clk'	SAMBlink	C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\UARTClass.cpp	93	Build
Error		undefined reference to `UDD_FifoByteCount'	SAMBlink	C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp	135	Build
Error		undefined reference to `g_interrupt_enabled'	SAMBlink	C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp	136	Build
Error		undefined reference to `UDD_FifoByteCount'	SAMBlink	C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp	146	Build
Error		undefined reference to `UDD_Recv8'	SAMBlink	C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp	151	Build
Error		undefined reference to `UDD_FifoByteCount'	SAMBlink	C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp	152	Build
Error		undefined reference to `UDD_ReleaseRX'	SAMBlink	C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp	153	Build
Error		undefined reference to `g_interrupt_enabled'	SAMBlink	C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp	153	Build
Error		undefined reference to `UDD_Send'	SAMBlink	C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp	203	Build
Error		undefined reference to `UDD_Send'	SAMBlink	C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp	234	Build
Error		undefined reference to `UDD_WaitOUT'	SAMBlink	C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp	272	Build
Error		undefined reference to `UDD_Recv'	SAMBlink	C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp	273	Build
Error		undefined reference to `UDD_ClearOUT'	SAMBlink	C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp	274	Build
Error		undefined reference to `UDD_InitEP'	SAMBlink	C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp	614	Build
Error		undefined reference to `UDD_ReceivedSetupInt'	SAMBlink	C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp	642	Build
Error		undefined reference to `UDD_Recv'	SAMBlink	C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp	648	Build
Error		undefined reference to `UDD_ClearSetupInt'	SAMBlink	C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp	649	Build
Error		undefined reference to `UDD_WaitIN'	SAMBlink	C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp	655	Build
Error		undefined reference to `UDD_ClearIN'	SAMBlink	C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp	660	Build
Error		undefined reference to `UDD_Send8'	SAMBlink	C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp	689	Build
Error		undefined reference to `UDD_Send8'	SAMBlink	C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp	720	Build
Error		undefined reference to `UDD_Send8'	SAMBlink	C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp	727	Build
Error		undefined reference to `UDD_WaitIN'	SAMBlink	C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp	748	Build
Error		undefined reference to `UDD_Send8'	SAMBlink	C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp	764	Build
Error		undefined reference to `UDD_InitEndpoints'	SAMBlink	C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp	776	Build
Error		undefined reference to `UDD_WaitIN'	SAMBlink	C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp	806	Build
Error		undefined reference to `UDD_ClearIN'	SAMBlink	C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp	815	Build
Error		undefined reference to `UDD_Stall'	SAMBlink	C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp	820	Build
Error		undefined reference to `UDD_FifoByteCount'	SAMBlink	C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp	827	Build
Error		undefined reference to `UDD_ReleaseTX'	SAMBlink	C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp	828	Build
Error		undefined reference to `UDD_SetStack'	SAMBlink	C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp	850	Build
Error		undefined reference to `UDD_Init'	SAMBlink	C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp	852	Build
Error		recipe for target 'SAMBlink.elf' failed	SAMBlink	C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\SAMBlink\Debug\Makefile	113	Build
Error		ld returned 1 exit status	SAMBlink	collect2.exe	0	Build
------ Build started: Project: ArduinoCore, Configuration: Debug ARM ------
Build started.
Project "ArduinoCore.cppproj" (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 "C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\ArduinoCore.cppproj" (target "Build" depends on it):
	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 12 --output-sync 
		make: Nothing to be done for 'all'.
	Done executing task "RunCompilerTask".
	Task "RunOutputFileVerifyTask"
	Done executing task "RunOutputFileVerifyTask".
Done building target "CoreBuild" in project "ArduinoCore.cppproj".
Target "PostBuildEvent" skipped, due to false condition; ('$(PostBuildEvent)' != '') was evaluated as ('' != '').
Target "Build" in file "C:\Program Files (x86)\Atmel\Studio\7.0\Vs\Avr.common.targets" from project "C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\ArduinoCore.cppproj" (entry point):
Done building target "Build" in project "ArduinoCore.cppproj".
Done building project "ArduinoCore.cppproj".

Build succeeded.
------ Build started: Project: SAMBlink, Configuration: Debug ARM ------
Build started.
Project "SAMBlink.cppproj" (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 "C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\SAMBlink\SAMBlink.cppproj" (target "Build" depends on it):
	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 12 --output-sync 
		Building target: SAMBlink.elf
		Invoking: ARM/GNU Linker : 6.3.1
		C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\Debug\libArduinoCore.a(USBCore.o): In function `USBD_Available(unsigned long)':
C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp(135,1): error: undefined reference to `UDD_FifoByteCount'
C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp(136,1): error: undefined reference to `g_interrupt_enabled'
		C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\Debug\libArduinoCore.a(USBCore.o): In function `USBD_Recv(unsigned long, void*, unsigned long)':
C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp(146,1): error: undefined reference to `UDD_FifoByteCount'
C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp(151,1): error: undefined reference to `UDD_Recv8'
C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp(152,1): error: undefined reference to `UDD_FifoByteCount'
C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp(153,1): error: undefined reference to `UDD_ReleaseRX'
C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp(153,1): error: undefined reference to `g_interrupt_enabled'
		C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\Debug\libArduinoCore.a(USBCore.o): In function `USBD_Send(unsigned long, void const*, unsigned long)':
C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp(203,1): error: undefined reference to `UDD_Send'
		C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\Debug\libArduinoCore.a(USBCore.o): In function `USBD_SendControl(unsigned char, void const*, unsigned long)':
		"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-g++.exe" -o SAMBlink.elf  Sketch.o   -mthumb -Wl,-Map="SAMBlink.map" --specs=nano.specs --specs=nosys.specs -Wl,--start-group -lm -lArduinoCore -lArduinoCore  -Wl,--end-group -L"..\linker_scripts\linker_scripts\gcc" -L"C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\Debug"  -Wl,--gc-sections -mcpu=cortex-m3 -Tflash.ld -Wl,--cref -Os -Wl,--check-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align  
C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\SAMBlink\Debug\Makefile(113,1): error: recipe for target 'SAMBlink.elf' failed
C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp(234,1): error: undefined reference to `UDD_Send'
		C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\Debug\libArduinoCore.a(USBCore.o): In function `USBD_RecvControl(void*, unsigned long)':
C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp(272,1): error: undefined reference to `UDD_WaitOUT'
C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp(273,1): error: undefined reference to `UDD_Recv'
C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp(274,1): error: undefined reference to `UDD_ClearOUT'
		C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\Debug\libArduinoCore.a(USBCore.o): In function `USBD_Flush(unsigned long)':
C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp(827,1): error: undefined reference to `UDD_FifoByteCount'
C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp(828,1): error: undefined reference to `UDD_ReleaseTX'
		C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\Debug\libArduinoCore.a(USBCore.o): In function `USBDevice_::USBDevice_()':
C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp(850,1): error: undefined reference to `UDD_SetStack'
C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp(852,1): error: undefined reference to `UDD_Init'
		C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\Debug\libArduinoCore.a(USBCore.o): In function `USB_ISR()':
C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp(614,1): error: undefined reference to `UDD_InitEP'
C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp(642,1): error: undefined reference to `UDD_ReceivedSetupInt'
C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp(648,1): error: undefined reference to `UDD_Recv'
C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp(649,1): error: undefined reference to `UDD_ClearSetupInt'
C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp(655,1): error: undefined reference to `UDD_WaitIN'
C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp(660,1): error: undefined reference to `UDD_ClearIN'
C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp(689,1): error: undefined reference to `UDD_Send8'
C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp(720,1): error: undefined reference to `UDD_Send8'
C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp(727,1): error: undefined reference to `UDD_Send8'
C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp(748,1): error: undefined reference to `UDD_WaitIN'
C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp(749,1): error: undefined reference to `UDD_SetAddress'
C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp(815,1): error: undefined reference to `UDD_ClearIN'
C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp(820,1): error: undefined reference to `UDD_Stall'
C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp(764,1): error: undefined reference to `UDD_Send8'
C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp(776,1): error: undefined reference to `UDD_InitEndpoints'
C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\USB\USBCore.cpp(806,1): error: undefined reference to `UDD_WaitIN'
		C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\Debug\libArduinoCore.a(UARTClass.o): In function `UARTClass::end()':
C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\UARTClass.cpp(93,1): error: undefined reference to `pmc_disable_periph_clk'
		C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\Debug\libArduinoCore.a(UARTClass.o): In function `UARTClass::init(unsigned long, unsigned long)':
C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\UARTClass.cpp(53,1): error: undefined reference to `pmc_enable_periph_clk'
C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\src\core\UARTClass.cpp(79,1): error: undefined reference to `SystemCoreClock'
collect2.exe(0,0): error: ld returned 1 exit status
		make: *** [SAMBlink.elf] Error 1
		The command exited with code 2.
	Done executing task "RunCompilerTask" -- FAILED.
Done building target "CoreBuild" in project "SAMBlink.cppproj" -- FAILED.
Done building project "SAMBlink.cppproj" -- FAILED.

Build FAILED.
========== Build: 1 succeeded or up-to-date, 1 failed, 0 skipped ==========
################################################################################
# Automatically-generated file. Do not edit!
################################################################################

SHELL := cmd.exe
RM := rm -rf

USER_OBJS :=

LIBS := 
PROJ := 

O_SRCS := 
C_SRCS := 
S_SRCS := 
S_UPPER_SRCS := 
OBJ_SRCS := 
ASM_SRCS := 
PREPROCESSING_SRCS := 
OBJS := 
OBJS_AS_ARGS := 
C_DEPS := 
C_DEPS_AS_ARGS := 
EXECUTABLES := 
OUTPUT_FILE_PATH :=
OUTPUT_FILE_PATH_AS_ARGS :=
AVR_APP_PATH :=$$$AVR_APP_PATH$$$
QUOTE := "
ADDITIONAL_DEPENDENCIES:=
OUTPUT_FILE_DEP:=
LIB_DEP:=
LINKER_SCRIPT_DEP:=

# Every subdirectory with source files must be described here
SUBDIRS :=  \
../linker_scripts/ \
../linker_scripts/linker_scripts/ \
../linker_scripts/linker_scripts/gcc/


# Add inputs and outputs from these tool invocations to the build variables 
C_SRCS +=  \
../Sketch.cpp


PREPROCESSING_SRCS += 


ASM_SRCS += 


OBJS +=  \
Sketch.o

OBJS_AS_ARGS +=  \
Sketch.o

C_DEPS +=  \
Sketch.d

C_DEPS_AS_ARGS +=  \
Sketch.d

OUTPUT_FILE_PATH +=SAMBlink.elf

OUTPUT_FILE_PATH_AS_ARGS +=SAMBlink.elf

ADDITIONAL_DEPENDENCIES:=

OUTPUT_FILE_DEP:= ./makedep.mk

LIB_DEP+=  \
C:/Users/Francisco/Documents/Atmel\ Studio/7.0/BLINKTEST2/BLINKTEST2/ArduinoCore/Debug/libArduinoCore.a \
C:/Users/Francisco/Documents/Atmel\ Studio/7.0/BLINKTEST2/BLINKTEST2/ArduinoCore/Debug/libArduinoCore.a

LINKER_SCRIPT_DEP+=  \
../linker_scripts/linker_scripts/gcc/flash.ld \
../linker_scripts/linker_scripts/gcc/sram.ld


# AVR32/GNU C Compiler
./Sketch.o: .././Sketch.cpp
	@echo Building file: $<
	@echo Invoking: ARM/GNU C Compiler : 6.3.1
	$(QUOTE)C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-g++.exe$(QUOTE) -mthumb -D__SAM3X8E__ -DDEBUG -DF_CPU=84000000L -DARDUINO=10808 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSB_PRODUCT="\"Arduino Due\"" -DUSB_MANUFACTURER="\"Arduino LLC\"" -DUSBCON  -I"..\\..\ArduinoCore\include\core" -I"..\\..\ArduinoCore\include\variants" -I"..\\..\ArduinoCore\include\core\avr" -I"..\\..\ArduinoCore\include\core\USB" -I"../../ArduinoCore/include/system/libsam" -I"../../ArduinoCore/include/system/CMSIS/CMSIS/Include" -I"../../ArduinoCore/include/system/CMSIS/Device/ATMEL" -I"../../ArduinoCore/include/system/libsam/include" -I"../../ArduinoCore/include/system/libsam/source"  -Os -fno-threadsafe-statics -fno-exceptions -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -g3 -w -mcpu=cortex-m3 -c -std=gnu++11 --param max-inline-insns-single=500 -nostdlib -MD -MP -MF "$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -MT"$(@:%.o=%.o)"   -o "$@" "$<" 
	@echo Finished building: $<
	




# AVR32/GNU Preprocessing Assembler



# AVR32/GNU Assembler




ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
endif

# Add inputs and outputs from these tool invocations to the build variables 

# All Target
all: $(OUTPUT_FILE_PATH) $(ADDITIONAL_DEPENDENCIES)

$(OUTPUT_FILE_PATH): $(OBJS) $(USER_OBJS) $(OUTPUT_FILE_DEP) $(LIB_DEP) $(LINKER_SCRIPT_DEP)
	@echo Building target: $@
	@echo Invoking: ARM/GNU Linker : 6.3.1
	$(QUOTE)C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-g++.exe$(QUOTE) -o$(OUTPUT_FILE_PATH_AS_ARGS) $(OBJS_AS_ARGS) $(USER_OBJS) $(LIBS) -mthumb -Wl,-Map="SAMBlink.map" --specs=nano.specs --specs=nosys.specs -Wl,--start-group -lm -lArduinoCore -lArduinoCore  -Wl,--end-group -L"..\linker_scripts\linker_scripts\gcc" -L"C:\Users\Francisco\Documents\Atmel Studio\7.0\BLINKTEST2\BLINKTEST2\ArduinoCore\Debug"  -Wl,--gc-sections -mcpu=cortex-m3 -Tflash.ld -Wl,--cref -Os -Wl,--check-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align  
	@echo Finished building target: $@
	"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-objcopy.exe" -O binary "SAMBlink.elf" "SAMBlink.bin"
	"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-objcopy.exe" -O ihex -R .eeprom -R .fuse -R .lock -R .signature  "SAMBlink.elf" "SAMBlink.hex"
	"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-objcopy.exe" -j .eeprom --set-section-flags=.eeprom=alloc,load --change-section-lma .eeprom=0 --no-change-warnings -O binary "SAMBlink.elf" "SAMBlink.eep" || exit 0
	"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-objdump.exe" -h -S "SAMBlink.elf" > "SAMBlink.lss"
	"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-objcopy.exe" -O srec -R .eeprom -R .fuse -R .lock -R .signature  "SAMBlink.elf" "SAMBlink.srec"
	"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-size.exe" "SAMBlink.elf"
	
	





# Other Targets
clean:
	-$(RM) $(OBJS_AS_ARGS) $(EXECUTABLES)  
	-$(RM) $(C_DEPS_AS_ARGS)   
	rm -rf "SAMBlink.elf" "SAMBlink.a" "SAMBlink.hex" "SAMBlink.bin" "SAMBlink.lss" "SAMBlink.eep" "SAMBlink.map" "SAMBlink.srec"
	

 

Attachment(s):