Skip to main content
Visitor II
November 22, 2024
Question

STM32F746 and External SDRAM Problem

  • November 22, 2024
  • 2 replies
  • 872 views

 

 

Hello,

I want to use external SDRAM as the LTDC framebuffer with the STM32F746 microcontroller. I can write and read the desired data to/from the SDRAM without any issues. However, when I activate the LTDC, during the SDRAM initialization and configuration settings, I suddenly encounter a "target is not responding" error. After this, the microcontroller becomes completely unresponsive. The only way to recover it is to set it to boot mode and erase the entire flash memory.

What could be the problem here?

I appreciate your help.

Thank you.

 

 

---

 

    This topic has been closed for replies.

    2 replies

    johnLockeAuthor
    Visitor II
    December 3, 2024

    Is there anyone who can help with this issue?

    Graduate II
    December 3, 2024

    Perhaps some kind of short, or issue, with pins used for video output.

    Or conflicting with debug/trace pin, so PA13,PA14,PB3 to start with.

    You could delay the enablement of this SDRAM/LTDC mode, say by a few seconds, this would allow for debug connectivity in a window with "connect under/after reset"

     

    johnLockeAuthor
    Visitor II
    December 10, 2024

    Hello, Tesla.

     

    Thank you for your response.

    The issue is not related to the conflict between LTDC pins and SWD pins or the SDRAM initialization problem. I solved the issue by connecting the BYPASS_REG pin to VDD with a resistor. Now, everything works as it should. I can write to and read from the LTDC framebuffer in the SDRAM.

     

    My current problem, however, is that when I enter debug mode, the code runs as expected. But if I stop the debug session, I cannot reconnect to the MCU. I have to restart in boot mode and perform a mass erase on the chip. I wonder if this issue might be related to the MPU configuration.

     

    Best regards!