Can a Debugger Be Used to Program TCM RAM STM32H730
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-19 1:45 PM
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.
- Labels:
-
STM32H7 series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-19 3:57 PM - edited ‎2023-06-19 3:58 PM
Of course you can. Have you tried? Anything went wrong?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-22 8:56 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-22 10:26 AM
>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")
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-27 8:40 AM
Syntactically how would I tell the debugger to do this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-27 9:04 AM - edited ‎2023-06-27 9:06 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-30 6:22 AM
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.
