cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U585: Start bootloader via RSS command

OliM
Senior II

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

OliM_1-1778070843232.png

 

OliM_0-1778070786976.png

 

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 reset

 But 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?

0 REPLIES 0