Closed ymkim92 closed 1 year ago
Please double check that all parameters are properly used for both uarts.
It is very hard to find the cause of the problem. I have decided to use the interrupt instead of DMA.
Can you paste the full source of all uart rx callbacl functions here?
I am sorry for this late response. I can't find the code at the moment. But I guess the cause of the problem was the different priority between interrupt and dma stream. I overlooked the note in README.md.
I love this repo. It has nice documentation as well. Thank you.
I found a problem when I try to work with 2 UARTs by following the instruction here. The code uses RX DMA. It works fine when I test each UART port one by one. But the problem happens when I play with 2 ports at the same time:
The problem I found is that "LL_DMA_GetDataLength()" returns a wrong value sometimes very often in the case above. I use different streams: