FX2 re-enumeration (USB-plug/unplug) | Cypress Semiconductor
FX2 re-enumeration (USB-plug/unplug)
I'm trying to understand exactly what happens when the FX2 has power but the USB is unplugged and then re-plugged back in. Our firmware uses the vend_ax example as skeleton code. I had thought originally that if the user unplugs the USB cable and plugs it back in (power is supplied separately; not through USB) that TD_Init() would be called again. However, that appears to not be the case. I understand that when the USB is unplugged the FX2 will go into sleep mode and that it "wakes up" when the USB cable to the host is plugged back in.
My issue is, given how our FX2 and FPGA are integrated, I need to send a signal from the microcontroller to reset the FPGA when this re-enumeration event happens and I'm not sure what routine will be called once when the USB cable is inserted. I found somewhere that TD_Init() is called when "re-enumerating a new device" but apparently unplugging and plugging in USB cable connecting to the host is not that event?
Any wisdom welcome!