From 46244f8879af62b6ba24f9cb8604921fcbe2b9d1 Mon Sep 17 00:00:00 2001 From: thetazero Date: Mon, 6 Feb 2023 13:49:38 -0500 Subject: [PATCH] samd: Add the Pycubed-Mini V4 board. --- ports/samd/boards/PYCUBED_MINI_V04/board.json | 20 ++++++++ .../boards/PYCUBED_MINI_V04/mpconfigboard.h | 3 ++ .../boards/PYCUBED_MINI_V04/mpconfigboard.mk | 8 ++++ ports/samd/boards/PYCUBED_MINI_V04/pins.csv | 46 +++++++++++++++++++ 4 files changed, 77 insertions(+) create mode 100644 ports/samd/boards/PYCUBED_MINI_V04/board.json create mode 100644 ports/samd/boards/PYCUBED_MINI_V04/mpconfigboard.h create mode 100644 ports/samd/boards/PYCUBED_MINI_V04/mpconfigboard.mk create mode 100644 ports/samd/boards/PYCUBED_MINI_V04/pins.csv diff --git a/ports/samd/boards/PYCUBED_MINI_V04/board.json b/ports/samd/boards/PYCUBED_MINI_V04/board.json new file mode 100644 index 000000000000..03480f43ec67 --- /dev/null +++ b/ports/samd/boards/PYCUBED_MINI_V04/board.json @@ -0,0 +1,20 @@ +{ + "deploy": [ + "../deploy.md" + ], + "docs": "https://pocketqube.readthedocs.io/en/latest/", + "features": [ + "Space Ready", + "Micro USB", + "RGB LED", + "SPI Flash" + ], + "images": [ + "" + ], + "mcu": "samd51", + "product": "Pycubed Mini V04", + "thumbnail": "", + "url": "https://pocketqube.readthedocs.io/en/latest/", + "vendor": "RexLab" +} diff --git a/ports/samd/boards/PYCUBED_MINI_V04/mpconfigboard.h b/ports/samd/boards/PYCUBED_MINI_V04/mpconfigboard.h new file mode 100644 index 000000000000..71edce19de52 --- /dev/null +++ b/ports/samd/boards/PYCUBED_MINI_V04/mpconfigboard.h @@ -0,0 +1,3 @@ +#define MICROPY_HW_BOARD_NAME "PyCubed Mini V4" +#define MICROPY_HW_MCU_NAME "samd51J19A" +#define MICROPY_HW_XOSC32K (1) diff --git a/ports/samd/boards/PYCUBED_MINI_V04/mpconfigboard.mk b/ports/samd/boards/PYCUBED_MINI_V04/mpconfigboard.mk new file mode 100644 index 000000000000..781faa24106d --- /dev/null +++ b/ports/samd/boards/PYCUBED_MINI_V04/mpconfigboard.mk @@ -0,0 +1,8 @@ +MCU_SERIES = SAMD51 +CMSIS_MCU = SAMD51J19A +LD_FILES = boards/samd51x19a.ld sections.ld +TEXT0 = 0x4000 + +# The ?='s allow overriding in mpconfigboard.mk. +# MicroPython settings +MICROPY_VFS_LFS1 ?= 1 diff --git a/ports/samd/boards/PYCUBED_MINI_V04/pins.csv b/ports/samd/boards/PYCUBED_MINI_V04/pins.csv new file mode 100644 index 000000000000..f98fa9b7af89 --- /dev/null +++ b/ports/samd/boards/PYCUBED_MINI_V04/pins.csv @@ -0,0 +1,46 @@ +# Pin rows contain Pin number and pin name. +# Pin rows start with PIN_ +# LED rows start with LED_ +# If the pin name is omitted, the pin number is added as name. +# Rows for empty entries have to start with '-' +# Empty lines and lines starting with # are ignored + +PIN_PB11,FLASH_CS +PIN_PB10,FLASH_SCK +PIN_PA08,FLASH_MOSI +PIN_PA09,FLASH_MISO +PIN_PA10,FLASH_WP +PIN_PA11,FLASH_HOLD + +PIN_PA13,SCK +PIN_PA12,MOSI +PIN_PA14,MISO + +PIN_PB12,SDA1 +PIN_PB13,SCL1 +PIN_PA17,SDA2 +PIN_PA16,SCL2 +PIN_PB31,SDA3 +PIN_PB30,SCL3 + +PIN_PA05,RF_IO0 +PIN_PA04,RF_IO1 +PIN_PA20,RF_RST +PIN_PA22,RF_CS + +PIN_PB15,CS_CAM +PIN_PB16,EN_CAM +PIN_PB00,M_EN +PIN_PB14,M_FAULT +PIN_PA19,BURN1 +PIN_PA18,BURN2 +PIN_PB08,CS_SD + +PIN_PA23,WDT_WDI + +PIN_PA21,NEOPIXEL +PIN_PA06,BATTERY + +PIN_PA24,USB_DM +PIN_PA25,USB_DP +PIN_PA26,USB_SOF