Diagnosis Playbook
The Core Interpretation
arduino-cli board list does two separate things:
- Discover the port.
- Try to identify the board model.
Many M5Stack devices expose only a generic USB-serial bridge to Windows. That means port discovery can be healthy while board identification stays Unknown.
Decision Flow
1. Does Windows see a healthy port?
Get-PnpDevice -PresentOnly | Where-Object { $_.Class -in @('Ports','USB') } |
Select-Object Class,FriendlyName,Status,InstanceIdIf the target device is present and Status is OK, the USB transport is usually healthy.
2. Can arduino-cli find the port?
arduino-cli board list
arduino-cli board list --format jsonIf the COM port appears but the board name is missing, treat that as a board identity gap, not an automatic driver failure.
3. Is the ESP32 core installed?
arduino-cli core update-index
arduino-cli core install esp32:esp32Without the ESP32 core, compile, attach, and upload steps will all be incomplete.
4. Can esptool talk to the chip?
& "C:\Users\<User>\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\5.1.0\esptool.exe" --chip auto --port COM11 chip-idIf esptool can identify the chip, you have strong proof that the port is real even if the board model remains Unknown.
5. Attach the intended FQBN explicitly
arduino-cli board attach -p COM11 -b esp32:esp32:m5stack_core2 D:\Prj\M5\VerifyCore2This bridges the gap between a generic serial bridge and the actual board you intend to use.
What Not To Do First
- Do not recommend random driver reinstalls if Windows already shows the port as healthy.
- Do not treat
Unknownby itself as proof of a broken cable or missing driver. - Do not skip the attach step when the project already has a clear intended board.
Move On To Development
Once the diagnosis is stable, switch to Development Support and use the bundled sample sketch and helper scripts instead of repeating one-off commands by hand.