Skip to main content
MSqui.1
Visitor II
July 15, 2022
Question

STM32CubeProgrammer - i need to load and run an application in ram.

  • July 15, 2022
  • 3 replies
  • 916 views

ST STM32F469NI

i need to load and run an application in ram.

with STM32CubeProgrammer via USART1 I load the code in flash without problems and it is executed

If I try to load a linked application to be run in ram

STM32CubeProgrammer in programming gives me the following error

as attachment

This topic has been closed for replies.

3 replies

MM..1
Chief III
July 15, 2022

I mean this is directly possible only over SWD / STLink, over bootloader only indirectly...

Tesla DeLorean
Guru
July 15, 2022

RAM is at 0x20000000 not 0x02000000

Seem to recall the loader uses some of the RAM for it's own execution/stack, etc.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Tesla DeLorean
Guru
July 15, 2022

The alternative is to make a really simple .HEX loader that runs from FLASH, and expects you to send the file directly to the serial terminal attached to the UART.

If the Terminal supports X/Y-Modem a .BIN could also be done very robustly.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..