2018-07-11 05:08 AM
Description
type: bug
Bug
Target
STM32L476Files
stm32l4xx_hal_uart_ex.cstm32l4xx_hal_uart.cmbed-os
5.8.1Issue
When we want to construct a serial object, it 'hangs' when it is waiting on `USART_ISR_REACK` to become high in `HAL_UARTEx_StopModeWakeUpSourceConfig`. In the timeout` UART_WaitOnFlagUntilTimeout` it is waiting for 0x1FFFFFFU ticks before leaving the timeout since the REACK flag isn't being triggered. We also tested this issue with the STM32L072RZ but this has a timeout of just 0x1000. With the L072 it also runs into it's timeout because the REACK flag isn't being triggered aswell, but this timeout continues after just 1000 ticks. Changing the 0x1FFFFFFU timeout to 0x1000 'fixes' the issue.Questions
--note, i have also placed this topic on the github of mbed