STM32F411 Software toggle between USB Host and USB Device
Hi all!
I am developing a midi pedal using the USB functionalities of the STM32F411. I want to use a software toggle to switch between Host and Device.
I am having this issue: I can't use OTJ Dual mode because it uses pin PA10, which I use for the UART (I actually only use sending for this UART, but for some reason, both pins are reserved anyway). I can toggle between Device_Only and Host_Only within STM32CubeIDE. How can I achieve that on the go in software? I don't mind if the device needs restarting in between. Any help will be greatly appreciated!
