Error: ser_open(): can't set com-state for "\\.\COM6"

See if Port monitor error: command 'open' failed: Invalid serial port. Could not connect to COM serial port - #49 by ptillisch solves the "Can't set com-state" problem.

It's a known issue, probably due to reject / fake CH340 chips used on boards from China.