Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > NX2LP Devices Reset and Re-enumerate

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



NX2LP Devices Reset and Re-enumerate
Moderator:
RSKV

Post Reply
Follow this topic



NX2LP Devices Reset and Re-enumerate

howardt9388 posted on 12 Sep 2012 12:56 AM PST
Member
5 Forum Posts

Is there a simmilar way to re-enumerate a NX2LP device as a FX2 device?




Re: NX2LP Devices Reset and Re-enumerate

Gayathri posted on 13 Sep 2012 10:23 PM PST
Cypress Employee
428 Forum Posts

 Hi,

 

Please decribe the whole thing that you are trying ti implement. When you want NX2LP to renumerate? What is the application?

 

Regards,

Gayathri



Re: NX2LP Devices Reset and Re-enumerate

howardt9388 posted on 13 Sep 2012 06:15 PM PST
Member
5 Forum Posts

We need to find a way to make the O/S to querry the device upon our UI's command to dynamically switching Nand Flash configurations. Using destructive switching such as hardware reset or power on off the device is not acceptable. From the other FX2LP forum tag attached below, I might be wrong, however I am lead to believe that it could be a way to make the O/S to querry the device.

FX2LP forum tag--------------------

I think there is an alternate way.Here what you can do is to implement a vendor command which will re-enumerate your device. You can use the following code to do that :
" case VR_RENUM:
*EP0BUF = 7;
EP0BCH = 0;
EP0BCL = 1; // Arm endpoint with # bytes to transfer
EP0CS |= bmHSNAK; // Acknowledge handshake phase of device request
EZUSB_Delay(1000);
EZUSB_Discon(TRUE); // renumerate until setup received
break;
"
If that does not work, there is one more way.You can issue an 0xa0 vendor command which is implemented in FX2LP hardware to write 0x01 at 0xE600 register which will reset the device.And when again you will write 0x00 at 0xE600 register the device will come out of reset.
The way to issue 0xa0 vendor command is:
1. Req code => 0xa0
2. value field(high and low) => 0xE600
3. Length => 1
4. data => 01 for reset and 00 for reset release in the payload of data phase.

End of tag-----------------------------------------------

I hope we can use that on the NX2LP device to achieve our goal.

Thanks!

Howard



Re: NX2LP Devices Reset and Re-enumerate

Gayathri posted on 18 Sep 2012 10:09 PM PST
Cypress Employee
428 Forum Posts

 Hi,

 

Vendor commands in NX2LP will work. But just curious how are you planning to issue the same? How is you GUI talking to NX2LP?

 

Regards,

Gayathri

 

 






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.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20