diff --git a/boards/nucleo_wl55jc.json b/boards/nucleo_wl55jc.json index d63ea28a..754e3d93 100644 --- a/boards/nucleo_wl55jc.json +++ b/boards/nucleo_wl55jc.json @@ -24,7 +24,8 @@ }, "frameworks": [ "arduino", - "zephyr" + "zephyr", + "stm32cube" ], "name": "ST Nucleo WL55JC", "upload": { diff --git a/examples/stm32cube-hal-blink/platformio.ini b/examples/stm32cube-hal-blink/platformio.ini index 2e298fe7..8302c23b 100644 --- a/examples/stm32cube-hal-blink/platformio.ini +++ b/examples/stm32cube-hal-blink/platformio.ini @@ -102,3 +102,11 @@ platform = ststm32 framework = stm32cube board = nucleo_l552ze_q build_flags = -DL5 + +[env:nucleo_wl55jc] +platform = ststm32 +framework = stm32cube +board = nucleo_wl55jc +build_flags = -DWL +platform_packages = + platformio/framework-stm32cubewl @ https://github.com/sebastian-toepfer/STM32CubeWL.git diff --git a/examples/stm32cube-hal-blink/src/main.c b/examples/stm32cube-hal-blink/src/main.c index b61fb7a9..f6b4c250 100644 --- a/examples/stm32cube-hal-blink/src/main.c +++ b/examples/stm32cube-hal-blink/src/main.c @@ -26,6 +26,8 @@ #include "stm32l4xx_hal.h" #elif L5 #include "stm32l5xx_hal.h" +#elif WL +#include "stm32wlxx_hal.h" #else #error "Unsupported STM32 Family" #endif diff --git a/platform.json b/platform.json index d0161ef1..fb909030 100644 --- a/platform.json +++ b/platform.json @@ -294,6 +294,12 @@ "owner": "platformio", "version": "~1.5.1" }, + "framework-stm32cubewl": { + "type": "framework", + "optional": true, + "owner": "platformio", + "version": "~1.4.0" + }, "framework-zephyr": { "type": "framework", "optional": true,