I have an FX3 device and it is properly programmed by the included Cypress USB Control Center. I have downloaded and compiled the USB Control Center Source via the SDK download. Everything compiles ok, but when I try to use the FX3-->SPI_Flash option to program, I get an error from the following code.
StatLabel.Text = "Programming of SPI FLASH in Progress...";
enmResult = Fx3.DownloadFw(FOpenDialog.FileName, FX3_FWDWNLOAD_MEDIA_TYPE.SPIFLASH);
StatLabel.Text = "Programming of SPI FLASH " + Fx3.GetFwErrorString(enmResult);
The returned error is SPILASH_ERASE_FAILED
This error doesn't occur in the binary utility included with the SDK.
Using a USB analyzer, I can see that the same command C4H,1,0,0 is sent from both applications, but in my compiled version, it fails and in the utility (compiled by Cypress) the same command succeeds.
Any direction on this would be helpful.
This is not expected to happen. The compiled version was Debug or Release? Can you please try with either of these and see if it is working in any of these?
I have tried debug and release with no success. I am using VS 2013 Update 5
Microsoft Visual Studio Premium 2013
Version 12.0.40629.00 Update 5
Microsoft .NET Framework
Is there a way for me to send you my build to look at?
I need to write a standalone boot loader for our project and this is stopping me from getting started.
Thanks for your help.
Please send us your build along with the source.
- Madhu Sudhan
John P. Martin
Software Engineering Manager
HORIBA Jobin Yvon, Inc.
A HORIBA Scientific Company
3880 Park Avenue Edison, New Jersey USA 08820
Phone: 732.494.8660 Ext. 8208
Please note our new e-mail address and website, part of the creation of
HORIBA Scientific, a global team better able to locally focus on meeting
your present and future needs. Please update your bookmarks and spam
This email and any files transmitted with it are confidential and intended
solely for the use of the individuals or entities to whom they are
addressed. If you have received this email in error please notify the
system manager. This message contains confidential information and is
intended only for the individuals named. If you are not the named
addressee you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system. If you are not
the intended recipient you are notified that disclosing, copying,
distributing or taking any action in reliance on the contents of this
information is strictly prohibited. HORIBA Jobin Yvon, Inc. 3880 Park
Avenue, Edison, New Jersey 08820, www.HORIBA.com.
I was hoping this had been resolved. I'm having almost exactly the same problem. (C++ instead of C#).
I can program the SPI flash from the Control Center, and it works just fine. However, making the call to DownloadFw() with SPIFLASH selected gives me the same 0x7 return code (failure to erase flash). It works fine if I download to RAM instead of flash.
Putting a scope on the lines to the flash, I see no activity when I call DownloadFw(). If I use the Control Center, I see lots of activity while it programs the flash.
I'm using the 1.3 version of the SDK.
Any chance there has been some progress?