Skip to main content
Robert Ritchey
Senior
June 2, 2021
Solved

What are the Erasing and Programming Automatic Mode Option Byte Commands?

  • June 2, 2021
  • 13 replies
  • 4688 views

I have been looking into using the Automatic Mode under Erasing and Programming and I need to use the Option Bytes Command. But, I see some examples but no actual list of actual Option Byte names that the interface will accept. The examples seem to show Option Byte fields rather than the full Option Byte. Does this mean I need to specify every field I want to change? Are the field names exactly the same as the ones in the reference manual? This is really incomplete. I am using the STM32G030C6. Thanks.

This topic has been closed for replies.
Best answer by Houda GHABRI

Hi @Robert Ritchey​ ,

Thanks for your feedback, please find below my answers :

  • To find the complete list of Option Bytes you can use this CLI command : STM32_Programmer_CLI.exe -c port=SWD -ob displ
  • For modifying Option bytes in automatic mode, actually yes you need to specify them but I will raise this point internally to

CubeProgrammer development team and see how we can ameliorate this point.

Hope this helps you.

Houda

13 replies

Houda GHABRI
ST Employee
June 25, 2021

Hi @Robert Ritchey​ ,

It is a general option byte problem in automatic mode related to specific line in STM32G0 : device ID 0x466.

Hope this helps you.

Houda

Robert Ritchey
Senior
June 25, 2021

Hi @Houda GHABRI​ , just my luck. I generally use the STM32F0 line but you cannot get any of them anywhere. Thanks for all the help

Robert Ritchey
Senior
July 21, 2021

Hi @Houda GHABRI​ , I ended up using a batch file to program the STM32G0 parts so I could do the protect. I do have one suggestion for the STM32CubeProgram programmer about the log command. It would be useful to be able to specify to append to the log file. I have my batch file do a loop but every time the log file is over-written instead of being appended to. Thank you.