2023-01-21 01:05 PM
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:
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?
2023-01-22 10:25 AM
It seems that the issue was in IRAM2 setting in my old project:
VS newly generated project:
New project works now. The question is now, why the old project had bad IRAM2 and why do I need IRAM2 setting at all?