Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic SiliconLabs CP210x usb driver version 10.1.1.1951 on windows 10 (Read 5660 times)
Tobias Franke
Newbies
*
Offline


Posts: 2
Joined: Jan 10th, 2018
SiliconLabs CP210x usb driver version 10.1.1.1951 on windows 10
Jan 10th, 2018 at 4:38pm
Print Post  
Same issue here on my side.
I'm running Visual Micro under Visual Studio Pro 2015. The OS is Microsoft Windows 10 64-Bit, Visual Micro states "version 1.1706.25".

I wanted to give ESP32 a try, but the modules were not recognized. So I updated the USB driver (dated 2017-11-15, version 10.1.1.1951) and finally the ESP32 have been recognized and I was able to program them (but I have to mention that I've used the Arduino IDE for that purpose so I'm not sure about ESP32 and Visual Micro Serial Monitor compatibility).

Next I wanted to switch back to my ESP8266 devices and encountered the exact issue mentioned by the original poster. Visual Micro compilation works (using the "Core Development Module"), download too, serial monitor not. Putty instead worked without any flaws.
After removing the suspicious USB driver and installing the older one (dated 2017-09-27, version 6.7.5.1893) the serial monitor is up and running as before.

From my point of view it is a Visual Micro issue. Strange is that even after closing and re-opening the serial monitor it is not able to connect to the serial port. But the port is not blocked by any party as Putty succeeds in any attempt.

Maybe the drivers timing has changed, and Visual Micro relies on the old behavior? Or some magic IDs which have changed?

Best regards,
Tobias
« Last Edit: Jan 27th, 2018 at 9:10pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP32
Reply #1 - Jan 10th, 2018 at 4:43pm
Print Post  
Hi,

There are a lot of people using exp32 with visual micro

For comparison with the arduino ide/Putty please make sure you have the tool bar set to Release and not Debug.

Thanks
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: SiliconLabs CP210x usb driver version 10.1.1.1951 on windows 10
Reply #2 - Jan 27th, 2018 at 9:10pm
Print Post  
Thanks for the report

I have tested the SiliconLabs CP210x usb driver version 10.1.1.1951 on windows 10 and it fails to work with standard Microsoft C#

The driver throws an error suggesting it can only work with a baud rate of 9075

If you create a new windows forms c# project containing button1 and textBox1 then paste in the code below. Change the port from COM8 to your port you will see the problem.

Notice the baudRate iis set to 9075. Anything faster throws an error.

This is a driver issue however the fact that java from the arduino ide reads the port okay is annoying. I will investigate an alternative port reader but what we use is recommended by microsoft and well tried and tested (until recently)

Having said that. The 10.1 version is listed for windows universal and v6.7 listed for all other windows versions such as win10, win8, win7 etc.

https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vc...

Code
Select All
using System;
using System.Windows.Forms;

namespace WindowsFormsApp3
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        System.IO.Ports.SerialPort sp;

        private void button1_Click(object sender, EventArgs e)
        {
            sp = new System.IO.Ports.SerialPort("COM8");
            sp.BaudRate = 9075;
            // sp.BaudRate = 115200;
            sp.DtrEnable = false;
            sp.RtsEnable = false;
            sp.DataBits = 8;
            sp.StopBits = System.IO.Ports.StopBits.One;
            sp.Handshake = System.IO.Ports.Handshake.None;
            sp.Parity = System.IO.Ports.Parity.None;
            sp.ReadTimeout = 10;
            try
            {
                sp.Open();
                //sp.BaudRate = 115200;
                while (true)
                {
                    while (sp.BytesToRead > 0)
                    {
                        textBox1.AppendText(sp.ReadExisting());
                        Application.DoEvents();

                    }


                   System.Threading.Thread.Sleep(200);
                }
            }
            catch (Exception ex) {
                textBox1.AppendText(ex.ToString());
                System.Threading.Thread.Sleep(5000);
            }
            Application.Exit();
        }
    }
}
 

« Last Edit: Jan 27th, 2018 at 9:18pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tobias Franke
Newbies
*
Offline


Posts: 2
Joined: Jan 10th, 2018
Re: SiliconLabs CP210x usb driver version 10.1.1.1951 on windows 10
Reply #3 - Jan 28th, 2018 at 11:35am
Print Post  
OK, thanks for the investigation.
Then the issue seems to be related to the new driver stating a weird baud rate.

I have the same ESP32 modules at home now which I have used at work for my investigations.
I'll give them a try here on my system where ESP8266 works and ESP32 was never connected before to see if both Win10 systems behave the same.

Best regards,
Tobias
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint