-
Notifications
You must be signed in to change notification settings - Fork 13.3k
json boards.txt parser to help building FQBN #5657
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
base: master
Are you sure you want to change the base?
Conversation
@per1234 please check this update per your suggestion |
human output from boards.txt parsing, showing fqbn meanings |
@per1234 per your comment
Should I pursue with this script ? |
@d-a-v Hi! Sorry this got lost in my "to-do" list. The issue of people not understanding how to determine the FQBN for a board for use in arduino-cli or the Arduino IDE CLI commands has come up repeatedly. My usual advice of running a compilation in the IDE with verbose output on and then digging the FQBN out of the output is certainly not ideal. Learning to determine an FQBN just from looking at a hardware package is not simple for someone without a prior understanding of how Arduino's hardware package system works. I do think that a dedicated tool that made this easy could be very useful to that type of user. That is in addition to potential for the script to be very useful for automated processes, as we discussed previously. I do think that, if the script was made applicable to all hardware packages, it would make sense to publish it outside the esp8266/Arduino repository to make it easier for people to find and use. This repository could always add it as a subtree or submodule if it were wanted. I can't speak for the Arduino developers on whether they would be interested in adding your script to one of their repositories. Given unlimited resources, I think it would be better to implement something similar in the arduino-cli code, rather than having a separate tool. I see your script as being a 3rd party solution to a need Arduino has not provided for. For that reason, I would just publish it in a dedicated repository were it my project. There's certainly no harm in submitting a PR to Arduino though if you think it makes sense in one of their repos. |
Output looks like:
With
--machine
option:@per1234 #5572