Closed m410 closed 1 year ago
No monitor available for the port protocol serial
Thanks for reporting it to us. Interesting one. Please check what IDE2 logs when you plug/unplug the 'raspberry pi pico w' board.
You can start IDE2 by adjusting the log level to debug
. On my macOS, it looks like this:
/Applications/Arduino\ IDE\ 2.1.0.app/Contents/MacOS/Arduino\ IDE --log-level debug
When IDE2 has started, please clean the terminal, and plug/unplug the board. IDE2 will log things. Please share everything, but I am looking for such events in particular. These are the events when I plugin in the RP2040 board:
2023-06-16T13:15:40.306Z discovery-log INFO {"eventType":"add","port":{"matchingBoardsList":[{"name":"Arduino Nano RP2040 Connect","fqbn":"arduino:mbed_nano:nanorp2040connect","isHidden":false}],"port":{"address":"/dev/cu.usbmodem14301","label":"/dev/cu.usbmodem14301","protocol":"serial","protocolLabel":"Serial Port (USB)","propertiesMap":[["pid","0x005E"],["serialNumber","FFFFFFFFFFFFFFFF"],["vid","0x2341"]],"hardwareId":"FFFFFFFFFFFFFFFF"}},"error":""}
Or the Board config changed:
is also very interesting in this case:
2023-06-16T13:15:40.317Z root DEBUG Board config changed: {"selectedBoard":{"name":"Arduino Nano RP2040 Connect","fqbn":"arduino:mbed_nano:nanorp2040connect","port":{"address":"/dev/cu.usbmodem14301","addressLabel":"/dev/cu.usbmodem14301","protocol":"serial","protocolLabel":"Serial Port (USB)","properties":{"pid":"0x005E","serialNumber":"FFFFFFFFFFFFFFFF","vid":"0x2341"},"hardwareId":"FFFFFFFFFFFFFFFF"}},"selectedPort":{"address":"/dev/cu.usbmodem14301","addressLabel":"/dev/cu.usbmodem14301","protocol":"serial","protocolLabel":"Serial Port (USB)","properties":{"pid":"0x005E","serialNumber":"FFFFFFFFFFFFFFFF","vid":"0x2341"},"hardwareId":"FFFFFFFFFFFFFFFF"}}
Thank you for helping!
(Normally, I would have asked you to attach the log files, but messages with debug
level are missing from the log 🤦)
Update:
but messages with
debug
level are missing from the log
Hi! I’m away from my computer, I’ll rerunnwirh debug on by Monday morning EST
Here's the output arduino-ide-debug.txt
Update: I initially had the pico connected when I started Arduino IDE. disconnected then reconnected it.
Thanks for the logs, @m410.
I have received some internal assistance, and the problem seems to be in the platform.txt
of the core. All discoveries and monitors must be specified in the platform.txt
. Something like this:
# Required discoveries and monitors
# ---------------------------------
pluggable_discovery.required.0=builtin:serial-discovery
pluggable_discovery.required.1=builtin:mdns-discovery
pluggable_monitor.required.serial=builtin:serial-monitor
Here are a few PRs as an example of how people ported a legacy platform to the newer pluggable discovery and monitor:
If you wonder why the same sketch works in IDE 1.x but not in 2.x, well, I had the same question, and maintainers of the core logic explained to me that this is expected.
Since the necessary changes have to be performed in the core, I decided to close this IDE2 issue.
You know where to make the changes if you are the core maintainer. If you are a user of the core, please request a change on their GitHub page, or ask around on the Arduino forum: https://forum.arduino.cc/c/software/ide-2-x/93.
Describe the problem
I'm not able to use the serial monitor with arduino-pico. I've only tried using 'raspberry pi pico w'. Scripts build and flash the device as expected but the serial monitor never attaches.
Error from commandline:
To reproduce
Follow these install instructions: https://github.com/earlephilhower/arduino-pico#installation I've tried library versions 3.2.2 & 3.2.1.
I used this basic blink sketch, but others show the same behavior. This same sketch works for me on IDE 1.8.19.
Expected behavior
Serial monitor should work.
Arduino IDE version
2.1 & 2.1.1-nightly
Operating system
macOS
Operating system version
Ventura 13.4
Additional context
Under discussion at:
https://forum.arduino.cc/t/no-monitor-available/1138307
Issue checklist