cancel
Showing results for 
Search instead for 
Did you mean: 

H7 Riverdi screen adding DMA to M4 core leads to blank screen

PGrif.2
Associate III

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

PGrif2_0-1716978908068.png

 

2 REPLIES 2
Imen.D
ST Employee

Hello @PGrif.2 ,

When DMA is used, the MX_DMA_Init() shall always be called BEFORE any other peripheral initialization.

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

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?

PGrif2_0-1716988920919.png

PGrif2_1-1716988977798.png