Skip to content

STM32L4 Serial Overrun error Interrupt flags clear #15308

Open
@huarunlin

Description

@huarunlin

When I debugged the STM32L496vg, I found that the serial overrun error interrupt flag clearing process is inconsistent with the st reference manual

if (__HAL_UART_GET_FLAG(huart, UART_FLAG_ORE) != RESET) {
if (__HAL_UART_GET_IT(huart, UART_IT_ORE) != RESET) {
volatile uint32_t tmpval __attribute__((unused)) = huart->Instance->RDR; // Clear ORE flag
}
}

ST RM0351 Reference manual:
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions