Page 1 of 1

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

Posted: Thu Mar 09, 2023 8:32 pm
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!

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

Posted: Fri Mar 10, 2023 6:45 am
by Juraj
referencing example. I am not sure if it still works
https://github.com/JAndrassy/my_boards

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

Posted: Fri Mar 10, 2023 8:33 am
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

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

Posted: Sun Mar 12, 2023 11:15 pm
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.

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

Posted: Mon Mar 13, 2023 7:42 am
by fpiSTM