simple uart dma transmit for logs ?
Hello everyone,
I'm working on stm32f103.
I try to use HAL_uart_transmit_DMA, in a circular buffer for simple logs.
I created a circular buffer, on which I can write my strings.
the issue is... my circular DMA write it as as loop instead as finishing at the end of the string.
So if I write "Hello" wait enough time and "World" in 8 bit long buffer, I get:
"rld'\0'oWo" in loop.
I would have hope with some magic, dma would stop '\0', but it doesn't. This would be great option for ascii
I would have hoped dma would send the right interrupt sor it can be easy, but it's not.
I would appreciate any advice so that dma_tx in circular would work as circular buffer, but appropriate with logs.
I would love is those advice would use hal library instead of driver layer or register to keep it working between projetcs and chips.
