Saturday, June 24th 2017, 12:36pm UTC+2

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

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++;
}