BK7231GUIFlashTool
BK7231GUIFlashTool copied to clipboard
Not all COM ports are enumerated
Not all COM ports appear to be enumerated in the application. Mine =(Silabs CP2102 based) wasn't being enumerated, so I checked which function does the enumeration.
I saw that this was Line 83 in FormMain.cs:
string[] newPorts = SerialPort.GetPortNames();
After looking up the SerialPort class through MS it seem to check a registry entry for all COM ports:
Computer\HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM
The entries look like this:
There wasn't an entry for my device, so I added it manually and restarted the application and it worked.
I don't know the reason why my serial port wasn't populated in this registry, but adding it manually worked.