1. 解释HAL_UART_ErrorCallback是什么HAL_UART_ErrorCallback是STM32 HAL库中UART(通用异步收发传输器)模块的一个回调函数,用于处理UART通信过程中发生的错误情况。当UART通信发生错误(如帧错误、噪声错误、溢出错误等)时,HAL库会自动调用此函数,以便开发者可以在其中实现错误处理逻辑。
I have 2 MODBUS 485 ports, one in UART1, the another in UART3, both in DMA mode. Testing frame collisions with Docklight I see the function HAL_UART_ErrorCallback called with an Error code of 1 (Parity error), 8(Overrin error) or 11 (Parity+Noise+Overrun error). In case of UART...