Battling combinatorial explosion

What could be included in further releases, or for the forum.
jcw
Posts: 171
Joined: Mon Oct 26, 2015 8:16 am

Re: Battling combinatorial explosion

Post by jcw » Fri Oct 30, 2015 8:25 am

Enable a F0 variant branch and Arduino only sees F0 in the menus.
Do you have to restart the Arduino IDE in between?

jcw
Posts: 171
Joined: Mon Oct 26, 2015 8:16 am

Re: Battling combinatorial explosion

Post by jcw » Fri Oct 30, 2015 8:54 am

To recap, I use Git to create a branch for each variant that CubeMX sets up and generates the HAL code.
If that's the audience at which Arduino-STM32 is targeted, then great. Sounds like a flexible and powerful setup.

User avatar
sheepdoll
Posts: 230
Joined: Fri May 22, 2015 12:58 am
Location: Silicon Valley Vortex
Contact:

Re: Battling combinatorial explosion

Post by sheepdoll » Fri Oct 30, 2015 5:45 pm

jcw wrote:
Enable a F0 variant branch and Arduino only sees F0 in the menus.
Do you have to restart the Arduino IDE in between?
Yes, Even without using git The Arduino IDE needs to be restarted a lot to build the dynamic menus.

jcw
Posts: 171
Joined: Mon Oct 26, 2015 8:16 am

Re: Battling combinatorial explosion

Post by jcw » Fri Oct 30, 2015 6:26 pm

Yes, too bad.

I've been thinking a bit more about your git-branch approach, I use the "GitHub for Mac" app quite a bit, which makes it very easy to pull code from that site, but also to switch branches, check in changes, and even submit pull requests. There's also a "GitHub for Windows" app. On Linux, I assume everyone will be familiar with the command line, so no issues there.

https://desktop.github.com

Maybe there's a not-too-complex-or-brittle way to describe the setup process for newcomers. The advantage being that this mechanism exists today, once you know how to switch branches. Something like: download/install the IDE, download/install GitHub, checkout a repo in the right place, restart the IDE.

I don't know how easy it is to maintain an entire set of branches. What if you want to apply a change which needs to carry through in multiple, or even all, the branches? Use two separate repositories next to each other, perhaps? One single-branch with common stuff, and one multi-branch with references to the common stuff?

jcw
Posts: 171
Joined: Mon Oct 26, 2015 8:16 am

Re: Battling combinatorial explosion

Post by jcw » Fri Oct 30, 2015 7:02 pm

Another thought - combining the ideas of Git and ChibiOS: how about managing it all through symbolic links?

User avatar
RogerClark
Posts: 5923
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Battling combinatorial explosion

Post by RogerClark » Fri Oct 30, 2015 8:24 pm

Im not sure whether symbolic links will work on Windows??

User avatar
mrburnette
Posts: 1783
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: Battling combinatorial explosion

Post by mrburnette » Sat Oct 31, 2015 12:12 am

RogerClark wrote:Im not sure whether symbolic links will work on Windows??
They work:
viewtopic.php?t=356
But complicate things for many users not familiar with with their use.

Ray

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest