Distributing custom board files... best way to do it?

Post here all questions related to STM32 core if you can't find a relevant section!
Post Reply
runger
Posts: 2
Joined: Thu Mar 09, 2023 8:12 pm

Distributing custom board files... best way to do it?

Post by runger »

So I've created a board variant, and it's working for me locally. :)

I'm wondering what the best way is to distribute it to other people?

Of course I could send a pull-request to the official STM32 core repository, wait for it to be approved and merged, wait for the next release, and then people could install that... but first-off I don't want to wait so long, and secondly I think it would be better to test on more OS and setups before taking that step.

So I guess I could "fork" the whole STM32 core, make my own release, create my own platform descriptor like the BoardManagerFiles project - then others could install my "alternative" STM32 core in place of the real one. Is that the intended way? It seems heavy-weight?

Is this also an option? Can one add just board files to the IDE while referencing the standard STM32 core?
https://arduino.github.io/arduino-cli/0 ... nt-or-tool

Or is there another method that people could suggest?

Thanks in advance for any pointers!
User avatar
Juraj
Posts: 47
Joined: Fri Jan 03, 2020 7:47 pm
Answers: 1
Location: Slovakia
Contact:

Re: Distributing custom board files... best way to do it?

Post by Juraj »

referencing example. I am not sure if it still works
https://github.com/JAndrassy/my_boards
fpiSTM
Posts: 1838
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 102
Location: Le Mans
Contact:

Re: Distributing custom board files... best way to do it?

Post by fpiSTM »

You can anyway provide a PR then it will be reviewed and probably merged.
User can used the git instead of the default release version:
https://github.com/stm32duino/Arduino_C ... repository
runger
Posts: 2
Joined: Thu Mar 09, 2023 8:12 pm

Re: Distributing custom board files... best way to do it?

Post by runger »

Thanks a lot for the pointers!

I've made a "vendor" that references the STMicrosystems core and added one board for now, and that's working well for me. I will try how this works with other users, but it feels like the right way to go.
Post Reply

Return to “General discussion”