platformio / platform-ststm32

ST STM32: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/ststm32
Apache License 2.0
389 stars 305 forks source link

Add support for STM32WL55 boards on arduino framework #552

Closed dolfandringa closed 2 years ago

dolfandringa commented 3 years ago

The master branch, to be released in version 2.1.0, from the Arduino Core STM32 platform adds support for the STM32WL55 series of microcontrollers. Extending the support to platformio's arduino framework would be great. I already managed to modify the board definitions locally in git forks and get the code to compile after fixing this issue: https://github.com/stm32duino/Arduino_Core_STM32/issues/1473 as well, still need to submit the corresponding PR). I can make a pr once the Arduino Core STM32 issue has been resolved.

dolfandringa commented 3 years ago

https://github.com/platformio/platform-ststm32/compare/develop...dolfandringa:feature/stm32duino_stm32wl55_support?expand=1 is my WIP for this. Any feedback would be appreciated

fpistm commented 3 years ago

@dolfandringa STM32WL is not part of the 2.0.0, it is merged in the master and will be available with 2.1.0. See https://github.com/stm32duino/Arduino_Core_STM32/pull/1429

And no issue need to be resolved for stm32duino/Arduino_Core_STM32#1473

Note that currently, the LoRa is not supported for WL only basic MCU features.

dolfandringa commented 3 years ago

OK, updated the ticket to point to 2.1.0. And yes, I realize the LoRaWAN code isn't part of it. That totally makes sense. I am doing this in my spare time. Step 1 was to add support for arduino. I hoped I could then include at least use I-NUCLEO-LRWAN1 library to implement it.

valeros commented 3 years ago

Hi @dolfandringa ! Once @fpistm publish a new release this platform will updated accordingly.

dolfandringa commented 3 years ago

@valeros shall I submit the PR for this? I managed to get a basic blink sketch compiled, uploaded and debugged on my STM32WL55 using both fork branches.

valeros commented 3 years ago

Feel free to submit a PR, but keep in mind it won't be merged until Arduino core v2.1.0 is published.