Upload using programmer from another architecture gives java.lang.NullPointerException #7034
Labels
Type: Invalid
Off topic for this repository, or a bug report determined to not actually represent a bug
I have created boards definitions for a couple of boards used in a project I'm working on. There are two avr boards but each needs it's own recipes in platform.txt, so I have created two architecture folders, let's say they are
avr
andavr2
. The board package installation looks broadly like this:I would like to be able to use AVR programmers (USBasp, AVRISP, etc.) from either of my boards, but I am only able to use a programmer when I'm using the hardware board which is in the
avr
folder. I can rename the folders soavr2
becomesavr
and vice-versa, and still only theavr
folder works. For the non-avr folder I get this error when I try to Upload Using Programmer:The same thing happens when attempting to burn the bootloader.
It seems like the problem is related to the
avr2
folder name not matching the architecture of the Arduino avr boards, so the programmers are unknown.So, my question is this: can I call a programmer from another architecture?
Is this a bug in the IDE or a known limitation? Either way, it would be nice if that error were friendlier. It took me quite a while to work out that it was the hardware folder name causing the problem.
I know I could add my own programmers using
programmers.txt
, but I don't like the idea of duplicating the existing programmers just for my board - this seems less than ideal.If it's not possible to reference a programmer from a different architecture, how should I package two avr boards which have different build recipes? Can I do that in a single platform.txt file (which would allow me to put both boards in a single folder named
avr
?The text was updated successfully, but these errors were encountered: