From 3791993843719ac6e8265435977abeb27e520ce7 Mon Sep 17 00:00:00 2001 From: Daniel Eichhorn Date: Fri, 22 Mar 2024 16:05:54 +0100 Subject: [PATCH 1/2] Add ThingPulse ePulse Feather and ePulse Feather C6 board definition --- boards/thingpulse_epulse_feather.json | 44 ++++++++++++++++++++++++ boards/thingpulse_epulse_feather_c6.json | 30 ++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 boards/thingpulse_epulse_feather.json create mode 100644 boards/thingpulse_epulse_feather_c6.json diff --git a/boards/thingpulse_epulse_feather.json b/boards/thingpulse_epulse_feather.json new file mode 100644 index 000000000..fe7ea9f0e --- /dev/null +++ b/boards/thingpulse_epulse_feather.json @@ -0,0 +1,44 @@ +{ + "build": { + "arduino":{ + "ldscript": "esp32_out.ld" + }, + "core": "esp32", + "extra_flags": [ + "-DARDUINO_ESP32_DEV", + "-DBOARD_HAS_PSRAM", + "-DARDUINO_RUNNING_CORE=1", + "-DARDUINO_EVENT_RUNNING_CORE=1", + "-mfix-esp32-psram-cache-issue", + "-mfix-esp32-psram-cache-strategy=memw" + ], + "f_cpu": "240000000L", + "f_flash": "80000000L", + "flash_mode": "dio", + "mcu": "esp32", + "variant": "thingpulse_epulse_feather_c6" + }, + "connectivity": [ + "wifi", + "bluetooth", + "ethernet", + "can" + ], + "debug": { + "openocd_board": "esp32-wrover.cfg" + }, + "frameworks": [ + "arduino", + "espidf" + ], + "name": "ThingPulse ePulse Feather", + "upload": { + "flash_size": "8MB", + "maximum_ram_size": 327680, + "maximum_size": 8388608, + "require_upload_port": true, + "speed": 460800 + }, + "url": "https://thingpulse.com/product/epulse-feather-low-power-esp32-development-board/", + "vendor": "ThingPulse" +} diff --git a/boards/thingpulse_epulse_feather_c6.json b/boards/thingpulse_epulse_feather_c6.json new file mode 100644 index 000000000..7a7f907f7 --- /dev/null +++ b/boards/thingpulse_epulse_feather_c6.json @@ -0,0 +1,30 @@ +{ + "build": { + "core": "esp32", + "f_cpu": "160000000L", + "f_flash": "80000000L", + "flash_mode": "qio", + "mcu": "esp32c6", + "variant": "thingpulse_epulse_feather_c6" + }, + "connectivity": [ + "wifi" + ], + "debug": { + "openocd_target": "esp32c6.cfg" + }, + "frameworks": [ + "arduino", + "espidf" + ], + "name": "ThingPulse ePulse Feather C6", + "upload": { + "flash_size": "4MB", + "maximum_ram_size": 327680, + "maximum_size": 4194304, + "require_upload_port": true, + "speed": 460800 + }, + "url": "https://thingpulse.com/product/epulse-feather-low-power-esp32-c6/", + "vendor": "ThingPulse" +} From 021a9f985fe609495ea8b49f832a14ac0286d1bf Mon Sep 17 00:00:00 2001 From: Daniel Eichhorn Date: Fri, 22 Mar 2024 21:26:32 +0100 Subject: [PATCH 2/2] Fix review comments --- boards/thingpulse_epulse_feather.json | 4 ++-- boards/thingpulse_epulse_feather_c6.json | 12 ++++++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/boards/thingpulse_epulse_feather.json b/boards/thingpulse_epulse_feather.json index fe7ea9f0e..e2fa32c00 100644 --- a/boards/thingpulse_epulse_feather.json +++ b/boards/thingpulse_epulse_feather.json @@ -5,7 +5,7 @@ }, "core": "esp32", "extra_flags": [ - "-DARDUINO_ESP32_DEV", + "-DARDUINO_THINGPULSE_EPULSE_FEATHER", "-DBOARD_HAS_PSRAM", "-DARDUINO_RUNNING_CORE=1", "-DARDUINO_EVENT_RUNNING_CORE=1", @@ -16,7 +16,7 @@ "f_flash": "80000000L", "flash_mode": "dio", "mcu": "esp32", - "variant": "thingpulse_epulse_feather_c6" + "variant": "thingpulse_epulse_feather" }, "connectivity": [ "wifi", diff --git a/boards/thingpulse_epulse_feather_c6.json b/boards/thingpulse_epulse_feather_c6.json index 7a7f907f7..6f04dfa1a 100644 --- a/boards/thingpulse_epulse_feather_c6.json +++ b/boards/thingpulse_epulse_feather_c6.json @@ -5,10 +5,18 @@ "f_flash": "80000000L", "flash_mode": "qio", "mcu": "esp32c6", - "variant": "thingpulse_epulse_feather_c6" + "variant": "thingpulse_epulse_feather_c6", + "extra_flags": [ + "-DARDUINO_THINGPULSE_EPULSE_FEATHER_C6", + "-DARDUINO_USB_CDC_ON_BOOT=1", + "-DARDUINO_USB_MODE=1" + ] }, "connectivity": [ - "wifi" + "wifi", + "bluetooth", + "zigbee", + "thread" ], "debug": { "openocd_target": "esp32c6.cfg"