Skip to main content
Associate III
August 8, 2024
Question

[STM32H750] How to Debug in SDram

  • August 8, 2024
  • 2 replies
  • 2095 views

I use STM32H750XBH6, Flash is 128kBytes.

My Program is too big,so I Write a BootLoader to load the program into sdram ,and run it in sdram.

This is the setting of my APP in keil,

Passerby_0-1723087388465.jpeg

This way can run the program successfully , but I cannot debug APP in Keil.

How Can I Debug APP in Keil?

 

 

Thanks!

 

2 replies

STOne-32
Technical Moderator
August 11, 2024

Dear @Passerby ,

I assume this Application Note was used :

https://www.st.com/resource/en/application_note/an5188-external-memory-code-execution-on-stm32f7x0-value-line-stm32h750-value-line-stm32h7b0-value-line-and-stm32h730-value-line-mcus-stmicroelectronics.pdf

there is a particular hint at the end when using IAR EWARM, I would say there is similar technique for Keil/ARM MDK as well . Hope it helps you .

STOne-32

PasserbyAuthor
Associate III
August 12, 2024

Hello @STOne-32 

     I can jump to the APP runtime, but I don't know how to Debug in Keil.

     I can only use printf for debug right now

 

Thanks!

BarryWhit
Lead
August 11, 2024

Odd Coincidence... This was posted today in the knowledge base:

https://community.st.com/t5/stm32-mcus/debugging-in-external-memory-on-stm32cubeide/ta-p/705333

 

Targets CubeIDE, but may give you hints for achieving same in KEIL. There's also a link to a training video on youtube. 

"- If someone's post helped resolve your issue, please thank them by clicking ""Accept as Solution"".- Please post an update with details once you've solved your issue. Your experience may help others."
PasserbyAuthor
Associate III
August 12, 2024

Hello @BarryWhit 

    Thank you for your reply. I can debug using Qspi-Flash, but I don't know how to debug using Sdram!

 

Thanks!