v0l / radio_tool

Radio firmware tool
https://discord.gg/V596cyatmv
GNU General Public License v3.0
74 stars 17 forks source link

"Failed to enumerate serial ports" on windows #24

Open UnHolds opened 1 year ago

UnHolds commented 1 year ago

The error occurs due to the registry key: HKEY_LOCAL_MACHINE\\HARDWARE\\DEVICEMAP\\SERIALCOMM not existing, even if the radio is plugged in in DFU mode.

key is checked in serial_radio_factory.cpp

To create this entry I just plugged in any device that opens a serial port. Now the registry key exists. After that, I can unplug the serial device and flash the radio in DFU mode.

The same problem occurs again if the PC is rebooted.

AlexandreRouma commented 11 months ago

It's an easy fix, if the author wants a pull request I can submit it