SetCommState() fails on PC when connected to USB in CDC mode for iMX6

@alex.tx I was using the driver from comment 18 in that thread. That’s the version which works on the T20 and almost works on the iMX6:
Can we access the virtual COM port using COMx rather than \.\wceusbsh001? - Technical Support - Toradex Community

I tried the driver from comment 30 on that thread as you suggested in your last comment:
Can we access the virtual COM port using COMx rather than \.\wceusbsh001? - Technical Support - Toradex Community

I found that the driver from comment 30 did not work at all on the iMX6. Windows doesn’t recognize that there is a device attached to the USB port, there is no beep when I connect the cable and nothing appears in the device manager. I notice that comment #30 refers to CE6, I am using CE7 could it be that the driver only supports CE6?