Other Parts Discussed in Thread: C2000WARE
Hello,
I'm on a F28377s board and my problem was about USB (code use the exemple USB CDC)
My problem is about this post but which was closed..:
https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/632973
It was on the USB ControlHandler notification:
When I connect the USB cable between computer and my board, I receive the notification ControlHandler with Event = 0 = CONNECTED.
In the same handler, there are a case for "DISCONNECT"
Then the reported problem was this "DISCONNECT" event was not received when the cable is plug out.
The solution provide to me is to implement a routine on the USB Power pin get on a GPIO.
When this pin goes high, call USBDevConnect, then when this pin goes low (cable unplug), call USBDevDisconnect.
This is what I do, but the ControlHandler is not called on cable unplug after USBDevDisconnect was called...
Then also, the Event "Connect" not called when cable is plugged again.
:-(
My aim is to inform application the cable is plugged or not to switch an internal mode needed on higher layer.