2022-03-22 02:06 PM
This is the text from the manual:
For more information about the device option bytes, refer to the dedicated section in the programming manual and reference manual, both available on www.st.com.
2022-03-22 02:34 PM
This would be the PM and RM of the specific STM32's of interest
For the STM32H7 Programming Manual
Reference
2022-03-22 02:39 PM
Maybe this text should mention DS (data sheet) instead of Programming manual.
The two main documents that describe every STM32 device are DS and RM.
CubeIDE or CubeMX can find them for you.
The PM describes the ARM core of the STM32, instruction set and so on, it does not cover ST-added components such as option bytes,
2022-03-22 02:58 PM
Latterly the PM have gone over the plumbing of the debug components (SWD, DWT, ETM, etc) in more detail, and are ST's equivalent to ARM's TRM
Contextually they are helpful as ST takes ARM's IP and integrates it, or chooses options for what to pull in or leave out of the overall design.
2022-03-23 01:29 PM
Thank you both for your help. Do you know if the STM32_Programmer_CLI.exe provides any return codes? I am converting an old program that used ST-LINK_CLI.exe, but I don't see any feedback to indicate success or failure.
2022-03-23 02:15 PM
Do you have the newest version? IIRC this already has been discussed for older versions.
Since the programmer CLI is used by the debugger to flash the MCUs, it should provide return status at least for flashing commands.
Maybe, try to parse its output.
2022-03-23 02:39 PM
Return codes would be the way rational implementations would do this, like UNIX and DOS have done for decades.
It's been discussed before, not sure of the current standing of the issue, the tools lock up so much I've stopped bothering to care.
For production grade stuff you'd be better looking at more professional or open tools.