Skip to main content
Sde B.1
Visitor II
September 26, 2022
Question

STM32CubeProgrammer Issue erasing sectors past 127

  • September 26, 2022
  • 1 reply
  • 639 views

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

This topic has been closed for replies.

1 reply

Bubbles
ST Employee
October 3, 2022

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.