I am using a STM32L072KB microcontroller and tried to get familiar with timers. I wanted to use a timer to toggle a GPIO/LED via DMA.
I read on a book "Mastering STM32" (https://leanpub.com/mastering-stm32) that it is obviously not possible here, to use DMA for directly accessing the GPIO with a STM32L0 core, but I have not found anything in the reference manual which confirms that restriction (https://www.st.com/resource/en/reference_manual/dm00108281.pdf):
Here is the example of the book for a F4-core which uses the timer+DMA and access the GPIO directly:
But it seems to be true: I found on a forum a post, that someone supposes that for the L0-core a PWM can be used additionally as a workaround to get work with DMA.
Can someone please explain me, why DMA cannot access GPIO directly on a L0-core and how I can implement a GPIO/LED toggle (perhaps with the PWM proposal)?