cancel
Showing results for 
Search instead for 
Did you mean: 

Timer Trigger DMA Tx transfer for SPI2

saiteja_JDHL
Associate II

Hi there,

Iam using STM32F407ZGT6 controller, and we're interfacing DAC (MCP4902) with SPI2 and SPI2 is connected to DMA1.

 

I need to transfer data in a circular mode using DMA1 to DAC using SPI, i have gone through the reference manual only TIM1 and TIM8 are the advance timers and having PWM mode and it is connected to DMA2.

Here iam toggling cs pin and need to transfer data with this function TIM_DMACmd(TIM8, TIM_DMA_Update, ENABLE);  without enabling this  SPI_I2S_DMACmd(SPI2, SPI_I2S_DMAReq_Tx, ENABLE);

Can you please suggest me how Timer Trigger DMA for SPI 2 can be configured.



 

 

11 REPLIES 11

You may be not aware of the fact that this is a primarily user-driven forum, with casual ST presence. I am not ST.

Also, it's unlikely anybody is willing to go through snippets of code in SPL to find any problem. You are mostly on your own.

Read out and check/post relevant TIM, DMA and SPI registers content.

JW

Thanks .