Public bug reported:

Hello!

I have three chips FT232BL, FT232R and FT230X. I am using them as a VCP on 
Ubuntu 18.04. According to Application Note AN_120 from FTDI, the baud rate 
generators of all these chips have 8 sub-integer prescalers. Divisor = 3000000 
/ baudrate = n + 0, 0.125, 0.25, 0.375, 0.5, 0.625, 0.75, 0.875. Where n is an 
integer between 2 and 16384.
So, I measured real baud rates, for n = 2 in combination with all possible 
sub-integer prescalers.
And it turned out that all sub-integer prescalers worked for FT232BL, FT232R 
chips.

And for the FT230X, only a few prescalers work correctly. The following shows 
exactly how prescalers behave:
0          - correct
0.125  - correct
0.25     - correct
0.375   - WRONG! (works like 0.125)
0.5        - correct
0.625    - WRONG! (works like 0.5)
0.75      - WRONG! (works like 0.25)
0.875    - WRONG! (works like 0.125)

The same for the other n.

I think it is a driver problem, it initializes the sub-integer prescaler
incorrectly. Since under Windows FT230X works fine with all sub-integer
prescalers.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-modules-extra-5.4.0-54-generic 5.4.0-54.60~18.04.1
ProcVersionSignature: Ubuntu 5.4.0-54.60~18.04.1-generic 5.4.65
Uname: Linux 5.4.0-54-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.20
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Thu Nov 26 15:12:45 2020
InstallationDate: Installed on 2019-10-11 (411 days ago)
InstallationMedia: Ubuntu 18.04.3 LTS "Bionic Beaver" - Release amd64 (20190805)
SourcePackage: linux-hwe-5.4
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: linux-hwe-5.4 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug bionic

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1905696

Title:
  Wrong setting baudrate for FTDI chip FT230X

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-hwe-5.4/+bug/1905696/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to