From 95e48eb01b517567e065c807f751aca2044e7dee Mon Sep 17 00:00:00 2001 From: matei jordache Date: Tue, 11 Jun 2024 21:17:46 -0700 Subject: [PATCH 1/3] add generic STM32G071RB --- boards/genericSTM32G071RB.json | 46 ++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 boards/genericSTM32G071RB.json diff --git a/boards/genericSTM32G071RB.json b/boards/genericSTM32G071RB.json new file mode 100644 index 00000000..899c3f3a --- /dev/null +++ b/boards/genericSTM32G071RB.json @@ -0,0 +1,46 @@ +{ + "build": { + "core": "stm32", + "cpu": "cortex-m0plus", + "extra_flags": "-DSTM32G0 -DSTM32G0xx -DSTM32G071xx", + "f_cpu": "64000000L", + "mcu": "stm32g071rbt6", + "product_line": "STM32G071xx", + "zephyr": { + "variant": "STM32G0xx/G071R(6-8)T_G071RB(I-T)_G081RB(I-T)" + } + }, + "debug": { + "default_tools": [ + "stlink" + ], + "jlink_device": "STM32G071RB", + "onboard_tools": [ + "stlink" + ], + "openocd_target": "stm32g0x", + "svd_path": "STM32G071.svd" + }, + "frameworks": [ + "arduino", + "cmsis", + "libopencm3", + "stm32cube", + "zephyr" + ], + "name": "STM32G071B (36k RAM, 128k Flash)", + "upload": { + "maximum_ram_size": 36864, + "maximum_size": 131072, + "protocol": "stlink", + "protocols": [ + "stlink", + "jlink", + "cmsis-dap", + "blackmagic", + "mbed" + ] + }, + "url": "https://www.st.com/en/microcontrollers-microprocessors/stm32g071rb.html", + "vendor": "ST" +} From 6a78b6c8106d0c5b67b1d597236f1d6c3369aeb3 Mon Sep 17 00:00:00 2001 From: matei jordache Date: Tue, 11 Jun 2024 21:23:38 -0700 Subject: [PATCH 2/3] remove nucleo debug defaults --- boards/genericSTM32G071RB.json | 6 ------ 1 file changed, 6 deletions(-) diff --git a/boards/genericSTM32G071RB.json b/boards/genericSTM32G071RB.json index 899c3f3a..ec599410 100644 --- a/boards/genericSTM32G071RB.json +++ b/boards/genericSTM32G071RB.json @@ -11,13 +11,7 @@ } }, "debug": { - "default_tools": [ - "stlink" - ], "jlink_device": "STM32G071RB", - "onboard_tools": [ - "stlink" - ], "openocd_target": "stm32g0x", "svd_path": "STM32G071.svd" }, From 4f7085d5c11c02a4e0465aa653238006242facce Mon Sep 17 00:00:00 2001 From: matei jordache Date: Thu, 3 Oct 2024 23:35:23 -0700 Subject: [PATCH 3/3] add generic g071c8 --- boards/genericSTM32G071C8.json | 40 ++++++++++++++++++++++++++++++++++ boards/genericSTM32G071RB.json | 2 +- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 boards/genericSTM32G071C8.json diff --git a/boards/genericSTM32G071C8.json b/boards/genericSTM32G071C8.json new file mode 100644 index 00000000..c41a1709 --- /dev/null +++ b/boards/genericSTM32G071C8.json @@ -0,0 +1,40 @@ +{ + "build": { + "core": "stm32", + "cpu": "cortex-m0plus", + "extra_flags": "-DSTM32G0 -DSTM32G0xx -DSTM32G071xx", + "f_cpu": "64000000L", + "mcu": "stm32g071c8u3", + "product_line": "STM32G071xx", + "zephyr": { + "variant": "G071C(6-8-B)(T-U)_G081CB(T-U)" + } + }, + "debug": { + "jlink_device": "STM32G071C8", + "openocd_target": "stm32g0x", + "svd_path": "STM32G071.svd" + }, + "frameworks": [ + "arduino", + "cmsis", + "libopencm3", + "stm32cube", + "zephyr" + ], + "name": "STM32G071C8 (36k RAM, 64k Flash)", + "upload": { + "maximum_ram_size": 36864, + "maximum_size": 65536, + "protocol": "stlink", + "protocols": [ + "stlink", + "jlink", + "cmsis-dap", + "blackmagic", + "mbed" + ] + }, + "url": "https://www.st.com/en/microcontrollers-microprocessors/stm32g071c8.html", + "vendor": "ST" +} diff --git a/boards/genericSTM32G071RB.json b/boards/genericSTM32G071RB.json index ec599410..94599ab7 100644 --- a/boards/genericSTM32G071RB.json +++ b/boards/genericSTM32G071RB.json @@ -22,7 +22,7 @@ "stm32cube", "zephyr" ], - "name": "STM32G071B (36k RAM, 128k Flash)", + "name": "STM32G071RB (36k RAM, 128k Flash)", "upload": { "maximum_ram_size": 36864, "maximum_size": 131072,