cancel
Showing results for 
Search instead for 
Did you mean: 

How to limit STM32CubeProgrammer to only erase sectors that are used in the program.

bnguy.1
Associate III

I'm using the last 2 sectors in Flash for storing user data, but when I reprogram the firmware via STM32CubeProgrammer (uart) it automatically erases those sectors too.

If I download the firmware via CubeIDE (jtag/swd port), the calibration sectors do not get erased.

Is there a way to to configure the CubeProgrammer to only erase the first few sectors before programming?

2 REPLIES 2
TDK
Guru

The behavior of STM32CubeProgrammer's UART mode isn't very well defined. I would try using the command line to see if you get different results.

If you feel a post has answered your question, please click "Accept as Solution".
Houda GHABRI
ST Employee

Hi @bnguy.1​ ,

Similar issue is fixed in last CubePRogrammer version 2.10.0, can you try please and tell me if it is OK?

Houda