USART DMA Receive Complete Callback Conflict?
I am using an STM32F072B-DISCO board as an interface between two serial data streams. I have USART4 operating at 1.5 MBit/s and USART1 operating at 115,200 Bits/s. I am using both in DMA mode to avoid blocking code.
This is the initialisation:

And the callback for when serial data is received:

I am using port PC12 to indicate when a byte is received as shown below:

So the receive complete callback routine is definitely being executed (PC12 is connected to D2 on the logic analyser trace), but no data is being sent out on USART1 (D8). i have the normal selections set in STM32CubeMX for USART DMA operation per the below.
If I enable the code in the main While loop, then the Hello! messages are continuously sent out. My hunch is that USART DMA transmission isn’t possible within the receive complete callback routine, is this the case please? If so, else can I try please?
I also tried using HAL_UART_Transmit_IT() to send out the Hello! messages from within the callback routine, but with the same result - no data is transmitted.




