2026-05-06 5:39 AM - edited 2026-05-06 7:22 AM
I have a STM32U585 (edit: ...VIT6, so not the one where this doesn't work due to errata) product with Trustzone enabled, Bootlock disabled and RDP level 0.
I want to bring this into ST bootloader mode from software (for easy Firmware change via USB).
To my understanding that would mean implementing the last entry of Pattern 12 from AN2606
Which means the following code, executed from secure side.
RCC->APB3ENR |= RCC_APB3ENR_SYSCFGEN; //clock is disabled after startup, so enable
__DSB();//make sure data is written
SYSCFG->RSSCMDR = 0x1C0; //pattern from AN2606, RM says any value will do?
__DSB();//make sure data is written
__NVIC_SystemReset(); //SW resetBut all I get is a restart to SECBOOTADD0. And RSSCMDR is zeroed out afterwards, even though the RM states that it is only affected by power on reset.
What am I doing wrong?