cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX 6.15: Incorrect LL code generation for Circular DMA on STM32H523

peterdonchev
Senior

Hi,

When configuring a DMA channel in Circular mode with the LL code generator for STM32H523, the generated initialization code is incorrect.
It creates a DMA Link Node (LL_DMA_LinkNodeTypeDef) on the stack, which is invalid since the DMA continuously accesses this structure. The link node should be placed in persistent memory instead.

Additionally, the generated code does not set the source address, destination address, or block length when the link node is created, although these can be manually set later.
Regards,
Peter

0 REPLIES 0