cancel
Showing results for 
Search instead for 
Did you mean: 

Has anyone tried executing code/Debug from SRAM instead of flashing everytime on stm32f407 using Keil MDK5 ?

kiran kanchi
Associate II
Posted on June 04, 2018 at 18:32

To prevent Flash wear out i am trying to debug code from SRAM on STM32F4 on Keil IDE MDK5.

kindly let me know if anyone has done it.

thanks in advance .

12 REPLIES 12
Posted on June 04, 2018 at 21:04

+1 on CM0/CM0+ the ST parts run really slow once you need a wait-state on flash. Can get close to 64 MHz out of SRAM, as I recall.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
Posted on June 04, 2018 at 21:49

I  had several STM32 Primer tools with rlink debugger / programmer. I do not like Ride7 so I decided to use Keil and load the binary code directly to SRAM.

I wanted to avoid PCB hacking (boot pins  &UART1 access to use built-in bootloader OR swd pins re-routing to connect st-link).

USB was accessible through external connector so I developed USB-based bootloader just to load the code to SRAM...

Of course the STM32CubeProgrammer, for those who do not have such non-flexible devices like Primer / EvoPrimer tools, might be more convenient to use for downloading the code to SRAM...

Posted on June 05, 2018 at 04:14

Thanks everyone

On Tue, 5 Jun 2018, 1:19 a.m. Bogdan Golab, <st-microelectronics@jiveon.com>