2019-01-26 03:28 AM
Regarding to the question posted here:
I have the exact same problem using a STM32-L432KC. Is there any sample code showing how to implement a Receive Timeout Interrupt handler using HAL?
Thanks in advance
2019-01-26 06:35 AM
Dma needs depend on the baudrate. 115200bps makes 1 byte per 100usec. If the core runs at 48Mhz, thats 4800 cycles: byte by byte interrupt might be an intermediate step?
2019-01-26 11:51 AM
2019-01-27 04:37 AM
If you want to check for every single received byte, I'd rather suggest using LL drivers, enable RXNE interrupt and process it within the ISR.
If you want to use DMA, i always suggest the creation of a protocol stack with chunked transfers. This approach solves the fixed-length buffer required by DMA.