cancel
Showing results for 
Search instead for 
Did you mean: 

TIM_DMAError with ErrorCode 1

JBond.1
Senior

Hi, I am trying to send WS2812 LED data as PWM signal using DMA. All works on STM32F091/STM32F103, but when I try to do it on STM32F407 sending via DMA fails.

My TIM1/DMA/NVIC settings:

0693W00000Y8pc8QAB.png0693W00000Y8pcDQAR.jpg0693W00000Y8pcNQAR.jpg 

I am trying to call:

HAL_TIM_PWM_Start_DMA(&htim1, TIM_CHANNEL_1, (uint32_t*)LedData, LED_DATA_LENGTH);

But I get calback to "TIM_DMAError" with "hdma->ErrorCode = 1" which means "HAL_DMA_ERROR_TE"?

What could be wrong?

1 REPLY 1
JBond.1
Senior

It seems that the issue was in IRAM2 setting in my old project:

0693W00000Y8qzIQAR.pngVS newly generated project:

0693W00000Y8qzDQAR.pngNew project works now. The question is now, why the old project had bad IRAM2 and why do I need IRAM2 setting at all?