2023-02-28 01:03 PM
Hi,
i have been using F030C6 with 1 uart and make DMA works. but when i received a modem message( like AT+CPIN? e.g.) DMA stops 2 or more times. We can see the image below that i put one toogle pin to show when DMA interrupt occurs.
my question is how can i configure this IDLE minimum PERIOD?
Solved! Go to Solution.
2023-03-12 08:19 AM
What you actually want in this case is RTO (receive timeout), not "idle" event.
But UARTs of STM32F0 don't have RTO feature.
Either use a timer or as @Piranha advises, don't care for pauses, parse continuously.
2023-03-11 01:03 PM
First, implement a sane UART driver:
https://github.com/MaJerle/stm32-usart-uart-dma-rx-tx
Second, you don't need to change the IDLE period, but instead implement a proper AT message parser, which doesn't care for pauses.
2023-03-12 08:19 AM
What you actually want in this case is RTO (receive timeout), not "idle" event.
But UARTs of STM32F0 don't have RTO feature.
Either use a timer or as @Piranha advises, don't care for pauses, parse continuously.