2016-05-29 11:02 AM
When some output configured as an alternative function, the only option available is ''Alternative Function Push Pull'' but according to Ref manual (e.g. for stm32f405) the Open Drain for alternative function is also possible and was required in my application.
2016-05-30 04:21 AM
Hi klymenko.sergii,
I have made a test and everything is fine : I configured PA1 as TIM5_CH2 and picked GPIO mode as ''Alternate function Open Drain'' ( as you see in Figure bellow; mcu target STM32F405/407) -Hannibal-2016-05-30 06:30 AM
Hi Hannibal,
Could you please check the same on USART1. May be only there the bug is reproduced2016-05-30 09:01 AM
My screenshot itself
2016-05-31 06:16 AM
Hi ymenko.sergii,
UART does not operate in an open drain mode, but rather in a push pull. The same with other COM peripherals like SPI. For I2C it is operating on open drain . Maybe there is solution with external components to allow USART I/O operate/emulated as open drain ; you should make you search. -Hannibal-2016-05-31 10:48 AM
No way, next ...
According to RM and GPIO section, alternate fuction can be configured both oped drain and push pull. Programist can chose which is wright choise for....2016-05-31 02:24 PM
USART1 really works with open drain at TX line. Take a look at GPIO_MODE_AF_OD define in HAL driver. I've also checked this in hardware and yes, it really works.
So the bug in CubeMX is still open.2016-06-01 09:05 AM
Setting uart/usart as ''single wire (half-dupex)'', tx pin is configured as ''open drain''
2016-06-01 03:02 PM
silva.rosiney, unfortunately I need full-duplex use case.
2016-06-02 07:01 AM
Hi klymenko.sergii
As Silva mentionned the open drain is allowed for USART pin only in the case of half duplex to switch between transmit/receive. In case of full duplex, the Push pull is doing the work. -Hannibal-