Dma not working when triggered from timer trigger from external source start a DMA transfer on UART or SPI peripheral on STM32F411?
I am using STM32F411 and SDK v1.27.1
I am trying to trigger an DMA xfer with an external signal source using the TIMER1 External Trigger, without the need to execute any interrupts in the CPU to utilize the CPU time, as I have two signals one every 2ms and one every 150us that come from to different on board ICs, and when each signal is executed an SPI/UART xfer must be done to retrieve data in real-time.
I have used the code generator from the CubeIDE to generate Initialization code, an started the transfer in the main function
Here is the pinout view of the project
Timer1 Conig.


USART1 Config.
Code Snippets
#define BUFF_SIZE 8
uint32_t dma_TxBuffer[BUFF_SIZE] = {0};
uint32_t dma_RxBuffer[BUFF_SIZE] = {0};
HAL_TIM_Base_Start(&htim1);
/* Clear the TC flag in the SR register by writing 0 to it */
__HAL_UART_CLEAR_FLAG(&huart2, UART_FLAG_TC);
/* Enable the DMA transfer for transmit request by setting the DMAT bit
in the UART CR3 register */
ATOMIC_SET_BIT(huart2.Instance->CR3, USART_CR3_DMAT);
HAL_DMA_Start(&hdma_tim1_trig, (uint32_t)dma_TxBuffer, (uint32_t)&huart2.Instance->DR, BUFF_SIZE);After debugging the code I found that the DMA register does not move the data at all
any help?
thanks