Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Atmel/Microchip XPLAIN BOARD #5011

Closed
wants to merge 9 commits into from
2 changes: 1 addition & 1 deletion ports/samd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $(error Invalid BOARD specified: $(BOARD_DIR))
endif

include ../../py/mkenv.mk
include $(BOARD_DIR)/board.mk
include $(BOARD_DIR)/mpconfigboard.mk

# Qstr definitions (must come before including py.mk)
QSTR_DEFS = qstrdefsport.h
Expand Down
17 changes: 17 additions & 0 deletions ports/samd/boards/XPLAINED_SAMD21J18A/link.ld
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
GNU linker script for SAMD21J18A (256kByte, 32kByte SRAM, 64-Pins, default device)
*/

/* Specify the memory areas */
MEMORY
{
FLASH (rx) : ORIGIN = 0x00002000, LENGTH = 256K - 8K
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 32K
}

/* Top end of the stack, with room for double-tap variable */
_estack = ORIGIN(RAM) + LENGTH(RAM) - 8;
_sstack = _estack - 8K;

_sheap = _ebss;
_eheap = _sstack;
2 changes: 2 additions & 0 deletions ports/samd/boards/XPLAINED_SAMD21J18A/mpconfigboard.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#define MICROPY_HW_BOARD_NAME "SAMD21-XPLAINED-PRO"
#define MICROPY_HW_MCU_NAME "SAMD21J18A"
4 changes: 4 additions & 0 deletions ports/samd/boards/XPLAINED_SAMD21J18A/mpconfigboard.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
MCU_SERIES = SAMD21
CMSIS_MCU = SAMD21J18A
LD_FILES = $(BOARD_DIR)/link.ld sections.ld
TEXT0 = 0x2000