Hi,
I have developped an application on PIC18F2455 that sends quotation on usb.
the application itself is running pretty well, except that I have a problem on the USB stack that happens quite a lot.
The stack Hangs on the PIC.
What the application does :
The pic received from the PC through USB commands like Init, start, stop
whn the Pic is in start mode, it reads an digital encoder and a push button, the encoder modifies the value displayed but the 7-Seg led display, wile sending to the PC the value. and the button validate the value, and put itself in a stop state
every time the problem appears, is after the validation, when the PC sent a start or anything else, the PIC doesn't receive it.
on more 200 "hung" only once the problem occurs when changing the value, meaning that the PC didn't receive new values and validation, and the pic couldn't receive the init command.
As the code has a WatchDog (I have tested it) I came to the fact tat the application is still running properly, but the usb stack, tells him there is no data.
The application is in polling mode, this is the only thing I remember I have change on the default setting I have found in the usb_config.h
As I cannot force the application to hang, I cannot debug it...
Can you enlighten me what could cause the usb stack to freeze and where to look ?
thank you
yves
I have developped an application on PIC18F2455 that sends quotation on usb.
the application itself is running pretty well, except that I have a problem on the USB stack that happens quite a lot.
The stack Hangs on the PIC.
What the application does :
The pic received from the PC through USB commands like Init, start, stop
whn the Pic is in start mode, it reads an digital encoder and a push button, the encoder modifies the value displayed but the 7-Seg led display, wile sending to the PC the value. and the button validate the value, and put itself in a stop state
every time the problem appears, is after the validation, when the PC sent a start or anything else, the PIC doesn't receive it.
on more 200 "hung" only once the problem occurs when changing the value, meaning that the PC didn't receive new values and validation, and the pic couldn't receive the init command.
As the code has a WatchDog (I have tested it) I came to the fact tat the application is still running properly, but the usb stack, tells him there is no data.
The application is in polling mode, this is the only thing I remember I have change on the default setting I have found in the usb_config.h
As I cannot force the application to hang, I cannot debug it...
Can you enlighten me what could cause the usb stack to freeze and where to look ?
thank you
yves