From 51b4932a10b69a415943df9300dd3b7f93942537 Mon Sep 17 00:00:00 2001 From: Brandon Satrom Date: Wed, 22 Mar 2023 10:20:53 -0500 Subject: [PATCH 1/3] feat:add board support for SparkFun MicroMod STM32 --- boards/sparkfun_micromod_f405.json | 44 ++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 boards/sparkfun_micromod_f405.json diff --git a/boards/sparkfun_micromod_f405.json b/boards/sparkfun_micromod_f405.json new file mode 100644 index 000000000..924aebc1e --- /dev/null +++ b/boards/sparkfun_micromod_f405.json @@ -0,0 +1,44 @@ +{ + "build": { + "core": "stm32", + "cpu": "cortex-m4", + "extra_flags": "-DSTM32F405xx", + "f_cpu": "168000000L", + "framework_extra_flags": { + "arduino": "-DCUSTOM_PERIPHERAL_PINS" + }, + "mcu": "stm32f405rgt6", + "product_line": "STM32F405xx", + "variant": "STM32F4xx/F405RGT_F415RGT", + "zephyr": { + "variant": "sparkfun_micromod_stm32f405" + } + }, + "debug": { + "jlink_device": "STM32F405RG", + "openocd_target": "stm32f4x", + "svd_path": "STM32F40x.svd" + }, + "frameworks": [ + "arduino", + "cmsis", + "stm32cube", + "libopencm3", + "zephyr" + ], + "name": "SparkFun MicroMod STM32", + "upload": { + "maximum_ram_size": 131072, + "maximum_size": 1048576, + "protocol": "stlink", + "protocols": [ + "dfu", + "serial", + "jlink", + "stlink", + "blackmagic" + ] + }, + "url": "https://www.sparkfun.com/products/17713", + "vendor": "SparkFun" +} From 5f356c5c85f279a2ef6592fb6f8b5be3f5ddec4f Mon Sep 17 00:00:00 2001 From: Brandon Satrom Date: Fri, 1 Sep 2023 16:22:32 -0500 Subject: [PATCH 2/3] bump STM32 support to 2.6.0 --- platform.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform.json b/platform.json index d9d018f29..bbd57e02f 100644 --- a/platform.json +++ b/platform.json @@ -192,7 +192,7 @@ "type": "framework", "optional": true, "owner": "platformio", - "version": "~4.20400.0" + "version": "~4.20600.0" }, "framework-arduinoststm32-maple": { "type": "framework", From 57e38f14168742efd0ab2a3fb4cbeb77b661d775 Mon Sep 17 00:00:00 2001 From: Valerii Koval Date: Tue, 19 Sep 2023 15:45:44 +0300 Subject: [PATCH 3/3] Update manifest with the latest changes --- boards/sparkfun_micromod_f405.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/boards/sparkfun_micromod_f405.json b/boards/sparkfun_micromod_f405.json index 924aebc1e..917088e00 100644 --- a/boards/sparkfun_micromod_f405.json +++ b/boards/sparkfun_micromod_f405.json @@ -1,11 +1,14 @@ { "build": { + "arduino": { + "variant_h": "variant_MICROMOD_F405.h" + }, "core": "stm32", "cpu": "cortex-m4", "extra_flags": "-DSTM32F405xx", "f_cpu": "168000000L", "framework_extra_flags": { - "arduino": "-DCUSTOM_PERIPHERAL_PINS" + "arduino": "-DCUSTOM_PERIPHERAL_PINS -DARDUINO_MICROMOD_F405" }, "mcu": "stm32f405rgt6", "product_line": "STM32F405xx", @@ -26,7 +29,7 @@ "libopencm3", "zephyr" ], - "name": "SparkFun MicroMod STM32", + "name": "SparkFun MicroMod STM32F405", "upload": { "maximum_ram_size": 131072, "maximum_size": 1048576,