Skip to content

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

Closed
Drachenkaetzchen opened this issue Dec 2, 2013 · 20 comments
Closed

Plugin ignores custom boards.txt #95

Drachenkaetzchen opened this issue Dec 2, 2013 · 20 comments

Comments

@Drachenkaetzchen
Copy link

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.

@jantje
Copy link
Member

jantje commented Dec 2, 2013

What do yuo mean with "the plugin silently ignores the file."?

@Drachenkaetzchen
Copy link
Author

It doesn't show up in the boards.txt dropdown when I create a new project.

@jantje
Copy link
Member

jantje commented Dec 2, 2013

Can you please elaborate a bit. It is very unclear to me what you are trying to do and what not works.
As far as I know Arduino delivers a boards.txt in the location you mentioned.
This file is being processed and is shown in the dropdown.
That is if you are using V2 of the plugin.

@Drachenkaetzchen
Copy link
Author

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 ).

@jantje
Copy link
Member

jantje commented Dec 2, 2013

copy /home/felicitus/Arduino/hardware/arduino/ to /usr/share/arduino/hardware/felicitus and it should work

@Drachenkaetzchen
Copy link
Author

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/02/2013 09:27 PM, jantje wrote:

copy /home/felicitus/Arduino/hardware/arduino/ to
/usr/share/arduino/hardware/felicitus and it should work

I don't wish to have custom files in system directories, as they are
most likely to vanish on any update. That's why the Arduino IDE parses
the ~/Arduino directory.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iQEcBAEBAgAGBQJSnO2rAAoJEFfhxMvO1P2N2nkIAKNIwEUQIaShNgr74CPgZGAn
TAzpSIWFhJf6YBHrWTimaiVUg4eYMSX8w8yJV8fH7KQxgjgc/0H7qiA0u16e22iV
O1mHp7JKcT3YmPdmkQ+3wmcBVQ9BkAVcgPJ+OIyk1k/nFDXxnMzqXc5fUSi06jQU
lirM+p+pfZtOUm8IIL55K1JzyDUdM/WNsqYSZ5jXYIz4LxREeHTQMFyRDdeJVS0L
gpMe6BLBWeVe3SojWlw506tNVvrDgNylRTUOvMN1chE3zcyY3FOuOZLfGbFXFbZf
ZffpaOyXpMH5JikS8kX6RYvuhROi6w64kf9r26DikWpdZqEULgJlho2kFS07y2U=
=Jmpj
-----END PGP SIGNATURE-----

@jantje
Copy link
Member

jantje commented Dec 2, 2013

I would not be surprised the Arduino core team did something like that but .....
It is not specified in their specification https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5---3rd-party-Hardware-specification
If you don't want to copy the folder I see following options:

  1. create a link
  2. update the plugin.
    jantje

@Drachenkaetzchen
Copy link
Author

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.

@jantje
Copy link
Member

jantje commented Dec 2, 2013

I never read it that way but you are right.
I need to think about how I will handle this from the gui point of view.
Jantje

@Drachenkaetzchen
Copy link
Author

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)

@jantje
Copy link
Member

jantje commented Dec 5, 2013

Been thinking about this.
I'll add a list of "hardware folders" to the configuration of the plugin. I'll see wether I can add the "arduino defaults there automatically.

@brodykenrick
Copy link
Contributor

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:

Been thinking about this.
I'll add a list of "hardware folders" to the configuration of the plugin. I'll see wether I can add the "arduino defaults there automatically.


Reply to this email directly or view it on GitHub.

@jantje
Copy link
Member

jantje commented Dec 5, 2013

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.
Forcing to have the hardware folder at the same location (so also in the workspace) is from that point of view not a good idea.
That is why I came up with a list of "hardware folders". The benefits I see are:

  1. The plugin can automatically add ~arduino/hardware
  2. The plugin can automatically add personal libraries/../hardware (if existing)
  3. A hardware developer can add his version controlled hardware folder
    Best regards
    Jantje

@brodykenrick
Copy link
Contributor

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.

@jantje
Copy link
Member

jantje commented Dec 5, 2013

"A downside of specifying the sketchbook is that a newcomer might expect that all their sketches would be available in Eclipse. "
This is exactly why I do not want sketchbook.
And I did get some people asking about the personal library stuff.
The hardware folders on the other hand could be empty. So probably less questions asked :-)

@jantje
Copy link
Member

jantje commented Dec 10, 2013

I implemented this for now with a list of 1 items ;-)
Didn't know how to easily have the ui and storage for a list of folders.
I also added defaults for the library and hardware.
If the folders do not exist they will be created.
I tested with my teensy setup but I needed to change the platform.txt and boards.txt file.
Jantje

@jantje jantje closed this as completed Dec 10, 2013
@scargill
Copy link

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?

@jantje
Copy link
Member

jantje commented Dec 30, 2014

I guess you have changed your sketchbook folder in the arduino preferences from users/peter/Arduino to users/peter/documents/arduino.
If you undo this and move the folder it should work in arduino IDE and the Eclipse IDE

@scargill
Copy link

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.

@bobc
Copy link

bobc commented Dec 18, 2016

Did anyone manage to get this to work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants