Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Unable to execute a script at start-up

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



Unable to execute a script at start-up
Moderator:
RSKV

Post Reply
Follow this topic



Unable to execute a script at start-up

David8888 posted on 16 Apr 2012 8:34 AM PST
Senior Member
15 Forum Posts

I am trying to make a INF file which will execute a script at start-up to download the firmware. I am trying it on a 64-bit Windows 7 machine. I obtained the CYUSB.SYS from Cypress Suite USB 3.4.7\Driver\bin\wxp\x64. I used the INF file under Subheading "Execute a script at start-up" in Section "Modifying CyUSB.INF" of "Cypress CyUsb.sys Programmer's Reference" as the template. I have only modified the VID and PID in the INF file. I have also add a string for the second VID_XXXX&PID_XXXX.DeviceDesc (see attached INF file). I also put a script "MyDevice.spt" for firmware download in the same directory of the INF file. The script has been tested successfully using Cyconsole. I am using No EEPROM mode for startup

As the CYUSB.SYS had not been signed, I started the Windows with F8 pressed and then bypassed the Windows driver signature enforcement. Then I plugged the hardware into the USB port, I opened the Windows Device Manager and guided it to the INF file. The driver was installed successfully. But the hardware was only displayed in the first VID&PID in the Windows Device Manager. Therefore, I manually dowloaded the firmware using Cyconsole, then I saw the hardware displayed in the second VID&PID and the firmware worked fine. However, I plugged out hardware and replugged it in, the hardware was displayed in its first VID&PID without the firmware downloaded. I restarted the computer and tried for a few times and still encountered the same problem. It looked like the firmware script was not executed automatically at startup.

What did I do wrong? Any suggestion is highly appreciated!
 




Re: Unable to execute a script at start-up

David8888 posted on 16 Apr 2012 09:03 AM PST
Senior Member
15 Forum Posts

attached INF file. (renamed it to CYUSB.TXT in order to upload it here)



Re: Unable to execute a script at start-up

PRJI posted on 18 Apr 2012 02:04 AM PST
Cypress Employee
333 Forum Posts

 Hi,

   From this http://www.cypress.com/?id=4&rID=44391 you can download inf file which works for all OS, try with this. Make sure you have placed inf,script and driver files in correct folders.

Thanks

Prajith



Re: Unable to execute a script at start-up

David8888 posted on 28 Apr 2012 07:50 AM PST
Senior Member
15 Forum Posts

Thanks a lot, I'll  try this.



Re: Unable to execute a script at start-up

Punitha posted on 05 Sep 2012 04:19 AM PST
Member
3 Forum Posts

 Hi ,

I also have a similar problem with windows 7.  The scripts are not downloaded  automaticlly . Did  you slove the problem.?

Please can you say what was the problem and how you solved it.

Punitha



Re: Unable to execute a script at start-up

Gayathri posted on 10 Sep 2012 02:06 AM PST
Cypress Employee
428 Forum Posts

 http://www.cypress.com/?app=forum&id=167&rID=68778



Re: Unable to execute a script at start-up

PRJI posted on 17 Sep 2012 02:58 AM PST
Cypress Employee
333 Forum Posts

 http://www.cypress.com/?app=forum&id=167&rID=68778&message=posted&action=reply






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