cancel
Showing results for 
Search instead for 
Did you mean: 

Debug problem with code execution from RAM

mehmet f.
Associate

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

1 ACCEPTED SOLUTION

Accepted Solutions

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 Venmo
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

2 REPLIES 2

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 Venmo
Up vote any posts that you find helpful, it shows what's working..
mehmet f.
Associate

Yes, disabling cache worked.

Thank you so much!