Improve workflow and/or documentation for using a git version of this core #1335
matthijskooijman
started this conversation in
Ideas
Replies: 1 comment
-
@matthijskooijman This is something I've in mind since a while. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request/improvement related to a problem? Please describe.
Currently, using a git master version of this core is a bit tricky, because it's non-trivial to install the right tools (gcc/CMSIS).
There is some documentation about this on the wiki, which explains how to install the core through the board manager to get the tools, remove the installed files (leaving the tools) and replacing it with a git clone. However, when the git version needs newer tool versions that the latest released version (as now), this does not work, and the documentation only says "you must install the correct versions of the required dependencies", without any guidance as to how (I presume this involves manually downloading and extracting zipfiles, which isn't pretty).
Now, I noticed that the https://github.com/stm32duino/BoardManagerFiles repo actually has a
dev
branch, which offers the newer versions of these tools (as required by git master) and a2.0.0-dev
version of the core which depends on them. So if you use the JSON file from this dev branch, you can let the Arduino IDE install the right tools (and then apply the same trick with deleting and replacing the core as documented). So maybe it would be good to document this dev branch approach on the wiki?However, this approach still has some downsides:
So I was wondering about another approach: Could the 2.0.0-dev version maybe be a dummy core (that just installs an empty zip and no boards), that serves to just install the dependencies? If it can use a different name (or different architecture), so it can be installed alongside an actual 1.9.0 release, that might be even better.
I haven't tried this approach, but wanted to share the idea for consideration.
Beta Was this translation helpful? Give feedback.
All reactions