cancel
Showing results for 
Search instead for 
Did you mean: 

Can a Debugger Be Used to Program TCM RAM STM32H730

EPala.2
Associate III

Hi, I am working on a project using the STM32H730. In order to accommodate a requirement for larger program memory size we are planning on using an external flash and loading instructions into TCM RAM on boot. My question is whether for development we can use a debugger to program TCM RAM in order to allow for efficient development of new code on the hardware platform. Please advise.

6 REPLIES 6
Pavel A.
Evangelist III

Of course you can. Have you tried? Anything went wrong?

As in you can upload data directly to RAM from the debugger?

Syntactically how would I mark this out in code in the STM32CubeIDE / how do I tell the debugger to load instructions into TCM RAM?

Pavel A.
Evangelist III

>As in you can upload data directly to RAM from the debugger?

Yes, exactly. Debugger is smart, it knows how to write data or code to RAM.

(it does so, for example, to run the "external flash loaders")

EPala.2
Associate III

Syntactically how would I tell the debugger to do this?

Just use a link script that puts the stuff in RAM. If you don't have one, create a new minimal project in Cube, it usually drops two .ld files: for flash (default) and for RAM. Then debug the program.

 

FBL
ST Employee

Hello @EPala.2,

I would recommend taking a look at this How to Create a Super Simple Bootloader, Part 2: Linker File Hands On - YouTube

Definitely, you will need to adjust the memory locations to load instructions. 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.