From cc13c9b4a110aade79ae520415372f73e027bc96 Mon Sep 17 00:00:00 2001 From: Jonas Scharpf Date: Sun, 24 Apr 2022 21:58:36 +0200 Subject: [PATCH 1/2] add support for STM32G030 targets --- boards/genericSTM32G030C8.json | 43 ++++++++++++++++++++++++++++++++++ boards/genericSTM32G030F6.json | 43 ++++++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 boards/genericSTM32G030C8.json create mode 100644 boards/genericSTM32G030F6.json diff --git a/boards/genericSTM32G030C8.json b/boards/genericSTM32G030C8.json new file mode 100644 index 00000000..d08b63ff --- /dev/null +++ b/boards/genericSTM32G030C8.json @@ -0,0 +1,43 @@ +{ + "build": { + "core": "stm32", + "cpu": "cortex-m0plus", + "extra_flags": "-DSTM32G030xx -DSTM32G0xx", + "f_cpu": "64000000L", + "framework_extra_flags": { + "arduino": "-D__CORTEX_SC=0" + }, + "mcu": "stm32g030c8t6", + "product_line": "STM32G030xx", + "variant": "STM32G0xx/G030C(6-8)T" + }, + "debug": { + "jlink_device": "STM32G030C8", + "openocd_target": "stm32g0x", + "svd_path": "STM32G030.svd" + }, + "frameworks": [ + "arduino", + "cmsis", + "mbed", + "libopencm3", + "stm32cube" + ], + "name": "STM32G030C8 (8k RAM. 64k Flash)", + "upload": { + "maximum_ram_size": 8192, + "maximum_size": 65536, + "protocol": "stlink", + "protocols": [ + "jlink", + "cmsis-dap", + "stlink", + "blackmagic", + "serial", + "dfu" + ] + }, + "url": "https://www.st.com/content/st_com/en/products/microcontrollers-microprocessors/stm32-32-bit-arm-cortex-mcus/stm32-mainstream-mcus/stm32g0-series/stm32g0x0-value-line/stm32g030c8.html", + "vendor": "Generic" +} + diff --git a/boards/genericSTM32G030F6.json b/boards/genericSTM32G030F6.json new file mode 100644 index 00000000..09e73501 --- /dev/null +++ b/boards/genericSTM32G030F6.json @@ -0,0 +1,43 @@ +{ + "build": { + "core": "stm32", + "cpu": "cortex-m0plus", + "extra_flags": "-DSTM32G030xx -DSTM32G0xx", + "f_cpu": "64000000L", + "framework_extra_flags": { + "arduino": "-D__CORTEX_SC=0" + }, + "mcu": "stm32g030f6px", + "product_line": "STM32G030xx", + "variant": "STM32G0xx/G030F6P" + }, + "debug": { + "jlink_device": "STM32G030F6", + "openocd_target": "stm32g0x", + "svd_path": "STM32G030.svd" + }, + "frameworks": [ + "arduino", + "cmsis", + "mbed", + "libopencm3", + "stm32cube" + ], + "name": "STM32G030C8 (8k RAM. 32k Flash)", + "upload": { + "maximum_ram_size": 8192, + "maximum_size": 32768, + "protocol": "stlink", + "protocols": [ + "jlink", + "cmsis-dap", + "stlink", + "blackmagic", + "serial", + "dfu", + ] + }, + "url": "https://www.st.com/content/st_com/en/products/microcontrollers-microprocessors/stm32-32-bit-arm-cortex-mcus/stm32-mainstream-mcus/stm32g0-series/stm32g0x0-value-line/stm32g030f6.html", + "vendor": "Generic" +} + From 12fa998858f1ab9642f19cf658f46d3ec00de2a3 Mon Sep 17 00:00:00 2001 From: Jonas Scharpf Date: Sat, 7 May 2022 13:22:38 +0200 Subject: [PATCH 2/2] fix name, remove empty lines, fix JSON format --- boards/genericSTM32G030C8.json | 1 - boards/genericSTM32G030F6.json | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/boards/genericSTM32G030C8.json b/boards/genericSTM32G030C8.json index d08b63ff..52d3885c 100644 --- a/boards/genericSTM32G030C8.json +++ b/boards/genericSTM32G030C8.json @@ -40,4 +40,3 @@ "url": "https://www.st.com/content/st_com/en/products/microcontrollers-microprocessors/stm32-32-bit-arm-cortex-mcus/stm32-mainstream-mcus/stm32g0-series/stm32g0x0-value-line/stm32g030c8.html", "vendor": "Generic" } - diff --git a/boards/genericSTM32G030F6.json b/boards/genericSTM32G030F6.json index 09e73501..b155e902 100644 --- a/boards/genericSTM32G030F6.json +++ b/boards/genericSTM32G030F6.json @@ -23,7 +23,7 @@ "libopencm3", "stm32cube" ], - "name": "STM32G030C8 (8k RAM. 32k Flash)", + "name": "STM32G030F6 (8k RAM. 32k Flash)", "upload": { "maximum_ram_size": 8192, "maximum_size": 32768, @@ -34,10 +34,9 @@ "stlink", "blackmagic", "serial", - "dfu", + "dfu" ] }, "url": "https://www.st.com/content/st_com/en/products/microcontrollers-microprocessors/stm32-32-bit-arm-cortex-mcus/stm32-mainstream-mcus/stm32g0-series/stm32g0x0-value-line/stm32g030f6.html", "vendor": "Generic" } -