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

Author Topic: Sample App on ME813AU-WH50C and ME812AU-WH50C  (Read 12378 times)

elpic76

  • Newbie
  • *
  • Posts: 3
    • View Profile
Sample App on ME813AU-WH50C and ME812AU-WH50C
« 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è
Logged

FTDI Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 896
    • View Profile
Re: Sample App on ME813AU-WH50C and ME812AU-WH50C
« Reply #1 on: July 19, 2018, 01:36:14 PM »

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
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


Logged

elpic76

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Sample App on ME813AU-WH50C and ME812AU-WH50C
« Reply #2 on: July 20, 2018, 02:03:18 PM »

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è
Logged