Question
STM32H563 Debug Authentication
Hello,
I have a ARM Keil MDK project with STM32H563ZI and want to protect it against readout. So I want to use the Debug Authentication. The trustzone is not activated.
The first time programming is done over UART and then over USB by an own tool and IAP.
In the firmware IAP routine I can switch the product sate to "Provisioning", but I am not sure how to program the SHA256 key into the HDP memory.
Am I on the right way with this ?
OBInit.OptionType = OPTIONBYTE_HDP;
OBInit.HDPStartSector = ???; // OBKeys address FLASH_OBK_HDPL1_BASE_S = 0x0ffd0100
OBInit.HDPEndSector = ?????;
status = HAL_FLASHEx_OBProgram( &OBInit );
Regards
Axel
