CyU3PGpifLoad failed

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
LuckyLuo
Level 2
Level 2
25 sign-ins 10 replies posted 10 sign-ins

Dear sir,

After power on,Why  CyU3PGpifLoad failed? 

Log is below 

CyFx3UvcIoMatrixReInit:Cfg1 = 0x410, Cfg = 0x510
CyFx3UvcInitGpifSm: CyU3PPibInit Success
CyFx3UvcInitGpifSm: CyU3PGpifLoad failed, error code = 0x46
CyFx3UvcAppInit:Not Super speed enumeration with MUX_SEL low. Fllipping Mux to try again
FX3 UVC App init complete
CyFx3UvcAppUSBEventCB: Default USB evtype = 6
CyFx3UvcAppUSBEventCB: Detected HS USB Connection
Rcvd suspend evt

0 Likes
1 Solution
JayakrishnaT_76
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hello,

Please share the snapshot of the implementation of the API CyFx3DevIdentifyPart() in your custom project for us to check.

Also, from your schematics, I find that the PMODE[2:0] can be either 011 or 111. However, for USB boot it should be Z11 and for SPI boot, it should be 0Z1. Please change the PMODE[2:0] connections and let us know if you are still facing this difficulty.

Best Regards,
Jayakrishna

View solution in original post

0 Likes
11 Replies
JayakrishnaT_76
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hello,

Please let me know which device is used for testing. Is it FX3S/FX3/CX3?

The error 0x46 occurs when a 32 bit GPIF configuration is being used on a part that does not support this. Also, can you please share the .h file generated by the GPIF II designer for us to check?

Best Regards,
Jayakrishna
0 Likes
lock attach
Attachments are accessible only for community members.
LuckyLuo
Level 2
Level 2
25 sign-ins 10 replies posted 10 sign-ins

Dear Jayakrishna, the device we used is FX3,   we use FPGA depoly  gpif2 interface  connected to FX3 . And use 32bit GPIF configuration.

 

0 Likes
JayakrishnaT_76
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hello,

Thank you for confirming the device used in the design. Can you please let us know the exact part number used? Also, is it possible for you to share the complete project for us to check?

Best Regards,
Jayakrishna
0 Likes
lock attach
Attachments are accessible only for community members.

Dear  Jayakrishna,   the complete project is attached.  And the exact part number used is CYUSB3014-BZX  

Best Regards,
George Luo

0 Likes
JayakrishnaT_76
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hello,

If the part number used is CYUSB3014, then the API CyU3PGpifLoad() should not fail with error code 0x46. We have tested your project on Superspeed Explorer kit and ECP5 Kit. We did not find the API CyU3PGpifLoad()  failing at our end. Please refer to the snapshot below:

JayakrishnaT_76_0-1611814625676.png

Please confirm that you are the latest version of FX3 SDK (1.3.4) for development. Also, please try programming the device with the SDK example project gpiftousb and let us know if the API CyU3PGpifLoad() is failing there also or not. The example project can be found in the following location after downloading FX3 SDK:

C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware\basic_examples\cyfxgpiftousb

In addition to this, please use the API CyFx3DevIdentifyPart() in your custom project before calling the API CyU3PGpifLoad() and print the return value. More information on CyFx3DevIdentifyPart() can be found in the document FX3 API guide which comes along with FX3 SDK. Please share the UART logs after getting this information printed.

Best Regards,
Jayakrishna
0 Likes
LuckyLuo
Level 2
Level 2
25 sign-ins 10 replies posted 10 sign-ins

Hi,Jayakrishna

I am sure the SDK is 1.3.4 as below  ..define in cx3_build_config.mak

 

11.png

 Then  after  program  gpiftousb to fx3 ram ,  there are no log print.  Then I try to chang to IO config as below.

3d2823da10ab719cd789eb14c99a859.png

Here is the print log ,

23549408571750548072a616d1b840e.png

Back to FX3_ECP5_RDK project,

Get IDpart by API t CyFx3DevIdentifyPart()   ,status = 0x9  ,  means CYPART_USB3031  ?

19d56cc47341e114829d7478b9dac01.png

Best Regards,

 

 

 

0 Likes
JayakrishnaT_76
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hello,

Please share the snapshot of the implementation of the API CyFx3DevIdentifyPart() in your custom project for us to check.

Also, from your schematics, I find that the PMODE[2:0] can be either 011 or 111. However, for USB boot it should be Z11 and for SPI boot, it should be 0Z1. Please change the PMODE[2:0] connections and let us know if you are still facing this difficulty.

Best Regards,
Jayakrishna
0 Likes
LuckyLuo
Level 2
Level 2
25 sign-ins 10 replies posted 10 sign-ins

Dear Jayakrishna,

Here is the snapshot of code ,

4949940d3a87b75b36e75acc9b1adb6.png

Then I change the PMODE[2:0] = Z11 , It is OK!

705dcbdf91b7ed295b8dd6f34975a0e.png

 

0 Likes
JayakrishnaT_76
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hello,

We are glad to hear that the issue is resolved!! 

Best Regards,
Jayakrishna
0 Likes
LuckyLuo
Level 2
Level 2
25 sign-ins 10 replies posted 10 sign-ins

Dear Jayakrishna,  Thanks for your reply to help me resolved this problem!!!  By the way,  in this case, I  was perplexed by   another  question .  Why the usb connection type cannot be identified as   Super speed enumeration. Here is  print log.

e2571f7f9b2bcc644b52be2ef67d2ec.png

 After I start up OBS,  CyFx3UvcAppUSBEventCB  is   CY_U3P_USB_EVENT_SOF_ITP  ,  I think it should be  USB 3.0 link.   The print log is showed below.

5857477f5e8a53ed3b74eb74872579e.png

Best Regards,

George Luo

 

 

0 Likes
JayakrishnaT_76
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hello,

I find that the query mentioned in your last response is a  new query and not related to the original discussion. Please create a new thread for the new query so that other community members can also get the benefit out of it.

Best Regards,
Jayakrishna
0 Likes