machine/atsamd51: add support for ATSAMD51 processor using Adafruit ItsyBitsy-M4 board

Signed-off-by: Ron Evans <ron@hybridgroup.com>
This commit is contained in:
Ron Evans
2019-06-06 12:03:58 +02:00
committed by Ayke
parent bc41cc688f
commit 02c4020228
9 changed files with 3054 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
MEMORY
{
FLASH_TEXT (rw) : ORIGIN = 0x00000000+0x4000, LENGTH = 0x00080000-0x4000 /* First 16KB used by bootloader */
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 0x00030000
}
_stack_size = 4K;
INCLUDE "targets/arm.ld"
+15
View File
@@ -0,0 +1,15 @@
{
"inherits": ["cortex-m"],
"llvm-target": "armv7em-none-eabi",
"build-tags": ["atsamd51g19", "atsamd51", "sam"],
"cflags": [
"--target=armv7em-none-eabi",
"-Qunused-arguments"
],
"ldflags": [
"-T", "targets/atsamd51.ld"
],
"extra-files": [
"src/device/sam/atsamd51g19a.s"
]
}
+5
View File
@@ -0,0 +1,5 @@
{
"inherits": ["atsamd51g19a"],
"build-tags": ["sam", "atsamd51g19a", "itsybitsy_m4"],
"flash": "bossac -d -i -e -w -v -R --offset=0x4000 {bin}"
}