From ad2824df8bb947c420b0bd4722378eed46981934 Mon Sep 17 00:00:00 2001 From: hathach Date: Sat, 28 Mar 2020 22:25:07 +0700 Subject: [PATCH] add ENTRY(Reset_Handler) to linker of samd21 and samd51 board fix #303 --- hw/bsp/circuitplayground_express/samd21g18a_flash.ld | 2 ++ hw/bsp/feather_m0_express/samd21g18a_flash.ld | 2 ++ hw/bsp/feather_m4_express/samd51g19a_flash.ld | 2 ++ hw/bsp/itsybitsy_m0/samd21g18a_flash.ld | 2 ++ hw/bsp/itsybitsy_m4/samd51g19a_flash.ld | 2 ++ hw/bsp/metro_m0_express/samd21g18a_flash.ld | 2 ++ hw/bsp/metro_m4_express/samd51g19a_flash.ld | 2 ++ hw/bsp/seeeduino_xiao/samd21g18a_flash.ld | 3 +-- 8 files changed, 15 insertions(+), 2 deletions(-) diff --git a/hw/bsp/circuitplayground_express/samd21g18a_flash.ld b/hw/bsp/circuitplayground_express/samd21g18a_flash.ld index 7fc42171b..f0c93340c 100644 --- a/hw/bsp/circuitplayground_express/samd21g18a_flash.ld +++ b/hw/bsp/circuitplayground_express/samd21g18a_flash.ld @@ -42,6 +42,8 @@ MEMORY /* The stack size used by the application. NOTE: you need to adjust according to your application. */ STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : DEFINED(__stack_size__) ? __stack_size__ : 0x2000; +ENTRY(Reset_Handler) + /* Section Definitions */ SECTIONS { diff --git a/hw/bsp/feather_m0_express/samd21g18a_flash.ld b/hw/bsp/feather_m0_express/samd21g18a_flash.ld index 7fc42171b..f0c93340c 100644 --- a/hw/bsp/feather_m0_express/samd21g18a_flash.ld +++ b/hw/bsp/feather_m0_express/samd21g18a_flash.ld @@ -42,6 +42,8 @@ MEMORY /* The stack size used by the application. NOTE: you need to adjust according to your application. */ STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : DEFINED(__stack_size__) ? __stack_size__ : 0x2000; +ENTRY(Reset_Handler) + /* Section Definitions */ SECTIONS { diff --git a/hw/bsp/feather_m4_express/samd51g19a_flash.ld b/hw/bsp/feather_m4_express/samd51g19a_flash.ld index cf5db3800..f1a021d75 100644 --- a/hw/bsp/feather_m4_express/samd51g19a_flash.ld +++ b/hw/bsp/feather_m4_express/samd51g19a_flash.ld @@ -44,6 +44,8 @@ MEMORY /* The stack size used by the application. NOTE: you need to adjust according to your application. */ STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : DEFINED(__stack_size__) ? __stack_size__ : 0xC000; +ENTRY(Reset_Handler) + /* Section Definitions */ SECTIONS { diff --git a/hw/bsp/itsybitsy_m0/samd21g18a_flash.ld b/hw/bsp/itsybitsy_m0/samd21g18a_flash.ld index 7fc42171b..f0c93340c 100644 --- a/hw/bsp/itsybitsy_m0/samd21g18a_flash.ld +++ b/hw/bsp/itsybitsy_m0/samd21g18a_flash.ld @@ -42,6 +42,8 @@ MEMORY /* The stack size used by the application. NOTE: you need to adjust according to your application. */ STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : DEFINED(__stack_size__) ? __stack_size__ : 0x2000; +ENTRY(Reset_Handler) + /* Section Definitions */ SECTIONS { diff --git a/hw/bsp/itsybitsy_m4/samd51g19a_flash.ld b/hw/bsp/itsybitsy_m4/samd51g19a_flash.ld index cf5db3800..f1a021d75 100644 --- a/hw/bsp/itsybitsy_m4/samd51g19a_flash.ld +++ b/hw/bsp/itsybitsy_m4/samd51g19a_flash.ld @@ -44,6 +44,8 @@ MEMORY /* The stack size used by the application. NOTE: you need to adjust according to your application. */ STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : DEFINED(__stack_size__) ? __stack_size__ : 0xC000; +ENTRY(Reset_Handler) + /* Section Definitions */ SECTIONS { diff --git a/hw/bsp/metro_m0_express/samd21g18a_flash.ld b/hw/bsp/metro_m0_express/samd21g18a_flash.ld index 7fc42171b..f0c93340c 100644 --- a/hw/bsp/metro_m0_express/samd21g18a_flash.ld +++ b/hw/bsp/metro_m0_express/samd21g18a_flash.ld @@ -42,6 +42,8 @@ MEMORY /* The stack size used by the application. NOTE: you need to adjust according to your application. */ STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : DEFINED(__stack_size__) ? __stack_size__ : 0x2000; +ENTRY(Reset_Handler) + /* Section Definitions */ SECTIONS { diff --git a/hw/bsp/metro_m4_express/samd51g19a_flash.ld b/hw/bsp/metro_m4_express/samd51g19a_flash.ld index cf5db3800..f1a021d75 100644 --- a/hw/bsp/metro_m4_express/samd51g19a_flash.ld +++ b/hw/bsp/metro_m4_express/samd51g19a_flash.ld @@ -44,6 +44,8 @@ MEMORY /* The stack size used by the application. NOTE: you need to adjust according to your application. */ STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : DEFINED(__stack_size__) ? __stack_size__ : 0xC000; +ENTRY(Reset_Handler) + /* Section Definitions */ SECTIONS { diff --git a/hw/bsp/seeeduino_xiao/samd21g18a_flash.ld b/hw/bsp/seeeduino_xiao/samd21g18a_flash.ld index bae38a881..cf11c4c35 100644 --- a/hw/bsp/seeeduino_xiao/samd21g18a_flash.ld +++ b/hw/bsp/seeeduino_xiao/samd21g18a_flash.ld @@ -52,8 +52,7 @@ SECTIONS . = ALIGN(4); _sfixed = .; KEEP(*(.vectors .vectors.*)) - *(.text*) - *(.gnu.linkonce.t.*) + *(.text .text.* .gnu.linkonce.t.*) *(.glue_7t) *(.glue_7) *(.rodata .rodata* .gnu.linkonce.r.*) *(.ARM.extab* .gnu.linkonce.armextab.*)