Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Firmware update (change to USB Boot Mode by software?)

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



Firmware update (change to USB Boot Mode by software?)
Moderator:
RSKV

Post Reply
Follow this topic



Firmware update (change to USB Boot Mode by software?)

ProHerz posted on 02 Aug 2012 5:21 AM PST
Member
8 Forum Posts

Hi,

I have configured the Boot Mode to "SPI, USB on failure". If i want to update the firmware, i have to change the configuration on the PMODE pins to "USB" boot. I'm now asking myself if there is a possibility to download the firmware without changing the PMODE pins? I mean for developemnt it's not a problem. But if we deliver the device and the customer should set some jumpers or press a button to make a firmware update, this wouldn't be very nice. Can we do something by software?

 

Best regards

Walt




Re: Firmware update (change to USB Boot Mode by software?)

RSKV posted on 02 Aug 2012 06:21 AM PST
Cypress Employee
655 Forum Posts

Yes. We can do that.

You can develop a small application in the PC to send a specific vendor command (let say Cmd_to_Erase) to FX3.

Your application firmware should be supporting this command. When FX3 gets the required vendor commad then do erase the signature of the image file that is stored in the SPI EEPROM. And when the end user hits the reset (disconnect and connect it back) then FX3 bootloader falls back to USB since there is some invalid image in the SPI EEPROM. Then user can re-program it.

Regards,

sai krishna.



Re: Firmware update (change to USB Boot Mode by software?)

ProHerz posted on 02 Aug 2012 06:42 AM PST
Member
8 Forum Posts

Hey Sai,

thanks for your reply. That's a good idea and i will try it that way.

Best regards

Walt



Re: Firmware update (change to USB Boot Mode by software?)

Chris R. posted on 02 Aug 2012 10:34 AM PST
Top Contributor
135 Forum Posts

If you implement a vendor comand to erase the first bytes of SPI flash, you can implement the whole code to erase all the flash content and write the new firmware image to the flash. I think this is only a very litte more work...



Re: Firmware update (change to USB Boot Mode by software?)

ProHerz posted on 03 Aug 2012 11:20 PM PST
Member
8 Forum Posts

Hi Chris,

Yes you are right. Thank you.

Best regards

Walt






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.