Skip to main content
Visitor II
May 29, 2024
Question

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

  • May 29, 2024
  • 1 reply
  • 1111 views

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

 

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    May 29, 2024

    Hello @PGrif.2 ,

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

    PGrif.2Author
    Visitor II
    May 29, 2024

    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