This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

problem using OTG_FS_VBUS pin like gpio output

Hi,

I´m using pin A9(OTG_FS_VBUS) like GPIO and I have configured it like output. The problem is that when cpu boots it sets pin to high level, after cpu executes my gpio init routine and the pin works well and I set it to low level. The problem is gpio attach a relay and when cpu starts the init pulse produces a non desiderable conmutation. I think the problem is the alternate function of the pin for usb, but I don't know how can I deactivate it to avoid the init high pulse. I have tried to pull down externally and left it floating too, but in both cases the pins goes high at start.The cpu boot from flash memory(BOOT1 =X, BOOT0 = 0) and the cpu is a STM32F205RF.
Thanks.

0