cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeProgrammer Issue erasing sectors past 127

Sde B.1
Associate

Using STM32CubeProgrammer V2.11.0 on Windows 10

I have issues erasing sectors past 127 on the STM32L496RET6 MCU.

Erasing sectors 0-127 appears to work okay.

Erasing sectors 128-255 does not show an error, however when I re-connect the programmer to the MCU the data is still shown in flash.

My option bytes are set as:

WRP1A_STRT = 0x10

WRP1A_END = 0x17

WRP1B_STRT = 0xff

WRP1B_END = 0x0

1 REPLY 1
Bubbles
ST Employee

Hi @Sde B.1​ ,

the STM32L496RET only has 128 sectors per bank. I think you are attempting to erase sectors in bank 2, but these are not number 128-255, these are 0-127 in bank 2.

BR,

J

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.