Questions regarding using STM32 as a UART "relay"
Hi, our hardware engineer kinda messed up and I'm forced to use an onboard STM32C8T6 and lowball it as a UART "relay", basically UART1 reads whatever that's putting in with likely a buffer of 32 bytes, and immediately sends them out over UART3.
The dumb way to do it of course would be to use polling, a loop that keeps reading the buffer and then send things out, but I want to do it right, with speed and swag.
This is my plan:
UART1 reads stuff that fed to it, use DMA to house these data. This process should have minimal if anything, zero core processing unit involvement.
After the data got updated into the DMA RAM region, it immediately uses the DMA (yes, again) to push the data to UART3.
Sounds straightforward enough except I don't know how any of the DMA stuff works. I understand it will be lightening fast but how would I do it? Do I need to get interrupt and a handler involved?
Are there any ready made examples?
Please help, thanks in advance!
