Skip to content

When switching board where the old board has a variant (like all arduino boards) and the other does not (like Teensy) the variant folder is not removed. #555

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sergiuburian opened this issue Oct 25, 2016 · 2 comments
Labels
domain: build The build does not work as the Arduino IDE. domain: other hardware importance: board specific OS: all status: fixed in 4.0 status: workaround documented A workaround has been confirmed to solve this issue.

Comments

@sergiuburian
Copy link

First things first: Thanks a lot for the good work you have done so far. It really makes our life easier when developing for embedded, especially for the guys like me coming to embedded from the traditional software development and tools. It takes the fear away ;)

Now to the issue: Kindly ask for the following: when switching between the boards in the same Eclipse project, please delete the previous linked resources (folders) under /core and create new ones that match with the newly selected board. I am encountering strange compile issues because when switching between the boards because the linked resources under "core" are not refreshed. E.g. when switching from Adafruit Feather M0 to Teensy 3.2, the linked folder to "variant" is kept, pointing to the M0 folder. I'm sure you guess what happens :) Basic types not found, millis not found, because the variant does not compile and match with core.

Motivation: when starting a new project with some other goal that playing, you often do not know which board you should take, so you try more than one. Also, when planning to share the project source, you want this to work on several board types. Both these cases require the development on a single software line, so a single project (for convenience), ready for multiple platforms.
Now I understand that multi-platform build processes, build targets and /release folders means some serious work, therefore, I am asking for facilitating switching between different boards in the same Eclipse project in a simple manner.

Thank you,

Sergiu

@jantje
Copy link
Member

jantje commented Oct 25, 2016

The functionality you are referring to is implemented. You can even have multiple configurations each with their own board. And indeed it wasn't simple to do (thanks for the compliment) :-)
However there seems to be a bug that when you swap between 2 boards -where one has a variant and the other not- the old variant remains.
Simply deleting the core/variant folder (when moving to a board not needing a variant) fixes the problem

@jantje jantje added OS: all status: workaround documented A workaround has been confirmed to solve this issue. importance: board specific domain: other hardware domain: build The build does not work as the Arduino IDE. labels Oct 25, 2016
@jantje jantje changed the title Compile issues when switching between (some) boards in the same project When switching board where the old board has a variant (like all arduino boards) and the other does not (like Teensy) the variant folder is not removed. Oct 25, 2016
@sergiuburian
Copy link
Author

sergiuburian commented Oct 25, 2016

Hi,

Thanks for the prompt answer. I should have also mentioned the workaround, will do better next time :)
I will try to play with multiple release configs and various include paths, thanx for the info.

Cheers,

Sergiu

@sergiuburian sergiuburian reopened this Oct 25, 2016
jantje pushed a commit that referenced this issue Oct 27, 2016
jantje pushed a commit that referenced this issue Oct 28, 2016
This meant I had to extend the API with a set to BoardDescription.
I also created a junit class to share code between the full create and
compile and the regression tests
@jantje jantje closed this as completed Jan 17, 2017
jantje pushed a commit that referenced this issue Apr 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: build The build does not work as the Arduino IDE. domain: other hardware importance: board specific OS: all status: fixed in 4.0 status: workaround documented A workaround has been confirmed to solve this issue.
Projects
None yet
Development

No branches or pull requests

2 participants