Skip to content

How to add new Board with PlatformIO Support? #31393

Answered by martinjaeger
derlucas asked this question in Q&A
Discussion options

You must be logged in to vote

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 a package.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 to platformio.ini:

platform_packages =
    framework-zephyr-hal-stm32@https://github.com/LibreSolar/hal_stm32#v2.5-platformio

Otherwise just take board files from Zephyr v2.4-branch as the basis for your local board config. The Ze…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by henrikbrixandersen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants