question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi! I’m working on a board called Tigard at the moment, which is based off the FTDI FT2232H. The FT2232H is similar to the FT232H, but with dual MPSSEs. It would be awesome if I could use Tigard (or some of the other FT2232H-based boards such as timep) with CircuitPython/Blinka, and I see there is already support for the FT232H! I’d be happy to take this work on myself, but wanted to ask some questions before throwing a PR at you so my work can hopefully be merged upstream if this is something Blinka wants to support:

There are a few options for implementing AFAICT:

  • Make a generic class that’s used for both the FT232H and the FT2232H classes (similar to how the “amlogic” folder is structured) . Since the two chips are really similar, I think this makes the most sense. I’m not sure about the name, maybe something along the lines of ftdi, ftdi-mpsse, or ftxxxx?
  • Just copy the FT232H class and make a FT2232H class. This is easy and keeps the FT232H code as-is but super redundant.
  • Simply modify the FT232H class to look for ftdi:///1 instead of ftdi://ftdi:ft232h/1. This technically works (I have tested it), but you can only use the first MPSSE so it’s really not ideal.

I noticed there’s also issue #260, which is pretty similar to this, but I don’t think makes sense given how Blinka works? The difference is that this issue describes adding support for a new “microcontroller” (the FT2232H) that happens to have two MPSSEs, instead of adding support for using two of the same “microcontroller” (two FT232Hs) each with one MPSSE. However, if support for the latter was ever going to be added, I think a more generic FTDI class would help with making that easier.

I think the first is the clear choice, but I’m not super familiar with this library, so let me know what you think, thanks!

Edit: implemented the first, still needs some more testing but check it out here: https://github.com/tigard-tools/Adafruit_Blinka

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:28 (17 by maintainers)

github_iconTop GitHub Comments

2reactions
ladyadacommented, Mar 26, 2021

yes! we’d look at a PR that adds FT2232H support without breaking FT232H support, on mac/win/linux… but none have been submitted yet 😃

1reaction
ladyadacommented, Mar 26, 2021

ok we also dont have an FT2232 right now, but we’ll find a dev board for one!

Read more comments on GitHub >

github_iconTop Results From Across the Web

FT2232HQ - FTDI
The FT2232H is FTDI's 5th generation of USB devices. ... UART Interface supports 7/8 bit data, 1/2 stop bits, and Odd/Even/Mark/Space/No Parity.
Read more >
FTDI compatibility with TMS320F28335 - C2000 ... - TI E2E
The FT2232H, we have also used, but to emulate the XDS100V2 class of ... the XDS100V2/FT2232H https://e2e.ti.com/support/microcontrollers/ ...
Read more >
New FT2232HL Development Board FT2232H ... - AliExpress
New FT2232HL Development Board FT2232H USB Port Support JTAG openOCD. 4.9. 8 Reviews31 orders. Enjoy special discounts! US $20.38US $21.68 -6%. foreground.
Read more >
New FT2232HL Development Board FT2232H USB ... - eBay
Find many great new & used options and get the best deals for New FT2232HL Development Board FT2232H USB Port Support JTAG openOCD...
Read more >
Getting Started with OPENOCD Using FT2232H Adapter for ...
We'll use an FT2232H as the bridge to translate signals from the USB port to the SWD interface. ... OpenOCD debugger supports a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found