Skip to main content
NHarr.2
Associate
January 27, 2023
Question

option byte programming failed

  • January 27, 2023
  • 4 replies
  • 3162 views

using stm32cubeprogrammer and i get the error - option byte programming failed

expected value for option byte "RDP": 0xAA, found: 0xE7

This topic has been closed for replies.

4 replies

Technical Moderator
January 29, 2023

Hello @NHarr.2​,

Which board are you using? or using your own custom board?

Do you use the CubeProgrammer tool in GUI mode or via the command line interface (CLI mode)?

which version of CubeProgrammer ?

Imen

"When your question is answered, please close this topic by clicking ""Accept as Solution"".ThanksImen"
NHarr.2
NHarr.2Author
Associate
January 29, 2023

0693W00000Y9PyyQAF.pngit also show current value as E7.

Technical Moderator
January 31, 2023

Try connecting under reset, checking NRST.

Did you try BOOT0 strapped to VDD?

check this ST video: STM32 Security tips - 3 RDP without POR

"When your question is answered, please close this topic by clicking ""Accept as Solution"".ThanksImen"
NHarr.2
NHarr.2Author
Associate
January 29, 2023

STM32F405RGT6 running on a vesc board. i am using the gui cube programmer v2.12

Tesla DeLorean
Guru
January 31, 2023

Does STM32 Cube Programmer correctly identify the chip? Perhaps show the whole window to provide some context.

You're using an ST-LINK/V2 or V3? Authentic?

Direct USB connection, or via a hub or docking station?

Your board connects/functions otherwise?

What's voltage measured on VCAP pins?

What version of Windows?

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
NHarr.2
NHarr.2Author
Associate
January 31, 2023

0693W00000Y9XQkQAN.png

NHarr.2
NHarr.2Author
Associate
January 30, 2023

@Imen DAHMEN​ 

Tesla DeLorean
Guru
January 31, 2023

If you're going to nudge a thread, add more detail / context.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
istepne
Associate III
February 1, 2023

Hi All,

I am also facing Option Bytes programming problem

In my case STM32G031F8 with RESET pin (Pin6) needs to be programmed as I/O .

Which the parameter is option bytes needs to be NRST_MODE= 2 (Default state 3).

I am not able to set this level via "STM32CubeProgrammer API v2.12.0 | Windows-64Bits "

Sequentally gives and messages "nSWAP_BYE does not exist", "DUAL_BANK does not exist" warnings and "DUAL_BANK is not programmable". I can able to program it via ST-LINK Utilty. As far as I remember that I was able to program with Cube Programmer before with old versions.

If it possible to fix that error?

Also the revision of v2.12.0 gives many pop-up "OK" messages while programming. So, everytime I need to click "OK" 2-3 times.

Regards

Murat