From d7a63a639424edd399c97c1037a702573e07e8f2 Mon Sep 17 00:00:00 2001 From: Joshua Wilson Date: Mon, 23 Jun 2025 20:08:37 +1200 Subject: [PATCH 1/2] Add new board PlatformIO board configuration for the M5Stack StampC3. --- boards/m5stack-stampc3.json | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 boards/m5stack-stampc3.json diff --git a/boards/m5stack-stampc3.json b/boards/m5stack-stampc3.json new file mode 100644 index 000000000..30d0c3554 --- /dev/null +++ b/boards/m5stack-stampc3.json @@ -0,0 +1,47 @@ +{ + "build": { + "arduino": { + "ldscript": "esp32c3_out.ld", + "partitions": "default_4MB.csv" + }, + "core": "esp32", + "extra_flags": [ + "-DARDUINO_M5STACK_STAMPC3", + "-DARDUINO_USB_MODE=1", + "-DARDUINO_RUNNING_CORE=0", + "-DARDUINO_EVENT_RUNNING_CORE=0" + ], + "f_cpu": "160000000L", + "f_flash": "80000000L", + "flash_mode": "dio", + "hwids": [ + [ + "0x303A", + "0x1001" + ] + ], + "mcu": "esp32c3", + "variant": "m5stack_stamp_c3" + }, + "connectivity": [ + "wifi", + "bluetooth" + ], + "debug": { + "openocd_target": "esp32c3.cfg" + }, + "frameworks": [ + "arduino", + "espidf" + ], + "name": "M5Stack StampC3", + "upload": { + "flash_size": "4MB", + "maximum_ram_size": 327680, + "maximum_size": 4194304, + "require_upload_port": true, + "speed": 460800 + }, + "url": "https://docs.m5stack.com/en/core/stamp_c3", + "vendor": "M5Stack" +} From d92b54a339ffd4ffba75a4ca4cbb3316d09c1dc6 Mon Sep 17 00:00:00 2001 From: Joshua Wilson Date: Mon, 23 Jun 2025 22:03:03 +1200 Subject: [PATCH 2/2] Add new board M5Stack StampC3 --- boards/m5stack-stampc3.json | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/boards/m5stack-stampc3.json b/boards/m5stack-stampc3.json index 30d0c3554..4f015f806 100644 --- a/boards/m5stack-stampc3.json +++ b/boards/m5stack-stampc3.json @@ -2,38 +2,21 @@ "build": { "arduino": { "ldscript": "esp32c3_out.ld", - "partitions": "default_4MB.csv" + "partitions": "min_spiffs.csv" }, "core": "esp32", - "extra_flags": [ - "-DARDUINO_M5STACK_STAMPC3", - "-DARDUINO_USB_MODE=1", - "-DARDUINO_RUNNING_CORE=0", - "-DARDUINO_EVENT_RUNNING_CORE=0" - ], "f_cpu": "160000000L", "f_flash": "80000000L", "flash_mode": "dio", - "hwids": [ - [ - "0x303A", - "0x1001" - ] - ], + "hwids": [["0x303A", "0x1001"]], "mcu": "esp32c3", - "variant": "m5stack_stamp_c3" + "variant": "esp32c3" }, - "connectivity": [ - "wifi", - "bluetooth" - ], + "connectivity": ["wifi", "bluetooth"], "debug": { "openocd_target": "esp32c3.cfg" }, - "frameworks": [ - "arduino", - "espidf" - ], + "frameworks": ["arduino", "espidf"], "name": "M5Stack StampC3", "upload": { "flash_size": "4MB",