FTDI Community

Please login or register.

Login with username, password and session length.
Advanced Search  

News:

Welcome to the FTDI Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ FTDI Support


New Bridgetek Community is now open

Please note that we have created the Bridgetek Community to discuss all Bridgetek products e.g. EVE, MCU.

Please follow this link and create a new user account to get started.

Bridgetek Community

Pages: 1 ... 7 8 [9] 10
 81 
 on: November 21, 2023, 12:30:59 AM 
Started by DRN - Last Post by DRN
I need to use FT232H to control an I2C bus, on Windows 10, in a C++ application.
I'm using the AdaFruit FT232H Breakout (Product ID: 2264) on a Windows 10 PC.
Using the latest FTDI DLL.

I've got a Qwiic sensor board connected to the breakout board's Qwiic connector.
The sensor board and cable work fine with a Microchip MCP2221 USB-I2C adapter so they're AOK.
But I can't access the I2C sensor using the FT232H - library goes into an infinite loop.

I understand I should use the FTDI MPSSE library.
On your forum I found you have released LibMPSSE 1.0.3 to your website:
https://ftdichip.com/software-examples/mpsse-projects/

I downloaded the following and incorporated it into my project:
https://ftdichip.com/wp-content/uploads/2022/07/LibMPSSE_1.0.3.zip

Unfortunately, inside I2C_InitChannel, FTDI's libMPSEE software goes into an infinite loop in FT_InitChannel.
The call stack is attached.

Any idea what is going on???
Is there an updated version of the library with bugfixes?
Thanks in advance for any help,
Best Regards, Dave


PS: Here's the program output:
Hello World!
ftd2xx.dll loaded OK!
Found at least one channel on FT232H
Information on channel number 0:
                Flags=0x2
                Type=0x8
                ID=0x4036014
                LocId=0x22
                SerialNumber=FTP6SN3W
                Description=FT232H
                ftHandle=0x0 (0 unless channel is open)

Version Check
libmpsse: 00010001
libftd2xx: 00030216

handle=0xc586c8 status=0

>>> Goes into infinite loop inside I2C_InitChannel...

PS: With an older version of the library, the channel initialized but I could not access
the I2C device (it always reported FT_DEVICE_NOT_FOUND).

 82 
 on: November 16, 2023, 06:05:07 PM 
Started by jhgorse - Last Post by jhgorse
Hi,

My name is Joe. I have been doing embedded projects since 2001. I have used FTDI for my USB bridges to UART and SPI.

Cheers,
Joe

 83 
 on: September 20, 2023, 08:25:21 PM 
Started by xenon68 - Last Post by xenon68
Tools: Vinculum ii IDE
Chip: 32pin VNC2
Application size has plenty of flash left, only at 227000 bytes.

For some reason when I write a single page of flash, the SPI device stops working...  any ideas?

Basically this is all I am doing, then after that the SPI stops working. Tried other page locations.  What is odd, is the flash write works. I can restart, and read the correct data from the flash.

flash_writePage(0x7ff, temp_string);


 84 
 on: August 22, 2023, 10:34:48 AM 
Started by bryantsorensen - Last Post by FTDI Community
HI Petrov,

We are not sure when the next update for the library will be released, however, as the source code is available on the website, customers can make their own changes and rebuild the library for their own use.

Customers can also develop their own code using D2XX direct driver. You can have a look at Command Processor For MPSSE and MCU Host Bus Emulation Modes this will allow you to not rely on LibMPSSE.

Best Regards
FTDI Community 

 85 
 on: August 21, 2023, 09:07:43 PM 
Started by bryantsorensen - Last Post by Petrov
Is there any update on this issue?
When can we expect the next release of the library?

 86 
 on: August 21, 2023, 03:33:12 PM 
Started by FTDI Community - Last Post by FTDI Community
Complete our customer survey for your chance to win a Holy Stone HS175D drone worth £190!

Your opinion is extremely important to us, and we rely on customer feedback in order to continuously make improvements and ensure that we are addressing any issues. The responses we receive from our Annual Customer Survey are pivotal as part of this process. Plus, every entrant into the survey is entered into our prize draw, and one lucky winner will be awarded with a Holy Stone HS175D drone worth £190!*

Please follow this link to the Survey:  FTDI Survey

*Holystone and their respective logos are trademarks or registered trademarks of Holy Stone.  Holy Stone is not a participant in or sponsor of this promotion.

The promotion runs until 30th of September 2023.

Best Regards,
FTDI Community

 87 
 on: August 15, 2023, 04:20:12 PM 
Started by kiran - Last Post by FTDI Community
Hello,

When using LibMPSSE, GPIOL[0:3] can only be used as SPI chip selects.
 
When using LibMPSSE, there is no way to control GPIOL[0:3] as GPIO.
 
LibMPSSE demonstrates controlling the higher line bytes (GPIOH) while using SPI on the lower line bytes using the following functions:
 
FT_WriteGPIO
FT_ReadGPIO
 
If you want to control some of the unused lower line bytes on the same ADBUS as SPI then see AN_411 FTx232H MPSSE I2C Master Example in C which demonstrates GPIO usage with MPSSE using D2xx direct (not using LibMPSSE).
This could be used as a base to understand using both I2C/GPIO in the same code.

Best Regards,
FTDI Community

 88 
 on: August 15, 2023, 04:16:01 PM 
Started by logcat00 - Last Post by FTDI Community
Hello,

According to LibMPSSE-SPI User Guide when using our MPSSE library it's possible to run at 30Mhz:

uint32 ClockRate
This parameter takes the value of the clock rate of the SPI bus in hertz. Valid range for ClockRate is 0 to 30MHz.

So you can maybe try with our library which has source code provided for reference.

These also may be useful to you:

AN_114 Interfacing FT2232H Hi-Speed Devices To SPI Bus
AN_180 FT232H MPSSE Example – USB Current Meter using the SPI Interface

Other software examples exist:

https://ftdichip.com/software-examples/mpsse-projects/#usb-to-spi-interface

Also please also note, SPI modes 1 and 3 are not supported with our MPSSE engine.
So please check that your SPI device doesn’t work with these modes.

We also have a support office in Taiwan.

Best Regards,
FTDI Community

 89 
 on: August 14, 2023, 05:07:19 PM 
Started by logcat00 - Last Post by logcat00
hi ~
May I ask if using the 0x13 command and 0x11 command can achieve an SPI speed of 30 MHz?
I have found that 3-line SPI (9-bit) cannot achieve 30 MHz. Is there a 9-bit command available?
see AN_108 Command Processor For MPSSE and MCU Host Bus Emulation Modes .
thank you so mcuh!!

 90 
 on: August 07, 2023, 10:35:28 AM 
Started by kiran - Last Post by kiran
Hi,
Iam using FT2232h module in MPSSE mode for I2c  and how the remaining 4 pins(ADBUS4-ADBUS7) works,iam using libmpsse library 

Pages: 1 ... 7 8 [9] 10