Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add copies of all Arduino AVR Boards programmers
The platform.txt of the selected programmer is used for Sketch > Upload Using Programmer. This means that the MightyCore avrdude.conf is not used for Upload Using Programmer when any programmer not in the MightyCore programmers.txt is selected which causes failure(eg., `avrdude: AVR Part "atmega324a" not found.`) for any of the boards that require the added part definitions. This issue is fixed by selecting the MightyCore copy added in this commit from Tools > Programmer. These programmers are copied from Arduino AVR Boards 1.6.9 with only the name values modified to identify them as the MightyCore copies. I left off the Atmel STK500 development board programmer because it is identical to the STK500 as ISP programmer already included with MightyCore.
- Loading branch information
Showing
3 changed files
with
77 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
777c5d6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not seem to always be true, but adding a superfluous
programmers.txt
seems to be the best way to ensure the rightplatform.txt
pattern is always used on all platforms (seems to work differently on Windows and OSX).777c5d6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bigjosh My experience is based on Windows. I don't own a Mac. Are you saying that the platform.txt associated with the selected programmer is NOT used for Sketch > Upload Using Programmer on OSX? What is the behavior?
777c5d6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@per1234 We did not exhaustively test which combinations of "upload" and "upload via programmer" map to which recipes in which platform.txt files, but it was clear that in some cases OSX picked a different one than Windows did. While ugly, adding this extra programmers.txt seems to force the IDE to always use the one in the board's platform.txt, and this seems to be the way most people get around this problem.
777c5d6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also found oddly that adding a
rate
parameter to the upload tag in the boards.txt file caused the upload recipe from the boards' platform.txt to be used on Windows even if a programmers.txt was not present in the board directory. There must be some hard coded rules in the SerialUploader class in the IDE that special case out some ad-hoc cases, which is frustrating!