Skip to main content
mehmet f.
Associate
December 15, 2020
Solved

Debug problem with code execution from RAM

  • December 15, 2020
  • 2 replies
  • 2083 views

Hi,

I have problem with debugging execution from internal SRAM. I use Cube IDE and STM32H750 Disco board. There was no problem when I debug from flash.

But when my binary size exceeded the flash capacity(128KB), I had to use external memory for the program code. I am copying code to internal sram and execution starts from address 0x24000000. I am able to run and suspend the application using debugger. Then I can resume it. It works.

So far so good.

But when I set a breakpoint, it stops at there but then can't continue somehow. It gets stuck there. I can't resume, step out, step in etc. from there. And console writes this:

handle_vCont_t, Thread already stopped

I see PC and SP. They seem ok.

Am I missing something in debug configuration?

I appreciate your helps

This topic has been closed for replies.
Best answer by Tesla DeLorean

Perhaps disable the caching on the RAM? Try a different debugger/tool set.

Could you use QSPI?

The part does have 2MB of FLASH on die, and the DISCO/DK used more than 128KB for the demo.

2 replies

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
December 15, 2020

Perhaps disable the caching on the RAM? Try a different debugger/tool set.

Could you use QSPI?

The part does have 2MB of FLASH on die, and the DISCO/DK used more than 128KB for the demo.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
mehmet f.
mehmet f.Author
Associate
December 16, 2020

Yes, disabling cache worked.

Thank you so much!