cancel
Showing results for 
Search instead for 
Did you mean: 

USB Low-Full-High Speed Peripherals

Anonymous
Not applicable
        Development would be much faster if CyScript could be called by command line. Is there anything similar?   
   
Alternatively, would Cypress open CyScript source code?   
   
Regards   
0 Likes
Reply
17 Replies
Anonymous
Not applicable
        You might want to create a tech support case and get clarification on this... Why do you need a command line version of cyscript?? the main reason behind this question is that once you generate the firmware, you will generate the script file from it... one time usage, end of story... so what is the advantage of having a command line version of it???   
0 Likes
Reply
Anonymous
Not applicable
        Thanks aasi!   
   
I understand your point. After building project in Keil I generate the .spt, copy it to the system32 folder and reset the board. I make this boring process because the firmware doesn't work as should downloading the .hex using CyConsole (the same .hex as script always works).   
   
I'm using CY7C68013A (100pins) with Keil. Am I doing something wrong? Is there a fast way to download and execute the hex during development, instead of my boring script process?   
0 Likes
Reply
Anonymous
Not applicable
        I'm little confused by what you have mentioned... What do u mean when u say the .hex doesn't work but the .spt works... i mean the script just is a different way of downloading the .hex and there shouldn't be any difference between the two... can you explain the difference u r seeing???   
0 Likes
Reply
Anonymous
Not applicable
        The hex firmware downloaded via CyConsole does not work. A simple led does not blink, for example. After downloading the hex it appears that the chip is not reseted.   
   
The spt generated with CyScript and copied into system32 folder works good, and the led blinks. The major difference is that here I do a hard reset (turn off 3.3V) after overwriting the spt file in the system32 folder.   
0 Likes
Reply
Anonymous
Not applicable
        This behavior sounds a little unexplainable to me... bec there shouldn't be any difference between the two and both should behave the exact same way....   
However i suspect only one possible reason for this... Windows has the habit of saving separately files that are deleted or replaced in system32 folder... after u reset the board and the script loads, go to the system32 folder and do a compare (size) of the file there and the one you just now generated and placed there...   
If i remem well the folder where windows saves these system32 files is LastGood... I think the location is C:\Windows\LastGood... you might want to check that and remove it to if this is the case....   
0 Likes
Reply
Anonymous
Not applicable
        I do not understand your point. The Windows stuff are all ok, no need to check what it is doing. The problem is when I download the hex using CyConsole.   
0 Likes
Reply
Anonymous
Not applicable
        All i'm saying is... .spt is just another way of downloading the hex and if the hex doesn't work properly then the spt should show the same behaviour... i just wanted you to confirm that a older spt is not being used accidentally...   
I've faced problems in the past while working with driver versions due to this behaviour of windows...   
0 Likes
Reply
Anonymous
Not applicable
        I have took over a project for a product that uses the .spt file to   
download the code to the device. I have had to buildup an development   
environment and have not been able to find the CyScript software.   
Please advise.   
0 Likes
Reply
Anonymous
Not applicable

Regardless of downloading spt versus hex cyscript should have a command line interface.  Most companies run automated daily builds and need to be able to convert the hex output from the Keil compiler to spt without manually running cyscript.  Can you please provide the source for cyscript so we can make this trivial modification ourselves?

0 Likes
Reply
Anonymous
Not applicable

Hi,

   

automating using .spt is not as easy as it seems. Using the inf file you'll be using .spt like a system file. If you overwrite it in the system folder the OS will most probably load a older version from its backup. (there will be a folder called LastGood)

   

If you place it in a common folder you'll be forced to point the device to the inf file everytime.

   

 

   

My understanding is that .spt and .iic would be used only after the firmware (.hex) has been tested and the final build is ready. I'm slightly confused with your point. Please address the above concerns, let us figure this out further.

   

Regards,

   

Anand

0 Likes
Reply
Anonymous
Not applicable

Hi Anand,

   

I understand your point about the .spt file being part of the driver install.  Our intention is not to overwrite it in the system folder.  We simply want to be able to create a batch file which will run the Keil compiler to create the .hex file and which will then run CyScript to convert the .hex file to an .spt file.

   

You're right that developers test the .hex files but other people run daily builds which create the .spt files which are ultimately shipped.  Those people are not going to interrupt their automated processes, which run these and many other steps, to manually run CyScript.

   

Regards,

   

Doug

0 Likes
Reply
Anonymous
Not applicable

Hi,

   

In my work I also have to regenerate .SPT file after Keil project recompile often. At the moment I do this manually using CyControl app, command line tool to generate .SPT from .HEX would be very helpful. The good thing is that full source code (C#) of CyControl is available at "C:\Cypress\Cypress Suite USB 3.4.6\CyUSB.NET\examples\Control Center\" so when I will tired of doing this conversion manually maybe I will find a time to modify it to handle command line params, this should be not difficult...

0 Likes
Reply
Anonymous
Not applicable

By adapting and use this vbscript, you can achieve your goal without the command line version of CyScript.exe:

   

 

   

   

set s = WScript.CreateObject("WScript.Shell")

   

a = s.Run("CyScript.exe")

   

WScript.Sleep 1000

   

s.AppActivate a

   

 

   

s.SendKeys "{ENTER}"

   

WScript.Sleep 200

   

s.SendKeys "slavefifo.hex{ENTER}{TAB}{TAB}{ENTER}"

   

WScript.Sleep 200

   

s.SendKeys "Y{ENTER}"

   

WScript.Sleep 200

   

s.SendKeys "%{F4}"

   

 

   

Wscript.quit

   
        
0 Likes
Reply
Anonymous
Not applicable

Hi !

   

I'm currently working on Linux, so I don't have the tools like CyControl and CyScript.

   

I have to develop a driver for Android, for a peripheral that uses an EZ-USB FX2LP chip.

   

I need to do the Renumeration, to be able to send commands to the firmware.

   

The thing is, I only have a .spt file, which is a CyScript file I suppose. I don't think there is a way for me to use that file on an Android device, since only CyScript can interpret it, and CyScript only runs on Windows. Am I correct ?

   

So, I was wondering if since december 2012 ( this post: http://www.cypress.com/?app=forum&id=167&rID=73219), someone had found or created a solution to convert a .spt to a .hex ?

   

 

   

Thank you very much

   

Matthieu

0 Likes
Reply
Anonymous
Not applicable

 Hi,

   

Your driver should be able to download the .spt file in to the device

   

Can you driver do that?

   

 

   

Please refer the drivers in the path "C:\Cypress\USB\CY3684_EZ-USB_FX2LP_DVK\1.0\Drivers\CyLoad" after installing Cy3684 DVK. This would give you an idea about the driver which can download the script file into the device.

   

 

   

Regards,

   

Vikas.

0 Likes
Reply
Anonymous
Not applicable

  I have also the same problem, you mean we need to download spt file into the microcontroller? We try to download it with fx2_download function however nothing changed, we still cant achieve to renumerate it.

0 Likes
Reply
Anonymous
Not applicable

Hello,

   

I'm also interested in hex-spt generation via Windows command line (I can tell you why if you want it). Do you have that option for today?

0 Likes
Reply