Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Problem with ezloader driver

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



Problem with ezloader driver
Moderator:
RSKV

Post Reply
Follow this topic



Problem with ezloader driver

ksanto posted on 15 Jun 2009 1:45 AM PST
Member
2 Forum Posts
Hello! I have a problem with ezloader driver when trying to upload firmware code of a definite size to the device (EZ-USB FX2 / FX2LP).
I have created project with my firmware code and compiled it in Keil uVision. The output is .HEX file. It heve uploaded it with Control Panel successfully. The device worked.
Using "EZLoader Custom USB Firmware Loader Drive" note I have created my own driver that was uploading my firmware automatically to the device. The device worked successfully.
All was ok until the size of the project became >11K (about). The .HEX file is still may be uploaded with Control Panel and device works. But when I make my ezloader driver with firmware code >11K, the driver works uncorrectly. When I attach the device it goes the endless cycle of uploading firmware without any errors.
The problem is size of firmware code when uploading it with driver.
I have seen such a problem but haven't seen the solution.




Re: Problem with ezloader driver

aasi posted on 15 Jun 2009 03:43 AM PST
Cypress Employee
1090 Forum Posts
what do you mean when you say endless cycle of uploading firmware without any errors. Did you use some kind of bus analyzer????


Re: Problem with ezloader driver

ksanto posted on 15 Jun 2009 01:00 PM PST
Member
2 Forum Posts
Maybe I explained my problem incorrectly...
I have created driver (for example Antloader.sys) which has similar functionality as ezloader.sys (uploading of .HEX data). It was created with help of hex2c.exe and Windows DDK (version 2600.1106). Also I have created appropriate INF file that attaches driver Antloader.sys to the device by its VID/PID.
After the connection of the device to PC (where the device with such a VID/PID have never been connected) I selected Antloader.sys with the help of Device Manager. Device Manager began copying but couldn't finish it (endless copying).
I have disconnected the device and connected it again. (I have checked - Antloader.sys had really been copied to ..\system32\drivers\).
The device looked like successfully installed in the list of Device manager with Antloader.sys (but in the properties of the devices driver Antloader.sys was unloaded). If the ReNumeration is completed correctly the device should appear with other VID/PID and ask for the new driver. But there were no messages about errors or conflicts.
And then:
- all the connection are followed by appearance of the device in manager with unloaded driver Antloader.sys;
-after deleting Antloaderer.sys and connection the device appears with exclamation mark and without any driver (in the properties);
-the same situation repeats on other PCs;
-after replacing Antloader.sys with standard Ezloader.sys (renamed to Antloader.sys) the renumeration completes successfully and the device appears with new VID/PID correctly.

When I create the same Antloader.sys with .HEX data less than 11K all the operation with driver complete correctly.
Why may firmware uploading driver work incorrectly? Are there any limits for the .HEX data file (in this way of firmware upload; when I use Control Panel with .HEX data >11K operations complete successfully).

Re: Problem with ezloader driver

aasi posted on 15 Jun 2009 05:33 PM PST
Cypress Employee
1090 Forum Posts
I've not come across this kind of situation. If it replicatable in other PCs then there must be something funny going on... can you upload here the .hex, the working antloader and not working antloader???
observing the CATC would give a better view of what is actually going on i.e atleast if the loading is kicking in....
one more thing, which version of the driver are you using (did u try using the cyusb.sys that comes with suiteusb 3.4.1)???




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: KXP; Secondary Owner: VWA; Sunset Date: 01/01/20