Endpoint data DebugPrint

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

cross mob
Anonymous
Not applicable

 Hi,

   

I have merged the bulkloop and the i2c exemple together. When i EEPROM_WRITE i made those line of code so i can see what is being transfered to i2c which works fine.

   

                status  = CyU3PUsbGetEP0Data(wLength, glEp0Buffer, NULL);

   

                taille=sizeof(glEp0Buffer);

   

                for(i=0;i<taille;i++) CyU3PDebugPrint (1, "%x",*(glEp0Buffer+i));

   

I made 7 endpoint (1 EP0 for I2C and 6 for bulkloop kind of tranfer) Now i want to see what is tranferred in the endpoint BULKLOOP by the debug interface. I conected 2 endpoints to 1 DMA socket 3 times. (i need all those EPs my API need it)

   

My goal here is to

   

-receive a structure of data from one endpoint which will be sent from the host. 

   

-Do what the data has to do (read eeprom, write eeprom, i2c communication, ect..)

   

-send informetion to the host

   

My biggest concern is that i cant see what is in those endpoints can anyone tell me the function to acces this memory.

0 Likes
1 Reply
Anonymous
Not applicable

 HI,

   

You can make the DMA Channels associated with the BullkLoop EndPoints as Manual. In a Manual Channel, you can actually print the data being transferred inside the call back function. Please refer USBBulklLoopManual example firmware.

   

Regards,

   

- Madhu Sudhan

0 Likes