-
Notifications
You must be signed in to change notification settings - Fork 131
Plugin ignores custom boards.txt #95
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
Comments
What do yuo mean with "the plugin silently ignores the file."? |
It doesn't show up in the boards.txt dropdown when I create a new project. |
Can you please elaborate a bit. It is very unclear to me what you are trying to do and what not works. |
I have an own designed arduino board ( Picture at http://log.raumzeitlabor.de/post/50490597306/mehr-lichtsteuerung ). The board definition resides in /home/felicitus/Arduino/hardware/arduino/avr/boards.txt. When I open the Arduino IDE, the Arduino IDE parses that file and I can choose my custom arduino board. The dropdown doesn't show that boards.txt file, only the standard boards.txt as supplied by the arduino IDE (which reside in /usr/share/arduino/hardware/arduino/avr/boards.txt and /usr/share/arduino/hardware/arduino/sam/boards.txt ). |
copy /home/felicitus/Arduino/hardware/arduino/ to /usr/share/arduino/hardware/felicitus and it should work |
-----BEGIN PGP SIGNED MESSAGE----- On 12/02/2013 09:27 PM, jantje wrote:
I don't wish to have custom files in system directories, as they are iQEcBAEBAgAGBQJSnO2rAAoJEFfhxMvO1P2N2nkIAKNIwEUQIaShNgr74CPgZGAn |
I would not be surprised the Arduino core team did something like that but .....
|
Actually they do: "This specification allows a 3rd party vendor/maintainer to add support for new boards inside the Arduino IDE by providing a file to unzip into the hardware folder of Arduino's sketchbook folder." The sketchbook folder is named "Arduino" in the 1.5 series. |
I never read it that way but you are right. |
I think the user should be able to define his sketchbook path - by default it should be $HOME/Arduino (at least for V2 of the plugin). Or even better, use sketchbook.path from $HOME/.arduino15/preferences.txt, as the user may re-configure his sketchbook location. (I wish that arduino had something like arduino --get-configuration, which would spit out the current configuration settings, but that doesn't seem to be the case currently) |
Been thinking about this. |
Why are you thinking of having a separate config item for hardware (in addition to the current one for personal libraries)? As both are subdirectories of the sketchbook folder it seems to me that is the configuration item that we'd want (and most quickly understandable to the new user). On Dec 6, 2013, at 1:41 AM, jantje [email protected] wrote:
|
I'm pointing my personal libraries to a folder which is under version control. In a project in the workspace where I'm doing my development so that the libraries are also under version control.
|
ok, makes sense. I use a symlink to my source controlled sketchbook replacing the sketchbook directory (on linux) so my unit of control is the sketchbook (rather than just the libs). I think you mainly develop on windows so symlinks aren't quite as friendly to use. I am thinking of the newcomer when I wonder about specifying the sketchbook instead of the personal hardware/libraries (mind you newcomers aren't too likely to have modified hardware) -- however if we add some info in the dialog saying "you should know if you need this" and that it is a subdirectory of sketchbook then that should be fine (after all you haven't had too many complaints about the personal libraries stuff I am sure). A downside of specifying the sketchbook is that a newcomer might expect that all their sketches would be available in Eclpse. Breaking apart the libs & h/w can be seen as a safe option on user expectations too then. |
"A downside of specifying the sketchbook is that a newcomer might expect that all their sketches would be available in Eclipse. " |
I implemented this for now with a list of 1 items ;-) |
I have a similar issue to this - but I'm not running Linux. On my Windows PC I have some extra board definitions in users/peter/documents/arduino/hardware Arduino IDE sees these and adds them to the list of hardware supported - one of them is a custom board I use all the time. The Eclipse IDE does not see these boards at all. What to do? |
I guess you have changed your sketchbook folder in the arduino preferences from users/peter/Arduino to users/peter/documents/arduino. |
Well, that didn't work too well. I moved my files from users/peter/documents/arduino to users/peter/arduino and not only did the hardware not show up in Eclipse but it would not longer show up in Arduino despite changing the working directory. I put the directory back into users/peter/documents/arduino - and the Arduino now showed the extra boards again - but Eclipses still does not show any additional boards. |
Did anyone manage to get this to work? |
I have my own board definition in ~/Arduino/hardware/arduino/avr/boards.txt, however, the plugin silently ignores the file. Also, I can't find any place to configure it.
The text was updated successfully, but these errors were encountered: