Closed phoddie closed 2 years ago
I was a little concerned about this being an issue. Would it be correct to follow the same assumptions as Moddable to check a particular port per platform for an existing pico? Does raspberry pi provide any sort of CLI for scanning that's similar to esptool?
I unintentionally tangled together two topics here:
I intended this issue to be about (1) only. I think (2) is a separate development task.
FWIW – an easy way to see this problem is to attach the Moddable Programmer to USB but not a device. The serial port will work, but won't reply eventually leading to an exception from esptool.py
as above.
For the pico discovery, it looks like picotool
could help with getting device info, as long as the chip is in BOOTSEL mode.
Capturing errors / exceptions from esptool shouldn't been too bad to allow for scanning without interruption. :+1:
The scan feature works very nicely for ESP8266 and ESP32. But, when neither of those is connected and instead something else is (e.g. Pico), scan exits with an exception: