- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Alternatively, would Cypress open CyScript source code?
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've faced problems in the past while working with driver versions due to this behaviour of windows...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?