Skip to content

Commit 2df9870

Browse files
committed
Add Empyrean Beta defs
1 parent 354605f commit 2df9870

File tree

10 files changed

+554
-6
lines changed

10 files changed

+554
-6
lines changed

arduino/etherkit-samd-1.0.0.zip

10.2 KB
Binary file not shown.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
SUBSYSTEM=="usb", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="73ea", ENV{ID_MM_DEVICE_IGNORE}="1"
2+
SUBSYSTEM=="usb", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="88ea", ENV{ID_MM_DEVICE_IGNORE}="1"
3+
SUBSYSTEM=="usb", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="73eb", ENV{ID_MM_DEVICE_IGNORE}="1"
4+
SUBSYSTEM=="usb", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="88eb", ENV{ID_MM_DEVICE_IGNORE}="1"

arduino/etherkit-samd-1.0.0/boards.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,33 @@ empyrean_alpha.build.vid=0x1209
4343
empyrean_alpha.build.pid=0x73ea
4444
empyrean_alpha.bootloader.tool=openocd
4545
empyrean_alpha.bootloader.file=empyrean_alpha/empyrean_alpha_sam_ba.bin
46+
47+
# Empyrean Beta
48+
# -------------
49+
empyrean_beta.name=Empyrean Beta
50+
empyrean_beta.vid.0=0x1209
51+
empyrean_beta.pid.0=0x73eb
52+
#empyrean_beta.vid.1=0x1209
53+
#empyrean_beta.pid.1=0x88eb
54+
55+
empyrean_beta.upload.tool=bossac
56+
empyrean_beta.upload.protocol=sam-ba
57+
empyrean_beta.upload.maximum_size=65536
58+
empyrean_beta.upload.use_1200bps_touch=true
59+
empyrean_beta.upload.wait_for_upload_port=true
60+
empyrean_beta.upload.native_usb=true
61+
empyrean_beta.build.mcu=cortex-m0plus
62+
empyrean_beta.build.f_cpu=48000000L
63+
empyrean_beta.build.usb_product="Empyrean Beta"
64+
empyrean_beta.build.usb_manufacturer="Etherkit"
65+
empyrean_beta.build.board=SAMD_ZERO
66+
empyrean_beta.build.core=arduino
67+
empyrean_beta.build.extra_flags=-D__SAMD21G16A__ {build.usb_flags}
68+
empyrean_beta.build.ldscript=linker_scripts/gcc/flash_with_bootloader.ld
69+
empyrean_beta.build.openocdscript=openocd_scripts/arduino_zero.cfg
70+
empyrean_beta.build.variant=empyrean_beta
71+
empyrean_beta.build.variant_system_lib=
72+
empyrean_beta.build.vid=0x1209
73+
empyrean_beta.build.pid=0x73eb
74+
empyrean_beta.bootloader.tool=openocd
75+
empyrean_beta.bootloader.file=empyrean_beta/empyrean_beta_sam_ba.bin
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#
2+
# Arduino Zero OpenOCD script.
3+
#
4+
# Copyright (c) 2014-2015 Arduino LLC. All right reserved.
5+
#
6+
# This library is free software; you can redistribute it and/or
7+
# modify it under the terms of the GNU Lesser General Public
8+
# License as published by the Free Software Foundation; either
9+
# version 2.1 of the License, or (at your option) any later version.
10+
#
11+
# This library is distributed in the hope that it will be useful,
12+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14+
# See the GNU Lesser General Public License for more details.
15+
#
16+
# You should have received a copy of the GNU Lesser General Public
17+
# License along with this library; if not, write to the Free Software
18+
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19+
#
20+
21+
# Define 'reset' command
22+
define reset
23+
24+
info reg
25+
26+
break main
27+
28+
# End of 'reset' command
29+
end
30+
31+
target remote | openocd -c "interface cmsis-dap" -c "set CHIPNAME at91samd21g18" -f target/at91samdXX.cfg -c "gdb_port pipe; log_output openocd.log"

arduino/etherkit-samd-1.0.0/variants/empyrean_alpha/linker_scripts/gcc/flash_without_bootloader.ld renamed to arduino/etherkit-samd-1.0.0/variants/empyrean_beta/linker_scripts/gcc/flash_with_bootloader.ld

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
*/
2626
MEMORY
2727
{
28-
FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x00040000
29-
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x00008000
28+
FLASH (rx) : ORIGIN = 0x00000000+0x2000, LENGTH = 0x00010000-0x2000 /* First 8KB used by bootloader */
29+
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x00002000
3030
}
3131

3232
/* Linker script to place sections and symbol values. Should be used together
@@ -58,7 +58,6 @@ MEMORY
5858
* __StackLimit
5959
* __StackTop
6060
* __stack
61-
* __ram_end__
6261
*/
6362
ENTRY(Reset_Handler)
6463

@@ -201,7 +200,7 @@ SECTIONS
201200

202201
/* Set stack top to end of RAM, and stack limit move down by
203202
* size of stack_dummy section */
204-
__StackTop = ORIGIN(RAM) + LENGTH(RAM) ;
203+
__StackTop = ORIGIN(RAM) + LENGTH(RAM);
205204
__StackLimit = __StackTop - SIZEOF(.stack_dummy);
206205
PROVIDE(__stack = __StackTop);
207206

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#
2+
# Arduino Zero OpenOCD script.
3+
#
4+
# Copyright (c) 2014-2015 Arduino LLC. All right reserved.
5+
#
6+
# This library is free software; you can redistribute it and/or
7+
# modify it under the terms of the GNU Lesser General Public
8+
# License as published by the Free Software Foundation; either
9+
# version 2.1 of the License, or (at your option) any later version.
10+
#
11+
# This library is distributed in the hope that it will be useful,
12+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14+
# See the GNU Lesser General Public License for more details.
15+
#
16+
# You should have received a copy of the GNU Lesser General Public
17+
# License along with this library; if not, write to the Free Software
18+
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19+
#
20+
21+
source [find interface/cmsis-dap.cfg]
22+
23+
# chip name
24+
set CHIPNAME at91samd21g18
25+
set ENDIAN little
26+
27+
# choose a port here
28+
set telnet_port 0
29+
30+
source [find target/at91samdXX.cfg]
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
Copyright (c) 2014-2015 Arduino LLC. All right reserved.
3+
4+
This library is free software; you can redistribute it and/or
5+
modify it under the terms of the GNU Lesser General Public
6+
License as published by the Free Software Foundation; either
7+
version 2.1 of the License, or (at your option) any later version.
8+
9+
This library is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12+
See the GNU Lesser General Public License for more details.
13+
14+
You should have received a copy of the GNU Lesser General Public
15+
License along with this library; if not, write to the Free Software
16+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17+
*/
18+
19+
// API compatibility
20+
#include "variant.h"
21+

0 commit comments

Comments
 (0)