I am working on LoRa-E5 mini. When I try to erase the chip, I receive the error Error: Mass erase operation failed. Please verify flash protection. So I am trying to set RDP on level 0 to 1, but I am getting an Error: Expected value for Option Byte “RDP”: 0xBB, found: 0xAA Error: Option Byte Programming failed or modified by application after OB_LAUNCH.
Any help would be greatly appreciated.
Hi, I am facing the same problem with my LoRa wio e5. Did you solve it? If so how?
I didn’t find the any exact solution. But if you have to change the Option byte from 0xAA to 0xBB and then try it might work. Let me know if it worked.
LoRa-E5: Mass Erase Fails & RDP Option Byte Programming Error
I am working with the LoRa-E5 module (STM32-based MCU). When attempting to erase the chip using STM32 programming tools, I encounter the following error:
Error: Mass erase operation failed. Please verify flash protection.
To resolve this, I tried changing the Readout Protection (RDP) level from Level 0 to Level 1. However, I am running into another issue during Option Byte programming:
Error: Expected value for Option Byte “RDP”: 0xBB, found: 0xAA
Error: Option Byte Programming failed or modified by application after OB_LAUNCH.
What I’ve tried:
-
Attempted mass erase via STM32CubeProgrammer
-
Tried setting RDP from Level 0 (0xAA) to Level 1 (0xBB)
-
Repeated attempts after reconnecting and resetting the board
Questions:
-
Why is the RDP value not updating (still reads 0xAA)?
-
What could cause the “Option Byte Programming failed or modified by application after OB_LAUNCH” error?
-
Is there any additional step required to disable flash protection or successfully perform a mass erase on LoRa-E5?
pradeepkumar,
I remember reading somewhere that you should set SUBGHSPISD to 1.
Try searching for it online.