Closed
Description
Describe the problem
The Tools > Get Board Info option does not correctly identify the board on the selected port. Instead it provides information based on the selected board core (i.e. Tools > Board), which I think is far less useful.
To reproduce
- Select Tools > Board > Arduino AVR Boards > Arduino UNO.
- Open Tools > Port and select any port that does not have an Arduino UNO connected.
- Select Tools > Get Board Info
The output will be based on the selected board, not on what (if anything) is connected to the selected port.
Here an Arduino Mega 2560 Rev3 is on the selected port (which is correctly identified in the port menu):
Unlike IDE 1.x, SN is not included. This feature has been requested (#1435).
But Tools > Get Board Info incorrectly identifies it as an Arduino UNO.
Expected behavior
- If a board can be identified on the port: Provide information about the board.
- If no board could be identified: Show an error message, e.g. Please select a port to obtain board info or Native serial port, can't obtain info
Example output from IDE 1.8.19 for an Arduino Mega 2560 on the port and Arduino UNO as the selected board:
Arduino IDE version
2.0.0-nightly-20220922
Operating system
macOS
Operating system version
12.4 (21F79)
Additional context
Related:
Additional reports:
- Incorrect PID in "view board info" tab #1647
- https://forum.arduino.cc/t/ide-and-avrdude-command-line/1070148/12
Issue checklist
- I searched for previous reports in the issue tracker
- I verified the problem still occurs when using the latest nightly build
- My report contains all necessary details