From 1638ade6df5f7ab0242008b1465e35baff305ff8 Mon Sep 17 00:00:00 2001 From: Tao Jin Date: Tue, 19 Nov 2024 20:52:53 -0800 Subject: [PATCH] add / udpate multiple m5stack boards --- boards/m5stack-paper.json | 35 +++++++++++++++++++ boards/m5stack-stamp-c3.json | 34 ++++++++++++++++++ boards/m5stack-stickc-plus.json | 34 ++++++++++++++++++ boards/m5stack-stickc-plus2.json | 33 +++++++++++++++++ .../{m5stick-c.json => m5stack-stickc.json} | 12 +++---- 5 files changed, 142 insertions(+), 6 deletions(-) create mode 100644 boards/m5stack-paper.json create mode 100644 boards/m5stack-stamp-c3.json create mode 100644 boards/m5stack-stickc-plus.json create mode 100644 boards/m5stack-stickc-plus2.json rename boards/{m5stick-c.json => m5stack-stickc.json} (77%) diff --git a/boards/m5stack-paper.json b/boards/m5stack-paper.json new file mode 100644 index 000000000..64a308393 --- /dev/null +++ b/boards/m5stack-paper.json @@ -0,0 +1,35 @@ +{ + "build": { + "arduino": { + "ldscript": "esp32_out.ld", + "partitions": "default_16MB.csv" + }, + "core": "esp32", + "extra_flags": "-DARDUINO_M5STACK_Paper -DBOARD_HAS_PSRAM", + "f_cpu": "240000000L", + "f_flash": "40000000L", + "flash_mode": "qio", + "mcu": "esp32", + "variant": "m5stack_paper" + }, + "connectivity": [ + "wifi", + "bluetooth", + "ethernet", + "can" + ], + "frameworks": [ + "arduino", + "espidf" + ], + "name": "M5Paper", + "upload": { + "flash_size": "16MB", + "maximum_ram_size": 4521984, + "maximum_size": 16777216, + "require_upload_port": true, + "speed": 1500000 + }, + "url": "https://docs.m5stack.com/en/core/m5paper_v1.1", + "vendor": "M5Stack" +} \ No newline at end of file diff --git a/boards/m5stack-stamp-c3.json b/boards/m5stack-stamp-c3.json new file mode 100644 index 000000000..28ffbc7da --- /dev/null +++ b/boards/m5stack-stamp-c3.json @@ -0,0 +1,34 @@ +{ + "build": { + "arduino": { + "ldscript": "esp32c3_out.ld" + }, + "core": "esp32", + "f_cpu": "160000000L", + "f_flash": "80000000L", + "flash_mode": "qio", + "mcu": "esp32c3", + "variant": "m5stack_stamp_c3" + }, + "connectivity": [ + "wifi", + "bluetooth" + ], + "debug": { + "openocd_target": "esp32c3.cfg" + }, + "frameworks": [ + "arduino", + "espidf" + ], + "name": "M5Stamp C3", + "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" +} \ No newline at end of file diff --git a/boards/m5stack-stickc-plus.json b/boards/m5stack-stickc-plus.json new file mode 100644 index 000000000..8f6ec0f90 --- /dev/null +++ b/boards/m5stack-stickc-plus.json @@ -0,0 +1,34 @@ +{ + "build": { + "arduino": { + "ldscript": "esp32_out.ld" + }, + "core": "esp32", + "extra_flags": "-DARDUINO_M5Stick_C_Plus", + "f_cpu": "240000000L", + "f_flash": "80000000L", + "flash_mode": "qio", + "mcu": "esp32", + "variant": "m5stack_stickc_plus" + }, + "connectivity": [ + "wifi", + "bluetooth", + "ethernet", + "can" + ], + "frameworks": [ + "arduino", + "espidf" + ], + "name": "M5StickC-Plus", + "upload": { + "flash_size": "4MB", + "maximum_ram_size": 327680, + "maximum_size": 4194304, + "require_upload_port": true, + "speed": 1500000 + }, + "url": "https://docs.m5stack.com/en/core/m5stickc_plus", + "vendor": "M5Stack" +} \ No newline at end of file diff --git a/boards/m5stack-stickc-plus2.json b/boards/m5stack-stickc-plus2.json new file mode 100644 index 000000000..ae0ffef60 --- /dev/null +++ b/boards/m5stack-stickc-plus2.json @@ -0,0 +1,33 @@ +{ + "build": { + "arduino": { + "ldscript": "esp32_out.ld", + "partitions": "default_8MB.csv" + }, + "core": "esp32", + "extra_flags": "-DARDUINO_M5Stick_C_Plus", + "f_cpu": "240000000L", + "f_flash": "80000000L", + "flash_mode": "qio", + "mcu": "esp32", + "variant": "m5stack_stickc_plus2" + }, + "connectivity": [ + "bluetooth", + "wifi" + ], + "frameworks": [ + "arduino", + "espidf" + ], + "name": "M5StickC-Plus", + "upload": { + "flash_size": "8MB", + "maximum_ram_size": 327680, + "maximum_size": 8388608, + "require_upload_port": true, + "speed": 1500000 + }, + "url": "https://docs.m5stack.com/en/core/M5StickC%20PLUS2", + "vendor": "M5Stack" +} \ No newline at end of file diff --git a/boards/m5stick-c.json b/boards/m5stack-stickc.json similarity index 77% rename from boards/m5stick-c.json rename to boards/m5stack-stickc.json index 5c96d7e86..8c66b4aad 100644 --- a/boards/m5stick-c.json +++ b/boards/m5stack-stickc.json @@ -1,15 +1,15 @@ { "build": { - "arduino":{ + "arduino": { "ldscript": "esp32_out.ld" }, "core": "esp32", "extra_flags": "-DARDUINO_M5Stick_C", "f_cpu": "240000000L", "f_flash": "40000000L", - "flash_mode": "dio", + "flash_mode": "qio", "mcu": "esp32", - "variant": "m5stick_c" + "variant": "m5stack_stickc" }, "connectivity": [ "wifi", @@ -21,7 +21,7 @@ "arduino", "espidf" ], - "name": "M5Stick-C", + "name": "M5StickC", "upload": { "flash_size": "4MB", "maximum_ram_size": 327680, @@ -29,6 +29,6 @@ "require_upload_port": true, "speed": 1500000 }, - "url": "http://www.m5stack.com", + "url": "https://docs.m5stack.com/en/core/m5stickc", "vendor": "M5Stack" -} +} \ No newline at end of file