How to add new Board with PlatformIO Support? #31393
-
Please see my question here in the PIO discussion groups: I'm looking for a reason why my local board config in PIO is not working. Why is the file not found with the local config, but working with the "steval_fcu001v1" board. Any help or hints where i should look are apprechiated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The problem is that you are using the new pinmux features for STM32 introduced in Zephyr 2.5, but PlatformIO is using current stable release 2.4. A possible workaround requires a custom fork of the platform_packages =
framework-zephyr-hal-stm32@https://github.com/LibreSolar/hal_stm32#v2.5-platformio Otherwise just take board files from Zephyr |
Beta Was this translation helpful? Give feedback.
The problem is that you are using the new pinmux features for STM32 introduced in Zephyr 2.5, but PlatformIO is using current stable release 2.4.
A possible workaround requires a custom fork of the
stm32_hal
repo which contains apackage.json
as required by PlatformIO. Afterwards you can point PlatformIO towards that repo. I have done that already for the Libre Solar Charge Controller Firmware develop branch. So it should work if you just add the following lines toplatformio.ini
:Otherwise just take board files from Zephyr
v2.4-branch
as the basis for your local board config. The Ze…