Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > HEX file gets corrupted but SPT file works

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



HEX file gets corrupted but SPT file works
Moderator:
RSKV

Post Reply
Follow this topic



HEX file gets corrupted but SPT file works

timmyc posted on 17 Jan 2013 3:51 AM PST

1 Forum Post

I've contacted Cypress support about this one yesterday, but have not had a reply yet so thought I would try the forums...

I am currently looking at adding Windows 7 64-bit support for an existing product based on the EZ-USB FX2LP chip. Currently I use the cyusb driver to download a .spt file to the chip. Once downloaded, I then interface to the firmware using a driver created by Jungo WinDriver. This works well in Windows XP, but the introduction of driver signature enforcement in Windows 7 means that this approach will no longer work (it is not acceptable to make our customers press F8 on startup in order to disable the signature enforcement).

I understand that it is possible to get the cyusb driver signed, but it seemed simpler to remove the cyusb driver altogether and extend the driver created with Jungo WinDriver to download the firmware. As part of the WinDriver toolkit Cypress has provided an example of how to do this called "firmware_sample", which I have followed closely. The sample downloads the firmware from a .hex file rather than a .spt file. The other difference is that the download is not done automatically by the driver when the device is connected, but instead an API function in the driver's DLL is called by the software. The solution works well, I can connect to the device and the code runs as expected, expect for a small piece of the code which appears to be corrupted. When I exercise this part of the code the firmware crashes. This does not happen using the old cyusb method.

The section of the code that crashes is attempting to write to Port C, but I believe this is just coincidence, because the same port is written to in other parts of the code without any problems. Please can anyone suggest a reasons why there would be a difference in the way the code behaves when it is downloaded as a .hex file in the software rather than as a .spt file by the cyusb driver.




Re: HEX file gets corrupted but SPT file works

RSKV posted on 13 Feb 2013 02:55 AM PST
Cypress Employee
655 Forum Posts

Hi Timmy,

I am assuming that your problem is solved by now.

Please let me know if not.

Thanks,

sai krishna.






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.