-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
base: master
Are you sure you want to change the base?
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 ℹ️ The |
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 ℹ️ The |
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
|
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