BULKIN USB Host

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

cross mob
Anonymous
Not applicable

Hi,

   

      I am new to this USB stuff. I am trying to learn and trying to build a USB board for our camera manufacture by our company. I am still in early steps of learning. I have a Cypress fx2lp development kit. I have played with most of the firware examples and tested with CyConsole.exe. I have created a BulkIn firmware code which sends 512 bytes to host and I tested with Cyconsole and it runs fine. Next step, I want to read this data in my own VC++ application using CyAPI. That's where the problem came. When I download the BulkIn hex code using Cyconsole I even cannot open the device anymore in my vc++ application. If i reset the Cypress development board the VC++ code run fine. I am just doing this

   

   

CCyUSBDevice *USBDevice = new CCyUSBDevice();

   

unsigned char noDevices = USBDevice->DeviceCount();

   

for(int i=0;i<noDevices;i++) {

   

       if(USBDevice->Open(i))

   

         SetWindowText(USBDevice->DeviceName);

   

}

   

 

   

As i said earlier, when i don't download the BulkIn firmware code, the above code runs fine but when i download the BulkIn program it doesn't work

   

 

   

Please help me as I know, I must be doing something wrong.

   

 

   

Regards,

0 Likes
1 Reply
Anonymous
Not applicable

 Hi,

   

Please go through http://www.cypress.com/?docID=39952

   

-PRJI

0 Likes