samd/boards: Add generic SAMD21x18 board definitions.

The definition uses the internal oscillator for clock and only internal
flash for the file system.

It works at SAMD21G18 and SAMD21E18 devices as well, only that fewer pins
are accessible.

Tested with a SAMD21E18, SAM21G18 and SAMD21J18 board.

Signed-off-by: robert-hh <robert@hammelrath.com>
This commit is contained in:
robert-hh 2025-01-23 13:34:47 +01:00 committed by Damien George
parent 44a7731669
commit 304467518f
5 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,16 @@
{
"deploy": [
"../deploy.md"
],
"docs": "",
"features": [
"USB"
],
"images": [
"generic_board.jpg"
],
"mcu": "samd21",
"vendor": "Microchip",
"product": "Generic SAMD21J18",
"thumbnail": ""
}

View file

@ -0,0 +1,4 @@
The following firmware should work on most boards with a SAMD21E18,
SAMD21G18 and SAMD21J18 MCU. It uses only the features built into
the MCU. Additional devices at the board like external flash
are not supported.

View file

@ -0,0 +1,4 @@
#define MICROPY_HW_BOARD_NAME "Generic SAMD21J18"
#define MICROPY_HW_MCU_NAME "SAMD21J18A"
#define MICROPY_HW_DFLL_USB_SYNC (1)

View file

@ -0,0 +1,4 @@
MCU_SERIES = SAMD21
CMSIS_MCU = SAMD21J18A
LD_FILES = boards/samd21x18a.ld sections.ld
TEXT0 = 0x2000

View file

@ -0,0 +1,10 @@
# The lines contain pairs of Pin name and Pin number.
# Pin names must be valid Python identifiers.
# Pin numbers have the form Pxnn, with x being A, B, C or D.
# Lines starting with # or empty lines are ignored.
USB_DM,PA24
USB_DP,PA25
SWCLK,PA30
SWDIO,PA31
1 # The lines contain pairs of Pin name and Pin number.
2 # Pin names must be valid Python identifiers.
3 # Pin numbers have the form Pxnn, with x being A, B, C or D.
4 # Lines starting with # or empty lines are ignored.
5 USB_DM,PA24
6 USB_DP,PA25
7 SWCLK,PA30
8 SWDIO,PA31