AnsweredAssumed Answered

problem using OTG_FS_VBUS pin like gpio output

Question asked by gracia_ingles.jose_a on Jul 16, 2014
Latest reply on Aug 6, 2014 by Amel N

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.