I have two devices. Need to setup UART communication?
I have two STM32 devices and both are identical, send and receive messages in frame formats. They both have UART, DMA, NVIC etc.
And I need a good strategy to setup a lossless communication between them. There is too much information online, but very little about which is good method. Also this project is configured with RTOS.
What I found online:
--> Interrupts is bad strategy.
--> DMA is the good one, DMA with circular buffer is also a good one.
--> byte format is not reliable, so use frame type.(identifier, address, data, crc)
can someone help me here? I'm actually overwhelmed by these concepts.