Toggle the led using DMA.
I'm using STM32G071RBT6 MCU . In that I'm using DMA to toggle the on board LED. So it's very simple but somehow it is not toggling.
The on board led is LED3 that is in port 5(PA5). I' using circular DMA to toggle it or even if i have to turn on the led through DMA ,still it won't work. here is an example ....
Here is the DMA config-
here is the gpio output that i have to write
now here is the code-
uint32_t led = 0x00000020;
//uint32_t led = GPIO_ODR_OD5;
this example is to just turn on the led.
HAL_DMA_Start(&hdma_dma_generator0, (uint32_t)led, (uint32_t)&GPIOA->ODR, 1);
Still it doesn't turn on.

