Failed uploading

I know that you seem to have solved it

This is the latest version of the instructions that I'm aware of: Port monitor error: command 'open' failed: Invalid serial port. Could not connect to COM serial port - #49 by ptillisch

Up till now the "set com-state" errors only have occured for clones with CH340.

  1. The loopback test is non-conclusive for boards with that chip.
  2. The error that you got with the loopback test has no meaning regarding the loopback test itself. But yes, you did have a problem.