This content has been marked as final.
Show 10 replies
-
1. Re: Can't use CyAPI with Borland C++ Builder for a CY7C64713
anand.srinivasan.asokan Apr 9, 2010 6:08 PM (in response to risselin.corentin)look into http://www.cypress.com/?rID=32538 to find the key differences between cyusb.sys and ezusb.sys... there is a point there about customizable GUID that is how the driver is identified and the application talks to the device through it... The source of ezusb.sys is available through one of DVK (i believe FX1 kit CY3674) in case you are comfortable of working with that.... but i wouldn't recommend that especially since the support for ezusb.sys has been pulled out....
Are you using the latest software package suiteusb3.4???
The include files you are talking about i believe are part of the OS... Which version of Borland C++ Builder are you using??? The support for borland C++ is being pulled out.... If possible move to the .Net version of the interface using c#... it has some APIs and more support to make programmers life easier.... -
2. Re: Can't use CyAPI with Borland C++ Builder for a CY7C64713
risselin.corentin Apr 9, 2010 6:08 PM (in response to risselin.corentin)I'm using Borland C++ Builder 6 with Windows XP professional edition and I can't move to the .net. I have the latest package suiteusb3.4 but I'm not using it as I saw it is designed for Visual Studio.
I want to use cyusb.sys and it seems that I can because there is a Borland library but I can't use it (the "UCHAR" type isn't declared and I don't know where I can find it). I could do something wrong but I don't see what. -
3. Re: Can't use CyAPI with Borland C++ Builder for a CY7C64713
anand.srinivasan.asokan Apr 9, 2010 6:09 PM (in response to risselin.corentin)I've not used borland C++ in the past... These kind of error usually occur when the installation is corrupted... There is an borland project in suiteusb 3.4 called FXEEPROM... check whether that builds for you without errors???? -
4. Re: Can't use CyAPI with Borland C++ Builder for a CY7C64713
risselin.corentin Apr 9, 2010 6:09 PM (in response to risselin.corentin)I don't see anything called FXEEPROM, for information I took suiteusb3.4 from here: http://www.cypress.com/?rID=34870 to see if it could help me. -
5. Re: Can't use CyAPI with Borland C++ Builder for a CY7C64713
anand.srinivasan.asokan Apr 9, 2010 6:09 PM (in response to risselin.corentin)That is strange.... C:\Program Files\Cypress\Cypress Suite USB 3.4.1\CyAPI\examples is the path where the FxEEPROM example is located... can you try reinstalling suiteusb3.4.... -
6. Re: Can't use CyAPI with Borland C++ Builder for a CY7C64713
risselin.corentin Apr 9, 2010 6:10 PM (in response to risselin.corentin)All my apologize I had suiteusb3.4 for visual studio. Indeed the project works fine, the line "#include" was removed that's why I couldn't build the project. Thank you for your help, I don't know how I get the suiteusb3.4 for VS... -
7. Re: Can't use CyAPI with Borland C++ Builder for a CY7C64713
boris.baskevitch Apr 9, 2010 6:10 PM (in response to risselin.corentin)Hi Tino,
I'm doing quite the same as you with the Borland C++ builder, but I couldn't make the FxEEPROM example to work. I also added the CyAPI.h include to the project so the project is compiling successfully, but the generated executable is crashing (EAccessViolation). How did you make it work ? -
8. Re: Can't use CyAPI with Borland C++ Builder for a CY7C64713
risselin.corentin Apr 9, 2010 6:10 PM (in response to risselin.corentin)Usually access violations happen when you use structures like endpoints without being connected with the chip. Make sure your handle is right and give me more information about this crash and when does it occure in the code. -
9. Re: Can't use CyAPI with Borland C++ Builder for a CY7C64713
boris.baskevitch Apr 9, 2010 6:11 PM (in response to risselin.corentin)Tino,
the crash occurs at the first call to the API:
FX2Device = new CCyUSBDevice(Handle);
I just received thean answer from the Cypress tech support that confirms my fears: the CyAPI.lib included in the Cypress packages is compiled for Borland C++ builder version 6 and is not compatible with later version of the C++ builder (I use version 10 from Borland Studio 2006).
Unfortunately I see no way to convert this static library to any another format compatible with recent compilers.
I also tried to convert the CyAPI.lib for Visual C++ to Borland format without success. You can see the development of my work in this thread:
http://www.cypress.com/forums/...id=4563&enterthread=y
I see that you use the version 6 of the C++ builder, so you may not be concerned by this issue - until you change to a newer version of the compiler.
Maybe you can generate a DLL from the lib with your compiler, the dll should be more portable. -
10. Re: Can't use CyAPI with Borland C++ Builder for a CY7C64713
elm.costa Apr 9, 2010 6:11 PM (in response to risselin.corentin)Tino,
UCHAR is defined in "wtypes.h" as:
typedef unsigned char UCHAR;
Simply add:
#include <wtypes.h>
before your #include "CyAPI.h"
Anyone found a way to use the CyAPI.lib in the latest TurboC++ version? My library also crashes at the instantiation of the CCyUSBDevice class...
Cheers,
Elm