-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Select (first) target board when port is selected and has known board #7120
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
Select (first) target board when port is selected and has known board #7120
Conversation
✅ Build completed.
Please test this code using one of the following:
⬇️ http://downloads.arduino.cc/javaide/pull_requests/arduino-PR-7120-BUILD-737-linux32.tar.xz
⬇️ http://downloads.arduino.cc/javaide/pull_requests/arduino-PR-7120-BUILD-737-linux64.tar.xz
⬇️ http://downloads.arduino.cc/javaide/pull_requests/arduino-PR-7120-BUILD-737-windows.zip
⬇️ http://downloads.arduino.cc/javaide/pull_requests/arduino-PR-7120-BUILD-737-macosx.zip
⬇️ http://downloads.arduino.cc/javaide/pull_requests/arduino-PR-7120-BUILD-737-linuxarm.tar.xz
i️ The linuxarm
build is still experimental and may not be always available.
I think this is really great but it might get annoying always fighting it when using a custom bootloader that requires a different board selection from that indicated by the VID/PID. So it would be nice to have a way to disable it. Since custom bootloaders are a more advanced usage I think it would be fine to have this be a preferences.txt only setting.
Agreed with @per1234, let's keep it as a default setting and no need for a UI option, but we can have a way to disable it via preferences.txt
Nice work @sandeepmistry!
Could this work?
PS: I rebased it on beta-1.9, I think we'd better merge it there to get some feedback.
@facchinm looks good! I'll give you write access to my fork so you can push it there ...
The setting is off by default. Per-sketch board autoselection could work better because: * Most 3rd party boards ship with generic USB to serial converters, making autoselection useless * The port menu is not easily reachable as it is in Create
@facchinm I've cherry-picked your commit for the preference.
✅ Build completed.
Please test this code using one of the following:
⬇️ http://downloads.arduino.cc/javaide/pull_requests/arduino-PR-7120-BUILD-739-linux32.tar.xz
⬇️ http://downloads.arduino.cc/javaide/pull_requests/arduino-PR-7120-BUILD-739-linux64.tar.xz
⬇️ http://downloads.arduino.cc/javaide/pull_requests/arduino-PR-7120-BUILD-739-windows.zip
⬇️ http://downloads.arduino.cc/javaide/pull_requests/arduino-PR-7120-BUILD-739-macosx.zip
⬇️ http://downloads.arduino.cc/javaide/pull_requests/arduino-PR-7120-BUILD-739-linuxarm.tar.xz
i️ The linuxarm
build is still experimental and may not be always available.
Note: we've made this opt-in as per the discussion with @facchinm, a 3rd party core could register the USB vid/pid of an existing board and might be selected as the board type when it shouldn't be.
I hope you'll avoid adding this to the Preferences dialog box.
That box is now quite large, and relative to most Arduino's history, growing rapidly. It already has tabs. If this GUI preference growth continues, eventually Arduino preferences will have the sort of UI complexity seen in IAR Workbench.
This commit is part of arduino#7120 by @sandeepmistry
This commit is part of #7120 by @sandeepmistry
This commit is part of #7120 by @sandeepmistry
This commit is part of #7120 by @sandeepmistry
This commit is part of #7120 by @sandeepmistry
This commit is part of #7120 by @sandeepmistry
This commit is part of #7120 by @sandeepmistry
This commit is part of #7120 by @sandeepmistry
This commit is part of #7120 by @sandeepmistry
This commit is part of #7120 by @sandeepmistry
This commit is part of #7120 by @sandeepmistry
This commit is part of #7120 by @sandeepmistry
This commit is part of #7120 by @sandeepmistry
This commit is part of #7120 by @sandeepmistry
CLAassistant
commented
Apr 9, 2021
CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.
✅ facchinm
❌ sandeepmistry
You have signed the CLA already but the status is still pending? Let us recheck it.
Proposal to auto select the right target board type when a port is selected and we can identify the board via USB VID/PID.
This saves a menu click when switching between two connected boards. We could add a preference to enable this behaviour. cc/ @00alis