cancel
Showing results for 
Search instead for 
Did you mean: 

How to recover STM32U545VE board after getting bricked.

adityaopatil
Associate

We tried to set the OP bytes using the JLink.exe through command line. We tried to enable TZEN and set the secure area 1 & 2. 

// Initialize J-Link connection
r
h

// Write operations with register names
// ICACHE_CR register
w4 0x40030400, 0x00000000

// FLASH_NSKEYR (Non-Secure Key Register)
w4 0x40022008, 0x45670123
w4 0x40022008, 0xCDEF89AB

// FLASH_OPTKEYR (Option Key Register)
w4 0x40022010, 0x08192A3B
w4 0x40022010, 0x4C5D6E7F

// FLASH_OPTR (Option Register)
w4 0x40022040, 0x9FEFF8AA

// FLASH_NSCR (Non-Secure Key Register)
w4 0x50022028, 0x00020000
w4 0x50022028, 0x08000000

// Reset the target to ensure changes take effect
r

This is the standard flow we are using to set the OB. But when selecting the device in the JLink tool we selected STM32U545RE instead of VE and our device got bricked.

Is there any possible way to recover the board.

0 REPLIES 0