STM32H573 code protection
How can the debug interface on the STM32H573 be permanently locked via nonvolatile configuration or fuse?
The SBS chapter of the manual says
The debug configuration can be locked thanks to DBGCFG_LOCK in SBS_DBGLOCKR.
SBS_DBGCR is then no longer writable.
When DBGCFG_LOCK is set to 1, it can be reset only by system or power-on reset.
So SBS_DBGLOCKR is not what I want, as it is not permanent.
The manual refers to PRODUCT_STATE in several places. The "SBS Signals" table in the manual says that the sbs_product_state signal comes from Flash memory:
Signal based on PRODUCT_STATE option byte to activate the different security
mechanisms depending on the product use. Expected values are described in
Section 7: Embedded flash memory (FLASH).
However, there is no mention of this signal in Section 7. What is the Flash programming procedure to change sbs_product_state?
