stm32F04 HAL_UART_ErrorCallback is called when set both usart1 and usart2 rx pin to pull-down
Dear all,
Now I meet a strange problem that when I set the uart1 and uart2 pull from PULLUP to PULLDOWN, then I got the Uart errror, HAL_UART_ErrorCallback is called.
May I know any limitation about the PULLDOWN setting about Uart ? Interest thing is if just one of them set to pull down, then it is OK. This error only happens when both of them set to PULLDOWN.
Any clues about that is really appreciated.
Thanks a lot
GPIO_InitStruct.Pin = GPIO_PIN_7;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; GPIO_InitStruct.Pull = GPIO_PULLDOWN; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; GPIO_InitStruct.Alternate = GPIO_AF0_USART1; HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);GPIO_InitStruct.Pin = GPIO_PIN_3;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; GPIO_InitStruct.Pull = GPIO_PULLDOWN; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; GPIO_InitStruct.Alternate = GPIO_AF1_USART2; HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);