Main siteMain site  ForumForum  ForumSearch  Private messageEmail contact  RegisterRegister  Log inLog in 
Topic: problem with serial port
Reply to topic
Author Message
SAFA



Joined: Jun 20, 2018
Posts: 2

PostPosted: Jun 20, 2018 1:05 AM    Post subject: problem with serial port

Hi,

I have some trouble with serialport! I face an error in one of my designs: "Device Initialization failed, code=-6" while it works fine in other designs.
what is error code -6?

Before this error it stated that COM port is used by another application. I removed and connected my FTDI USB2serial and even changed its COM port number but the error remained. When I disable and enable the device again, new error with code -6 was appeared.
jarek



Joined: Oct 22, 2007
Posts: 605

PostPosted: Jun 20, 2018 9:25 AM    Post subject:

I assume you use Vilistus and not SerialPort element. Those 2 are completely different implementations. So one might work and not the other.

With serial port problems it is usually about making sure that drivers are installed and no other application is connecting to the same port.

Code -6 is a general error when accessing the port.
SAFA



Joined: Jun 20, 2018
Posts: 2

PostPosted: Jun 20, 2018 9:33 AM    Post subject:

Thank u Jarek for your fast response.
You are right. I forgotten to delete Vilistus in my design. So both of Vilistus and serialport were trying to access the COM port.
Reply to topic