FTDI Community
General Category => Discussion - Software => Topic started by: elpic76 on July 19, 2018, 10:48:20 AM
-
Good morning,
I'm trying to interface both the ME813AU-WH50C and ME812AU-WH50C using visual studio 2015 and the SampleApp but I've problem with the ft4222 configuration as SPI master.
Debugging the code the device firstly is CLOSED then it opens using FTOpenEx but I can communicate with the device and I can't test the display.
Below you find the log of the sample app output:
Number of D2xx devices connected = 2
Dev 0:
Flags= 0x2, (DEVICE_CLOSED) (High-speed USB)
Type= 0xa
ID= 0x403601c
LocId= 0x2121
SerialNumber= A
Description= FT4222 A
ftHandle= 00000000
[1]th of total connected devices is FT4222 A (SPI) : host->hal_hanlde = 01126FB0
Dev 1:
Flags= 0x0, (DEVICE_CLOSED) (Full-speed USB)
Type= 0xa
ID= 0x403601c
LocId= 0x2122
SerialNumber= B
Description= FT4222 B
ftHandle= 00000000
[2]th of total connected devices is FT4222 B (GPIO) : host->hal_hanlde = 01126FB0
SPI:chipversion = 0x42220300 dllversion = 0x1020133
User Selected SPI clk : 20000 KHz
Configured clk : Ft4222 sys clk enum = 3 , divisor enum = 2
FT4222 clk = 3
Init FT4222 as SPI master device failed!
FT4222_SPI_SetDrivingStrength failed!
Init FT4222 as GPIO interface failed!
FT4222_GPIO_Write error = 3
FT4222_GPIO_Write error = 3
2157 FT4222_SPIMaster_SingleWrite failed, SizeTransfered is 0 with status 3
Gpu_Hal_FT4222_Wr failed
FT4222_SPIMaster_SetLines failed with status 3
SPI write failed = 3
FT4222_SPIMaster_SingleWrite failed, SizeTransfered is 0 with status 3
Gpu_Hal_FT4222_Rd failed
FT4222_SPIMaster_SingleWrite failed, SizeTransfered is 0 with status 3
Gpu_Hal_FT4222_Rd failed
FT4222_SPIMaster_SingleWrite failed, SizeTransfered is 0 with status 3
Gpu_Hal_FT4222_Rd failed
FT4222_SPIMaster_SingleWrite failed, SizeTransfered is 0 with status 3
Gpu_Hal_FT4222_Rd failed
FT4222_SPIMaster_SingleWrite failed, SizeTransfered is 0 with status 3
Gpu_Hal_FT4222_Rd failed
FT4222_SPIMaster_SingleWrite failed, SizeTransfered is 0 with status 3
Gpu_Hal_FT4222_Rd failed
FT4222_SPIMaster_SingleWrite failed, SizeTransfered is 0 with status 3
Gpu_Hal_FT4222_Rd failed
....
What can I do to solve the problem?
Best Regards.
Mosè
-
Hi,
The example may have an older version of the libFT4222H library (targeted to FT4222H rev B) inside. The FT81x modules use the revision C of the FT4222H
Please see the imports\LibFT4222H\lib folder inside this download.
http://www.ftdichip.com/Support/SoftwareExamples/LibFT4222-v1.4.1.zip (http://www.ftdichip.com/Support/SoftwareExamples/LibFT4222-v1.4.1.zip)
If you copy these updated DLL/lib files to your sample app folder replacing the existing ones then this should resolve the issue.
Regards,
FTDI Community
-
Dear Sirs,
thanks to your suggestions I was able to solve my issue.
Now I'll continue the development on a ME813A-WH50C and on a ME812A-WH50R using an external microcontroller NXP LPC2364 in single SPI.
Best Regards.
Mosè