cancel
Showing results for 
Search instead for 
Did you mean: 

Getting started with STM32WB55 - DMA does not work as expected - Example code doesn't work.

EM_Embedded
Visitor

The simple DMA_MUX_RequestGen example code doesn't work as expected.

I have tried running the example from https://github.com/STMicroelectronics/STM32CubeWB/tree/master/Projects/P-NUCLEO-WB55.Nucleo/Examples/DMA/DMA_MUX_RequestGen

on the P-NUCLEO-WB55 board, but it does not run as expected; when I press the SW1 button, the LED2 gets on, but it stays on forever, and it does not toggle as expected (the DMA gets only the first trigger and then stops functioning)

The DMA ISRs also don't get triggered in any case.

After enabling the EXTI line4 interrupt and changing the HAL_DMA_Start_IT(&DMA_Handle, (uint32_t)SRC_Buffer_LED2_Toggle, (uint32_t)&LED2_GPIO_PORT->ODR, 2);

to: HAL_DMA_Start(&DMA_Handle, (uint32_t)SRC_Buffer_LED2_Toggle, (uint32_t)&LED2_GPIO_PORT->ODR, 2);

Somehow, it started to work, but none of the DMA interrupts will work in either case.

Then I tried configuring it with the CubleMX but I can't get it to work, the DMA gets the first trigger from the GPIO but it doesn't continue running as expected.

Basically I would expect that example code provided by STMicrocontrollers would work out of the box without any modifications?

Any help would be appreciated!

 

0 REPLIES 0