Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Problems of downloading firmware to EEPROM

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



Problems of downloading firmware to EEPROM
Moderator:
RSKV

Post Reply
Follow this topic



Problems of downloading firmware to EEPROM

diligent posted on 21 Mar 2013 1:26 AM PST
Member
2 Forum Posts

Dear, all
    I had downloaded "EZ-USB FX3 SDK v1.2.3 for Linux" from the web-sit, and compiled the application of cyusb_linux. By using cyusb_linux, it could download firmware to RAM successfully, but I couldn't use the cyusb_linux download firmware to large EEPROM(64KB). Also the application didn't give any error from it, and the progress bar had 100% completed, but the EEPROM didn't update.
    I viewed the source code of Fx2_eeprom_download.cpp(in cyusb_linux_1.0.3/gui_src), in the function fx2_eeprom_download, the code is:"r = cyusb_control_transfer(h, 0x40, 0xA2, address, 0x00, buf, 64, 1000);",
the return value of r is -7 at first, and the all of the next are -9. Nevertheless the assertion is:
if ( !r ) {
 printf("Error in control_transfer\n");
 return r;
}, it doesn't meet.
    The doc of cyusb_linux_programmers_guide says the function cyusb_control_transfer's return value: 0 on success, or an appropriate LIBUSB_ERROR, and -7 instruct timeout. Nonetheless when this error occur and why it occurred?
    I also debugged the application download firmware to internal RAM(it can update RAM successfully), the function cyusb_control_transfer's return value is 10 or 16 or 11, it don't like the document says 0 means success, others are error. Thus, which is right? The code of the source, or the document, or I misunderstand?
    The same hardware could download firmware to EEPROM by using Control Center in Windows.
    How to fix the problem of downloading firmware to EEPROM?
Thank you
Best wishes
Xiaodong Wang

"EZ-USB FX3 SDK v1.2.3 for Linux" is on the web-sit: http://www.cypress.com/?rID=57990




Re: Problems of downloading firmware to EEPROM

Gayathri posted on 22 Mar 2013 03:05 AM PST
Cypress Employee
428 Forum Posts

 Hi,

 

We have tested the Large EEPROM download with FX2LP using Linux SDK, and have not seen any issues. Please create a tech support case at www.cypress.com  -> Support -> Technical support, so that one of our engineers can help you out in this.

 

Regards,

Gayathri



Re: Problems of downloading firmware to EEPROM

diligent posted on 25 Mar 2013 11:59 PM PST
Member
2 Forum Posts

I had created a tech support case at MyCases.Thank you.



Re: Problems of downloading firmware to EEPROM

Gayathri posted on 25 Mar 2013 06:54 AM PST
Cypress Employee
428 Forum Posts

 One of our engineers will assist you in this over the case.

Regards






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