Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > FX3 self powered design

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



FX3 self powered design
Moderator:
RSKV

Post Reply
Follow this topic



FX3 self powered design

Chris R. posted on 09 Jun 2012 1:38 AM PST
Top Contributor
135 Forum Posts

Is there a special firmware part to be done for self powered designs? Does the FX3 API disconnect and reconnect properly by monitoring the vbus pins? Or do wie have to watch this in firmware like on the FX2?




Re: FX3 self powered design

RSKV posted on 09 Jun 2012 04:31 AM PST
Cypress Employee
655 Forum Posts

Hi Chris, 

Are you seeing any issue with disconnect and reconnect in self powered designs?.

Thanks,

sai krishna.



Re: FX3 self powered design

Chris R. posted on 09 Jun 2012 08:39 AM PST
Top Contributor
135 Forum Posts

I´m not sure if the FX3 complies to the USB spec in self powered mode without firmware modification. Thats the reason for my question. In the FX2 the user has to watch the VBus in order to reconnect properly on plugging in. I di not find any hint in the FX3 documentation about this mode.



Re: FX3 self powered design

Chris R. posted on 11 Jun 2012 11:46 PM PST
Top Contributor
135 Forum Posts

Tody I tested the self powered design and it doesn´t work! When I power the dvk from the dc jack, the FX3 does not reconnect after disconnect the USB cable and plugging in again. In the CyFxSlFifoApplnUSBEventCB function I get the disconnect event on disconnect and some events (Connect, Suspend, Speed, Reset...) after plugging in again. But the FX3 does not reenumerate and windows sais " The device does not work..."

 

How can I modify the firmware to handle the self powered reconnect properly?



Re: FX3 self powered design

RSKV posted on 11 Jun 2012 04:53 AM PST
Cypress Employee
655 Forum Posts

Chris,

I have tried this disconnect and reconnect with the “SlaveFifoAsyc” example code on a self powered FX3 DVK board.

But I did not see any issue with re-enumeration.

Are you using the same example code or did you do any modifications to it. Please share me the source code if you did any changes to the example code.

Also, are you testing with the FX3 DVK itself or its a custom board. Is it happening all the time.

 

Thanks,

sai krishna.



Re: FX3 self powered design

Chris R. posted on 11 Jun 2012 05:50 AM PST
Top Contributor
135 Forum Posts

I use the SlaveFIFO Sync Firmware with only some little changes in the VID/PID descriptos, DMA FIFO flags and added one USB SET FEATURE request handling. I power the DVK (first version with ES FX3) with 5V from power supply and the firmware runs normal after download into RAM. After disconnect the cable and reconnect, the firmware never enumerates again. Do I need to change some jumpers? I only moved the slide switch to the self powered position. Even if I comment out the set feature request, the reconnect fails. With the unchanged cypress samples the reconnect often works on USB 2.0 host and sometimes on 3.0 Host. I attach my firmware sources, maybe you can find my error.

Thanks a lot.



Re: FX3 self powered design

RSKV posted on 12 Jun 2012 03:58 AM PST
Cypress Employee
655 Forum Posts

I don't see any issue with the example code that comes with the SDK.

But I could reproduce the issue with your firmware.



Re: FX3 self powered design

RSKV posted on 12 Jun 2012 04:01 AM PST
Cypress Employee
655 Forum Posts

I am attaching a test build of the FX3 SDK that should fix this problem.
Please test with this SDK and let us know the result.
 



Re: FX3 self powered design

RSKV posted on 12 Jun 2012 04:03 AM PST
Cypress Employee
655 Forum Posts


Re: FX3 self powered design

RSKV posted on 12 Jun 2012 04:11 AM PST
Cypress Employee
655 Forum Posts


Re: FX3 self powered design

Chris R. posted on 12 Jun 2012 06:22 AM PST
Top Contributor
135 Forum Posts

Thank you . But with my source code compiled against the new SDK Version (1.1.1) the behavior is the same. Nevertheless the firmware examples shipped with the SDK work fine and reconnect prperly. I think there is an inconsistency between source and SDK, becouse my source is from SDK 1.0 and I did not change the source on updating the SDK to 1.1 and now to 1.1.1

Tomorrow I will update the Slave FIFO example with my changes and test the reconnection issue with the updated firmware framework. I will inform you then.



Re: FX3 self powered design

Chris R. posted on 13 Jun 2012 11:32 PM PST
Top Contributor
135 Forum Posts

Now I ported our firmware changes to the new SDK version and now the self powered reconnect works as expected.

Thanks a lot.



Re: FX3 self powered design

xintong posted on 30 Jan 2013 01:51 AM PST

1 Forum Post

Will you try to call the interface of  "CyU3PSysEnterSuspendMode" to enter the suspned state?Then wakeup the system successful. 



Re: FX3 self powered design

AssemblyRequired posted on 30 Jan 2013 05:45 AM PST
Top Contributor
37 Forum Posts

I believe CyU3PSysEnterSuspendMode() is broken, even more in SDK 1.2.2 than in 1.2.1.
I have had a tech support case open for awhile; they are still looking at it.

Regards,

Steve






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.