Sunday, November 19th 2017, 8:56pm UTC+1

You are not logged in.

  • Login
  • Register

rom1

Beginner

Date of registration: Aug 1st 2008

Posts: 2

1

Friday, August 1st 2008, 3:53pm

Problem USB Bulk

Hi,
I use emUSB 2.20 for a Bulk device on the NXP LPC2368 and it work quite well.
But sometimes , the progam stop in Readcmd or Writecmd fonctions (static void _WriteCmdWithData(U32 Cmd, U32 Data) , static unsigned _ReadCmdData(U32 Cmd) ....) at the this line :
while ((__USB_DEV_INT_STAT & CCEMTY_INT) == 0);
So the on the computer software side it also stop and give an error !

any idea?

Thanks
Romain

rom1

Beginner

Date of registration: Aug 1st 2008

Posts: 2

2

Wednesday, August 6th 2008, 2:37pm

ok, i found an halfway solution !
use a kind of TimeOut on the while loop :
while ((__USB_DEV_INT_STAT & CCEMTY_INT) == 0 && cpt<5000){
cpt++;
}