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?
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.
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.
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...
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")
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
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.
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.