From 6783f3af85dc555627580d1a0a8477bd8aad32f8 Mon Sep 17 00:00:00 2001 From: Michael Scott <42438531+NeoGaius@users.noreply.github.com> Date: Wed, 15 Dec 2021 10:22:14 -0500 Subject: [PATCH 1/2] Add P1AM-100 board support --- boards/p1am100.json | 53 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 boards/p1am100.json diff --git a/boards/p1am100.json b/boards/p1am100.json new file mode 100644 index 0000000..acd59cb --- /dev/null +++ b/boards/p1am100.json @@ -0,0 +1,53 @@ +{ + "build": { + "arduino": { + "ldscript": "flash_with_bootloader.ld" + }, + "core": "samd", + "cpu": "cortex-m0plus", + "extra_flags": "-DARDUINO_SAMD_MKRZERO -D__SAMD21G18A__ -DUSE_ARDUINO_MKR_PIN_LAYOUT", + "f_cpu": "48000000L", + "hwids": [ + [ + "0x1354", + "0x4000" + ], + [ + "0x1354", + "0x4001" + ] + ], + "mcu": "samd21g18a", + "usb_product": "P1AM-100", + "variant": "p1am100" + }, + "debug": { + "jlink_device": "ATSAMD21G18", + "openocd_chipname": "at91samd21g18", + "openocd_target": "at91samdXX", + "svd_path": "ATSAMD21G18A.svd" + }, + "frameworks": [ + "arduino" + ], + "name": "P1AM-100", + "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.automationdirect.com/adc/shopping/catalog/programmable_controllers/open_source_controllers_(arduino-compatible)", + "vendor": "FACTS Engineering, LLC" +} From 5b48af09a0f872f30600a7030d57047b951ae773 Mon Sep 17 00:00:00 2001 From: Michael Scott <42438531+NeoGaius@users.noreply.github.com> Date: Wed, 15 Dec 2021 10:35:20 -0500 Subject: [PATCH 2/2] update json --- boards/p1am100.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards/p1am100.json b/boards/p1am100.json index acd59cb..b421d1a 100644 --- a/boards/p1am100.json +++ b/boards/p1am100.json @@ -3,7 +3,7 @@ "arduino": { "ldscript": "flash_with_bootloader.ld" }, - "core": "samd", + "core": "arduino", "cpu": "cortex-m0plus", "extra_flags": "-DARDUINO_SAMD_MKRZERO -D__SAMD21G18A__ -DUSE_ARDUINO_MKR_PIN_LAYOUT", "f_cpu": "48000000L",