Skip to main content
nirav soni
Associate II
May 8, 2019
Solved

How to modify default option bytes in to STM32 uc using DFU.

  • May 8, 2019
  • 2 replies
  • 1204 views

I am using DFU to load my application code in to target board, I can be able to convert application build in to dfu build and also be able to load using DfuSe tool in to my target board.

I want to enable the ROP (level-1) in STM32, for that I need to change the default value of option bytes,

Can anyone know how to modify the default value of option bytes for STM32 uC/chip using DFU.

This topic has been closed for replies.
Best answer by Tesla DeLorean

Don't they just exist at a specific address, and you just add a record describing them?

Also, consider having your own code know to lock down the part and do whatever first time initialization/calibration required.

2 replies

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
May 8, 2019

Don't they just exist at a specific address, and you just add a record describing them?

Also, consider having your own code know to lock down the part and do whatever first time initialization/calibration required.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
nirav soni
Associate II
May 10, 2019

Thanks for the reply,

I have implemented in program, It works the way you have suggested.

Please check the image.

The only question I have is after executing HAL_FLASH_OB_Launch() I am not able to do further debugging.

While debugging the code for the first time once the above mentioned function is executed then I am not able to do further debugging,

Is it because the option bytes are loaded and even then dynamic debugging is not possible.

Please confirm your view.

Thanks once again for all the support.

0690X000008BXa8QAG.png