Forum Discussion
Altera_Forum
Honored Contributor
17 years agoDE2 board USB communication
Hello people, I'm curious to know is there anyone who have experience with DE2 board USB communication ? There is some ISP1362 USB-OTG controller which must be appropriate configured in order to...
Altera_Forum
Honored Contributor
16 years agoHi,
I’m modifying the firmware coding of device controller which found from DE2 CD. My target is to send 16 bytes data block per transmission. I had modify the coding from ISR.c and mainloop.c But I still fail to make it transfer 16 bytes data per packet. (this is the coding from interrupt service routine,ISR.c) void Isr_Ep02Done(void) { unsigned char bbuf[16]; int i = 0; Hal4D13_GetEndpointStatusWInteruptClear(EPINDEX4EP02); Hal4D13_ReadEndpoint(EPINDEX4EP02,&bbuf, 16); //error was found here : passing arg 2 of //'hal4d13_readendpoint' from incompatible pointer type. if( sendCount < length) { Hal4D13_WriteEndpoint(EPINDEX4EP02, data + sendCount, 16); Hal4D13_GetEndpointStatusWInteruptClear(EPINDEX4EP02); sendCount += 16; if(sendCount > length) { sendCount = 0; length = 0; for( i = 0; i < 65; i++) data[i] = 0; } } } Can anyone give me suggestion on how can I debug this error? I’m stuck…. Thanks, Summer