2024-05-29 03:46 AM - edited 2024-05-29 11:47 PM
Hi there,
I've crated a STM32H7 project using the Riverdi 7" example from touchGFX which starts up with no errors showing a picture on the screen.
When I add a circular DMA buffer for ADC3 in the M4 context (only). The generated M7 main file changes the position of the MX_LTDC_Init() and adds MX_DMA_Init() (why?) leading to a blank screen.
Cheers!
left side
M7 main for Riverdi 7" generated by CubeMX 6.11.1
right side
M7 main after adding DMA mode for ADC to M3
2024-05-29 04:46 AM - edited 2024-05-29 04:47 AM
Hello @PGrif.2 ,
When DMA is used, the MX_DMA_Init() shall always be called BEFORE any other peripheral initialization.
2024-05-29 06:24 AM - edited 2024-05-29 11:51 PM
Hi @Imen.D ,
Thanks for your reply.
It s seems like a CubeMX issue, since this section is generated by CubeMX.
DMA is not used nor configured at the M7 core but only at the M4. So why would it be initilized at the main of M7 and why is MX_LTDC_Init() shifted down to almost last position causing the blank screen by default?