From 21c661c9d4578f9a35c61a83159a866165a99474 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Mon, 26 Mar 2012 19:27:45 +0200 Subject: [PATCH] [sam] fixed basic IDE compilation for sam3x --- hardware/arduino/sam/boards.txt | 43 +-- hardware/arduino/sam/platform.txt | 4 +- .../sam/system/libsam/build_gcc/Makefile | 4 +- .../arduino_due_x/libsam_sam3x8e_gcc_rel.a | Bin 0 -> 46024 bytes .../libsam_sam3x8e_gcc_rel.a.txt | 251 ++++++++++++++++++ .../sam/variants/arduino_due_x/variant.cpp | 6 +- 6 files changed, 281 insertions(+), 27 deletions(-) create mode 100644 hardware/arduino/sam/variants/arduino_due_x/libsam_sam3x8e_gcc_rel.a create mode 100644 hardware/arduino/sam/variants/arduino_due_x/libsam_sam3x8e_gcc_rel.a.txt diff --git a/hardware/arduino/sam/boards.txt b/hardware/arduino/sam/boards.txt index f550af5f4..f66b4fa5b 100644 --- a/hardware/arduino/sam/boards.txt +++ b/hardware/arduino/sam/boards.txt @@ -26,27 +26,28 @@ sam3u_ek.build.pins=sam3u_ek ############################################################## -arduino_due.name=Arduino DueU Dev. Ed. -arduino_due.upload.tool=bossac -arduino_due.upload.protocol=sam-ba -arduino_due.upload.maximum_size=49152 -arduino_due.build.mcu=cortex-m3 -arduino_due.build.f_cpu=96000000L -arduino_due.build.core=sam -arduino_due.build.extra_flags=-D__SAM3U4E__ -arduino_due.build.ldscript=linker_scripts/gcc/flash.ld -arduino_due.build.variant=arduino_due_u +arduino_due_u.name=Arduino DueU Dev. Ed. +arduino_due_u.upload.tool=bossac +arduino_due_u.upload.protocol=sam-ba +arduino_due_u.upload.maximum_size=49152 +arduino_due_u.build.mcu=cortex-m3 +arduino_due_u.build.f_cpu=96000000L +arduino_due_u.build.core=sam +arduino_due_u.build.extra_flags=-D__SAM3U4E__ +arduino_due_u.build.ldscript=linker_scripts/gcc/flash.ld +arduino_due_u.build.variant=arduino_due_u +arduino_due_u.build.variant_system_lib=libsam_sam3u4e_gcc_rel.a ############################################################## -arduino_due.name=Arduino DueX Dev. Ed. -arduino_due.upload.tool=bossac -arduino_due.upload.protocol=sam-ba -arduino_due.upload.maximum_size=49152 -arduino_due.build.mcu=cortex-m3 -arduino_due.build.f_cpu=96000000L -arduino_due.build.core=sam -arduino_due.build.extra_flags=-D__SAM3U4E__ -arduino_due.build.ldscript=linker_scripts/gcc/flash.ld -arduino_due.build.variant=arduino_due_x - +arduino_due_x.name=Arduino DueX Dev. Ed. +arduino_due_x.upload.tool=bossac +arduino_due_x.upload.protocol=sam-ba +arduino_due_x.upload.maximum_size=49152 +arduino_due_x.build.mcu=cortex-m3 +arduino_due_x.build.f_cpu=96000000L +arduino_due_x.build.core=sam +arduino_due_x.build.extra_flags=-D__SAM3X8E__ +arduino_due_x.build.ldscript=linker_scripts/gcc/flash.ld +arduino_due_x.build.variant=arduino_due_x +arduino_due_x.build.variant_system_lib=libsam_sam3x8e_gcc_rel.a diff --git a/hardware/arduino/sam/platform.txt b/hardware/arduino/sam/platform.txt index 86e659d2f..67be7739d 100644 --- a/hardware/arduino/sam/platform.txt +++ b/hardware/arduino/sam/platform.txt @@ -21,7 +21,7 @@ compiler.ldflags= compiler.size.cmd=arm-none-eabi-size compiler.define=-DARDUINO= -compiler.libsam.c.flags=-I{build.system.path}/libsam -I{build.system.path}/CMSIS/Include/ +compiler.libsam.c.flags=-I{build.system.path}/libsam -I{build.system.path}/CMSIS/CMSIS/Include/ -I{build.system.path}/CMSIS/Device/ATMEL/ # SAM3 compile patterns # --------------------- @@ -36,7 +36,7 @@ recipe.cpp.o.pattern={compiler.path}{compiler.cpp.cmd} {compiler.cpp.flags} -mcp recipe.ar.pattern={compiler.path}{compiler.ar.cmd} {compiler.ar.flags} {build.path}/{archive_file} {object_file} ## Combine gc-sections, archives, and objects -recipe.c.combine.pattern={compiler.path}{compiler.c.elf.cmd} {compiler.c.elf.flags} -mcpu={build.mcu} -T{build.variant.path}/{build.ldscript} -Wl,-Map,{build.path}/{build.project_name}.map -o {build.path}/{build.project_name}.elf -L{build.path} -lm -lgcc -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group {object_files} {build.variant.path}/libsam_sam3u4e_gcc_rel.a {build.path}/{archive_file} -Wl,--end-group +recipe.c.combine.pattern={compiler.path}{compiler.c.elf.cmd} {compiler.c.elf.flags} -mcpu={build.mcu} -T{build.variant.path}/{build.ldscript} -Wl,-Map,{build.path}/{build.project_name}.map -o {build.path}/{build.project_name}.elf -L{build.path} -lm -lgcc -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group {object_files} {build.variant.path}/{build.variant_system_lib} {build.path}/{archive_file} -Wl,--end-group ## Create eeprom recipe.objcopy.eep.pattern= diff --git a/hardware/arduino/sam/system/libsam/build_gcc/Makefile b/hardware/arduino/sam/system/libsam/build_gcc/Makefile index 0ff2be2a8..7084b404c 100644 --- a/hardware/arduino/sam/system/libsam/build_gcc/Makefile +++ b/hardware/arduino/sam/system/libsam/build_gcc/Makefile @@ -32,14 +32,14 @@ arduino_due_u: @echo --- @echo --- Making $@ @echo --- - @$(MAKE) CHIP=__SAM3U4E__ $(SUBMAKE_OPTIONS) OUTPUT_BIN=../../../variants/arduino_due -f sam3.mk + @$(MAKE) CHIP=__SAM3U4E__ $(SUBMAKE_OPTIONS) OUTPUT_BIN=../../../variants/arduino_due_u -f sam3.mk arduino_due_x: @echo --- @echo --- @echo --- Making $@ @echo --- - @$(MAKE) CHIP=__SAM3X8E__ $(SUBMAKE_OPTIONS) OUTPUT_BIN=../../../variants/arduino_due -f sam3.mk + @$(MAKE) CHIP=__SAM3X8E__ $(SUBMAKE_OPTIONS) OUTPUT_BIN=../../../variants/arduino_due_x -f sam3.mk .PHONY: libsam_sam3s4c_gcc_dbg.a libsam_sam3s4c_gcc_dbg.a: diff --git a/hardware/arduino/sam/variants/arduino_due_x/libsam_sam3x8e_gcc_rel.a b/hardware/arduino/sam/variants/arduino_due_x/libsam_sam3x8e_gcc_rel.a new file mode 100644 index 0000000000000000000000000000000000000000..8f070c9e10371b8cfeb5e00c777cc08f69813373 GIT binary patch literal 46024 zcmeHw3wT_`m1f=U*3+`}uxxB&pe4(WjE#{jVavfJt!`OQ+fpPM@*tnOEwz!bEHzTg z*en~wV`j)ClOYMo5CRi+K9b4IGKuYpCwL|V6P(v><{LR=zlEJ7qn(dgSmiMd2%?~T z!~TEWs(b5RwZa$Mic2;K zVY(yt3*mR^IU#;s_xn>q{JQReRw4ZE;U5ZNy3dD%`1j?y+B*B1hQ<>Ihm&n1>Ezhh zL@F&v?3x%JK9G{Zo@BZyd2n=Mq(9j_Gz=z9m3~XoejqlSOgJ%J$+4l-U~()mta;l; zQWG{K#C1-jH5MBkIW%qnuo1T70%13sWz*| zbhl8C+%PtjPDUpV9b)^dqIModj~N-cfsrA96Yn{i97*pT8cE6w zboa`JZXKN%b8z%>5AIYIncbRFkILp}7>_w&6q4b_;l$Vxp(4@ElQPVnc#eV#d;(KxloCbyBn{AB+CvYLv7>DLnA}ugUJDbI&#Ia-qVS(G^su5(G-1f4(#hc z+%$9)Z8s)ZgS|ujhx^(_`p1$-&}=Tr6(sAS|8NXrR$APUKzsKLCzFtOgOU4viE)l) z9$L?E;%HKm?DWAeb0iBvP6ndK(P%{MS3+Zw(Jmw-$<>|gPYxYrF%_XlW*A8CSYl)x zuM)fEa8k*0>YVIury}Ooslt%^!^r_v&!j>0Ku>RH7iwW(h%bmZ(9_u6YgDg|vl}w; zBSUEv-%fHs@gh!T*%x6K%NAgl+8zjOimV+ss0Im}&^FGYyzyvaXqZE|n^4=>KtfF? zHfPsF8Uxpu;%FQ1K1R9674BAm&F$2cjk>jE<6xJ`GUd z8s&SAqmL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/arduino/sam/variants/arduino_due_x/libsam_sam3x8e_gcc_rel.a.txt new file mode 100644 index 000000000..510f6c2e6 --- /dev/null +++ b/hardware/arduino/sam/variants/arduino_due_x/libsam_sam3x8e_gcc_rel.a.txt @@ -0,0 +1,251 @@ + +adc10_sam3u.o: + +adc12_sam3u.o: + +adc_sam3snxa.o: + +pio.o: +00000000 T PIO_Clear +00000000 T PIO_Configure +00000000 T PIO_DisableInterrupt +00000000 T PIO_Get +00000000 T PIO_GetOutputDataStatus +00000000 T PIO_PullUp +00000000 T PIO_Set +00000000 T PIO_SetDebounceFilter +00000000 T PIO_SetInput +00000000 T PIO_SetOutput +00000000 T PIO_SetPeripheral + +pmc.o: +00000000 T PMC_DisablePeripheral +00000000 T PMC_EnablePeripheral +00000000 T PMC_IsPeripheralEnabled +00000000 r __FUNCTION__.5784 +00000015 r __FUNCTION__.5788 +0000002b r __FUNCTION__.5792 + U __assert_func + +pwmc.o: +00000000 r C.9.6997 +00000000 t FindClockConfiguration +00000000 T PWMC_ConfigureChannel +00000000 T PWMC_ConfigureChannelExt +00000000 T PWMC_ConfigureClocks +00000000 T PWMC_ConfigureComparisonUnit +00000000 T PWMC_ConfigureEventLineMode +00000000 T PWMC_ConfigureSyncChannel +00000000 T PWMC_DisableChannel +00000000 T PWMC_DisableChannelIt +00000000 T PWMC_DisableIt +00000000 T PWMC_DisableOverrideOutput +00000000 T PWMC_EnableChannel +00000000 T PWMC_EnableChannelIt +00000000 T PWMC_EnableFaultProtection +00000000 T PWMC_EnableIt +00000000 T PWMC_EnableOverrideOutput +00000000 T PWMC_FaultClear +00000000 T PWMC_SetDeadTime +00000000 T PWMC_SetDutyCycle +00000000 T PWMC_SetFaultMode +00000000 T PWMC_SetFaultProtectionValue +00000000 T PWMC_SetOverrideValue +00000000 T PWMC_SetPeriod +00000000 T PWMC_SetSyncChannelUpdatePeriod +00000000 T PWMC_SetSyncChannelUpdateUnlock +00000000 T PWMC_WriteBuffer +0000002c r __FUNCTION__.5788 +00000043 r __FUNCTION__.5799 +00000059 r __FUNCTION__.5814 +00000072 r __FUNCTION__.5825 +00000087 r __FUNCTION__.5836 +00000099 r __FUNCTION__.5843 +000000aa r __FUNCTION__.5927 +000000c7 r __FUNCTION__.5933 + U __assert_func + +rtc.o: +00000000 T RTC_ClearSCCR +00000000 T RTC_DisableIt +00000000 T RTC_EnableIt +00000000 T RTC_GetDate +00000000 T RTC_GetHourMode +00000000 T RTC_GetSR +00000000 T RTC_GetTime +00000000 T RTC_SetDate +00000000 T RTC_SetDateAlarm +00000000 T RTC_SetHourMode +00000000 T RTC_SetTime +00000000 T RTC_SetTimeAlarm +00000000 r __FUNCTION__.5785 +00000010 r __FUNCTION__.5794 +0000001d r __FUNCTION__.5799 + U __assert_func + +rtt.o: +00000000 T RTT_EnableIT +00000000 T RTT_GetStatus +00000000 T RTT_GetTime +00000000 T RTT_SetAlarm +00000000 T RTT_SetPrescaler +00000000 r __FUNCTION__.5792 +0000000d r __FUNCTION__.5800 + U __assert_func + +spi.o: + U PMC_EnablePeripheral +00000000 T SPI_Configure +00000000 T SPI_ConfigureNPCS +00000000 T SPI_Disable +00000000 T SPI_DisableIt +00000000 T SPI_Enable +00000000 T SPI_EnableIt +00000000 T SPI_GetStatus +00000000 T SPI_IsFinished +00000000 T SPI_Read +00000000 T SPI_Write + +tc.o: +00000000 T TC_Configure +00000000 T TC_FindMckDivisor +00000000 T TC_Start +00000000 T TC_Stop +00000000 r __FUNCTION__.5787 +0000000d r __FUNCTION__.5793 +00000016 r __FUNCTION__.5799 + U __assert_func + +timetick.o: +00000000 T GetTickCount +00000000 T Sleep +00000000 T TimeTick_Configure +00000000 T TimeTick_Increment +00000000 T Wait +00000000 b _dwTickCount + +twi.o: +00000000 T TWI_ByteReceived +00000000 T TWI_ByteSent +00000000 T TWI_ConfigureMaster +00000000 T TWI_ConfigureSlave +00000000 T TWI_DisableIt +00000000 T TWI_EnableIt +00000000 T TWI_GetMaskedStatus +00000000 T TWI_GetStatus +00000000 T TWI_ReadByte +00000000 T TWI_SendSTOPCondition +00000000 T TWI_StartRead +00000000 T TWI_StartWrite +00000000 T TWI_Stop +00000000 T TWI_TransferComplete +00000000 T TWI_WriteByte +00000000 r __FUNCTION__.6370 +00000014 r __FUNCTION__.6385 +00000027 r __FUNCTION__.6389 +00000030 r __FUNCTION__.6396 +0000003e r __FUNCTION__.6400 +0000004b r __FUNCTION__.6405 +00000059 r __FUNCTION__.6413 +00000068 r __FUNCTION__.6427 +00000075 r __FUNCTION__.6432 +00000083 r __FUNCTION__.6436 +00000091 r __FUNCTION__.6441 +000000a5 r __FUNCTION__.6445 + U __assert_func + +usart.o: +00000000 T USART_Configure +00000000 T USART_DisableIt +00000000 T USART_EnableIt +00000000 T USART_GetChar +00000000 T USART_GetStatus +00000000 T USART_IsDataAvailable +00000000 T USART_IsRxReady +00000000 T USART_PutChar +00000000 T USART_Read +00000000 T USART_ReadBuffer +00000000 T USART_SetIrdaFilter +00000000 T USART_SetReceiverEnabled +00000000 T USART_SetTransmitterEnabled +00000000 T USART_Write +00000000 T USART_WriteBuffer +00000000 r __FUNCTION__.6169 + U __assert_func + +wdt.o: +00000000 T WDT_Disable +00000000 T WDT_Enable +00000000 T WDT_GetPeriod +00000000 T WDT_GetStatus +00000000 T WDT_Restart + +system_sam3xa.o: +00000000 D SystemCoreClock +00000000 T SystemCoreClockUpdate +00000000 T SystemInit +00000000 T system_init_flash + +startup_sam3xa.o: +00000000 W ADC_Handler +00000000 W BusFault_Handler +00000000 W CAN0_Handler +00000000 W CAN1_Handler +00000000 W DACC_Handler +00000000 W DMAC_Handler +00000000 W DebugMon_Handler +00000000 T Dummy_Handler +00000000 W EFC0_Handler +00000000 W EFC1_Handler +00000000 W EMAC_Handler +00000000 W HSMCI_Handler +00000000 W HardFault_Handler +00000000 W MemManage_Handler +00000000 W NMI_Handler +00000000 W PIOA_Handler +00000000 W PIOB_Handler +00000000 W PIOC_Handler +00000000 W PIOD_Handler +00000000 W PMC_Handler +00000000 W PWM_Handler +00000000 W PendSV_Handler +00000000 W RSTC_Handler +00000000 W RTC_Handler +00000000 W RTT_Handler +00000000 T Reset_Handler +00000000 W SMC_Handler +00000000 W SPI0_Handler +00000000 W SSC_Handler +00000000 W SUPC_Handler +00000000 W SVC_Handler +00000000 W SysTick_Handler +00000000 W TC0_Handler +00000000 W TC1_Handler +00000000 W TC2_Handler +00000000 W TC3_Handler +00000000 W TC4_Handler +00000000 W TC5_Handler +00000000 W TC6_Handler +00000000 W TC7_Handler +00000000 W TC8_Handler +00000000 W TRNG_Handler +00000000 W TWI0_Handler +00000000 W TWI1_Handler +00000000 W UART_Handler +00000000 W UOTGHS_Handler +00000000 W USART0_Handler +00000000 W USART1_Handler +00000000 W USART2_Handler +00000000 W USART3_Handler +00000000 W UsageFault_Handler +00000000 W WDT_Handler + U __libc_init_array + U _erelocate + U _estack + U _etext + U _ezero + U _sfixed + U _srelocate + U _szero +00000000 R exception_table + U main diff --git a/hardware/arduino/sam/variants/arduino_due_x/variant.cpp b/hardware/arduino/sam/variants/arduino_due_x/variant.cpp index e998796e3..42638c8c8 100644 --- a/hardware/arduino/sam/variants/arduino_due_x/variant.cpp +++ b/hardware/arduino/sam/variants/arduino_due_x/variant.cpp @@ -358,18 +358,20 @@ extern void init( void ) g_APinDescription[PINS_USART2].ulPin, g_APinDescription[PINS_USART2].ulPinConfiguration); + /* // Initialize 10bit Analog Controller PMC_EnablePeripheral( ID_ADC ) ; adc_init( ADC, SystemCoreClock, ADC_FREQ_MAX, ADC_STARTUP ) ; // adc_configure_timing( ADC, 15 ) ; adc_configure_timing(ADC, 0, ADC_SETTLING_TIME_3, 1); // adc_configure_trigger( ADC, ADC_TRIG_SW ) ; - adc_configure_trigger(ADC, ADC_TRIG_SW, 0); /* Disable hardware trigger. */ - adc_disable_interrupt( ADC, 0xFFFFFFFF ) ; /* Disable all adc interrupt. */ + adc_configure_trigger(ADC, ADC_TRIG_SW, 0); // Disable hardware trigger. + adc_disable_interrupt( ADC, 0xFFFFFFFF ) ; // Disable all adc interrupt. adc_disable_channel( ADC, ADC_ALL_CHANNEL ) ; // Initialize analogOutput module analogOutputInit(); + */ } #ifdef __cplusplus }