problem about 68013A cyapi,Gods help me!

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

I use the 68013A chip, the program used CYAPI

   

When I run the program many times, the program error occurs, the error occurred in sending data function,

   

the GetLastError () returns 2(ERROR_FILE_NOT_FOUND The system cannot find the file specified.) or 997(ERROR_IO_PENDING Overlapped I/O operation is in progress),

   

when the error occurs I use the open (), it will return failure. Rerun the program,it will fail too. And with USB Console "Device Properties" can not read the information, but with a USB Console-> "EZ-USB interface" can read. I usually insert the usb line again, the program will run successfully. 

   

Is the problem belong to firmware or driver? 

   

how can I solve this problem? please help me.

0 Likes
8 Replies
Anonymous
Not applicable

 Hi,

   

 

   

As you have mentioned "When I run the program many times, the program error occurs, the error occurred in sending data function," what do mean by "run the program many times"? are you running the application several times or requesting some data from FX2LP(CY7C68013A)?

   

Can you share your firmware and the host application source code?

   

 

   

Regards,

   

Vikas.

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

of course!  but the firmwire i cant make sure, bucause it was written by older people who had  leaven, 

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable
0 Likes
Anonymous
Not applicable

 Please share the entire project of FX2LP and the host application

   

 

   

Regards,

   

Vikas.

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable
0 Likes
Anonymous
Not applicable

 Hi ,

   

The issue is not clear to me.

   

 

   

Please give more details. If you are facing issue in sending the data

   

 

   

then after how many times (sending the command to trasnfer the data) it is failing?

   

 

   

If you are faicng the issue in reading the data please make sure that you have set the variable in_enable as TRUE by sending the vendor command 0xB3. In your host app i don't see this vendor. So In request won't respond with data as the GPIF waveform cannot be triggered unless the in_enable variable is set TRUE in your firmware.

   

 

   

In the GPIF waveforms the WEN and REN signals doesn't seem to be properly asserted in the correct state. You are asserting these lines when the data line is in DEactive state.

   

 

   

Regards,

   

Vikas

0 Likes
Anonymous
Not applicable

it's in the sending data, in my program  "CyUsbCom.cpp" 

   

function: BOOL CyUsbCom::SentData( BYTE *pSource, unsigned Length )

   

how many times when it fails, is  mutative.

0 Likes
Anonymous
Not applicable

 Hi 

   

 

   

Please share your entire source code of Host application.So that I can debug with that.

   

 

   

Regards,

   

Vikas.

0 Likes