Cannot de-initialize USB Host pull down on STM32F407
For our application we use a USB Host to communicate with a HID class device. We've constructed a way to measure the state of the device by measuring the Impedance on the USB datalines. This requires that the datalines are in a high impedance state.
Our problem is that we cannot put the USB datalines in a high impedance state after the USB Host has been initialized.
It seems that, once the USB has been power the pull-downs can only be disabled trough a reset.
The USB de-iniitialization function does not affect the GPIO. It seems they cannot be re-configured to something else.
Is there a way to properly disable the USB and return the original GPIO functionality to these pins?
We use STM32CubeMx Together with Atollic truestudio.
#usb-host #stm32