Vincent Gagliardo

Respond to USB command after code restart.

Discussion created by Vincent Gagliardo on Apr 15, 2013

Device: mcf52258

Compiler: CW Eclipse 10.2

RTOS: None/Bare Metal

 

I have a custom usb driver that I am trying to setup to respond to

a command after a restart.  Note that the usb driver is interrupt

driven.

 

The desired process is as follows:

1) Out pipe issues a command.

2) code restarts.

3) In pipe issues a response.

 

In my code I purposely do NOT enable the USB peripheral after

the code is restarted to avoid a reset.  However I do install and

enable the interrupt a second time.  The response to the OUT

pipe is a stalled IN pipe.

 

Any ideas as to what could be causing this?

 

Outcomes