cancel
Showing results for 
Search instead for 
Did you mean: 

How to erase flash before programming with STM32CubeIDE [Solved]

SThre
Associate II

Is there someway to do this with stm32cubeide?

For my specific use case I am storing configuration data on last page of flash (currently working on figuring out how to erase it so i can rewrite it in software), but I would also like to be able to configure it by reprogramming it. I can check that the page is empty and write settings to it, but I haven't found any way to erase it with stm32cubeide, I need to open the st link utility in order to erase the flash as far as I can tell.

11 REPLIES 11

Yes it looks that way.

I guess this is simply not implemented in the gdb server. But a suggestion would be to have "monitor flash bank1_erase" and "monitor flash bank2_erase"