Hi Giovanni,
DMA is FUN!!!
I have been using DMA for stuff since the Z80 days in the 80's. It takes a while
to wrap your mind around the concepts, but it is not too hard from there...
I have been working through the STM32 docs for the last week and a half.
I think I have figured out the STM32 DMA( famous last words
), but i am stumbling
over figuring out how to do things with Chibios. Its tricky when the documentation for
dmaStreamSetMemory0() says
Associates a memory destination to a DMA stream when in this case I am specifying a DMA source address.
I see in the examples I messed this up... AGAIN!!!
What I am not sure of here, is how to specify the port parameter. There are many
#defines and levels of indirection, and I am having a hard time sorting out how to
pass the address of the output port data register to the dmaStreamSetPeripheral.
I have tried PORTE->ODB, GPIOE_BASE->ODB and GPIO_PORTE->ODB
Thanks for all your help
-John