From 73bf2a101eca0f8075521393cb56fe3901c2dd5a Mon Sep 17 00:00:00 2001 From: Dolf Andringa Date: Sun, 15 Aug 2021 14:21:32 +0800 Subject: [PATCH 1/2] Add arduino frameworks support for nucleo_wl55jc --- boards/nucleo_wl55jc.json | 14 +++++++++++++- platform.json | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/boards/nucleo_wl55jc.json b/boards/nucleo_wl55jc.json index c862a89f..8ead395d 100644 --- a/boards/nucleo_wl55jc.json +++ b/boards/nucleo_wl55jc.json @@ -1,11 +1,18 @@ { "build": { + "arduino": { + "variant_h": "variant_NUCLEO_WL55JC1.h" + }, "core": "stm32", "cpu": "cortex-m4", "extra_flags": "-DSTM32WL55JC1", + "framework_extra_flags": { + "arduino": "-DSTM32WL55xx -DUSE_CM4_STARTUP_FILE -DARDUINO_NUCLEO_WL55JC1" + }, "f_cpu": "48000000L", "mcu": "stm32wl55jc", - "product_line": "STM32WL55xx" + "product_line": "STM32WL55xx", + "variant": "STM32WLxx/WL54JCI_WL55JCI_WLE4J(8-B-C)I_WLE5J(8-B-C)I" }, "debug": { "default_tools": [ @@ -19,6 +26,11 @@ "svd_path": "STM32WL5x_CM4.svd" }, "frameworks": [ + "arduino", + "cmsis", + "mbed", + "stm32cube", + "libopencm3", "zephyr" ], "name": "ST Nucleo WL55JC", diff --git a/platform.json b/platform.json index fd743400..0ab56978 100644 --- a/platform.json +++ b/platform.json @@ -192,7 +192,7 @@ "type": "framework", "optional": true, "owner": "platformio", - "version": "~4.20000.0" + "version": "~4.30000.0" }, "framework-arduinoststm32-maple": { "type": "framework", From f1836c9692fb7b4fc71d01e330c718e220b3470b Mon Sep 17 00:00:00 2001 From: Dolf Andringa Date: Tue, 24 Aug 2021 08:26:44 +0800 Subject: [PATCH 2/2] Address comments --- boards/nucleo_wl55jc.json | 4 ---- platform.json | 3 +-- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/boards/nucleo_wl55jc.json b/boards/nucleo_wl55jc.json index 8ead395d..e30ecd60 100644 --- a/boards/nucleo_wl55jc.json +++ b/boards/nucleo_wl55jc.json @@ -27,10 +27,6 @@ }, "frameworks": [ "arduino", - "cmsis", - "mbed", - "stm32cube", - "libopencm3", "zephyr" ], "name": "ST Nucleo WL55JC", diff --git a/platform.json b/platform.json index 0ab56978..b642a1bb 100644 --- a/platform.json +++ b/platform.json @@ -191,8 +191,7 @@ "framework-arduinoststm32": { "type": "framework", "optional": true, - "owner": "platformio", - "version": "~4.30000.0" + "owner": "platformio" }, "framework-arduinoststm32-maple": { "type": "framework",