From 420dfbefc39d3512c42f736161731e223c844cb2 Mon Sep 17 00:00:00 2001 From: yyrliu <70476688+stultusphobia@users.noreply.github.com> Date: Sat, 23 Aug 2025 17:11:30 -0700 Subject: [PATCH] Add support for Adafruit SHT4x Trinkey --- boards/adafruit_sht4xtrinkey_m0.json | 60 ++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 boards/adafruit_sht4xtrinkey_m0.json diff --git a/boards/adafruit_sht4xtrinkey_m0.json b/boards/adafruit_sht4xtrinkey_m0.json new file mode 100644 index 0000000..5b68bc2 --- /dev/null +++ b/boards/adafruit_sht4xtrinkey_m0.json @@ -0,0 +1,60 @@ +{ + "build": { + "arduino": { + "ldscript": "flash_with_bootloader.ld" + }, + "core": "adafruit", + "cpu": "cortex-m0plus", + "extra_flags": [ + "-DARDUINO_TRINKET_M0", + "-DCRYSTALLESS", + "-DADAFRUIT_TRINKET_M0", + "-DARM_MATH_CM0PLUS", + "-D__SAMD21E18A__" + ], + "f_cpu": "48000000L", + "hwids": [ + [ + "0x239A", + "0x801E" + ], + [ + "0x239A", + "0x001E" + ] + ], + "mcu": "samd21e18a", + "system": "samd", + "usb_product": "Adafruit SHT4x Trinkey", + "variant": "sht4xtrinkey_m0" + }, + "debug": { + "jlink_device": "ATSAMD21E18", + "openocd_chipname": "at91samd21e18", + "openocd_target": "at91samdXX", + "svd_path": "ATSAMD21E18A.svd" + }, + "frameworks": [ + "arduino" + ], + "name": "Adafruit Trinket M0", + "upload": { + "disable_flushing": true, + "maximum_ram_size": 32768, + "maximum_size": 262144, + "native_usb": true, + "offset_address": "0x2000", + "protocol": "sam-ba", + "protocols": [ + "sam-ba", + "blackmagic", + "jlink", + "atmel-ice" + ], + "require_upload_port": true, + "use_1200bps_touch": true, + "wait_for_upload_port": true + }, + "url": "https://www.adafruit.com/product/5912", + "vendor": "Adafruit" +}