STM32C562RE unable to unlock RDP2 with JLINK. Works fine with ST-Link.
Locking the controller (NUCLEO-C562RE - RDP level 2 with OEM key) works fine with J-Link / ST-Link (SWD). E.g.
stm32_Programmer_CLI.exe -c port=JLINK -lockRDP2 0x11111111 0x11111111 0x11111111 0x11111111 -ob RDP_level=0x72
-------------------------------------------------------------------
STM32CubeProgrammer v2.22.0
-------------------------------------------------------------------
Connecting to J-Link/Flasher Probe
Device=Cortex-M33
Device ID : 0x44E
Voltage : 3.29V
Frequency : 4000 KHz
NVM size : 512 KBytes
Lock RDP2 password successfully done
UPLOADING OPTION BYTES DATA ...
Bank : 0x00
Address : 0x40022050
Size : 112 Bytes
██████████████████████████████████████████████████ 100%
Bank : 0x01
Address : 0x40022098
Size : 8 Bytes
██████████████████████████████████████████████████ 100%
Bank : 0x02
Address : 0x40022070
Size : 8 Bytes
██████████████████████████████████████████████████ 100%
Bank : 0x03
Address : 0x40022080
Size : 8 Bytes
██████████████████████████████████████████████████ 100%
Bank : 0x04
Address : 0x400220e8
Size : 8 Bytes
██████████████████████████████████████████████████ 100%
Bank : 0x05
Address : 0x400221e8
Size : 8 Bytes
██████████████████████████████████████████████████ 100%
Bank : 0x06
Address : 0x40022090
Size : 8 Bytes
██████████████████████████████████████████████████ 100%
Bank : 0x07
Address : 0x400220f8
Size : 8 Bytes
██████████████████████████████████████████████████ 100%
Bank : 0x08
Address : 0x400221f8
Size : 8 Bytes
██████████████████████████████████████████████████ 100%
PROGRAMMING OPTION BYTES AREA ...
Bank : 0x00
Address : 0x40022050
Size : 112 Bytes
██████████████████████████████████████████████████ 100%
Reconnecting...
Reconnected !
UPLOADING OPTION BYTES DATA ...
Bank : 0x00
Address : 0x40022050
Size : 112 Bytes
██████████████████████████████████████████████████ 100%
Error: Uploading Option Bytes bank: 0 failed
Error: Reloading Option Bytes Data failed
Time elapsed during option Bytes configuration: 00:00:06.833
Unlocking works with ST-Link:
stm32_Programmer_CLI.exe -c port=SWD -unlockRDP2 0x11111111 0x11111111 0x11111111 0x11111111
-------------------------------------------------------------------
STM32CubeProgrammer v2.22.0
-------------------------------------------------------------------
ST-LINK SN : 004F00363235511838363730
ST-LINK FW : V3J17M10
Board : NUCLEO-C562RE
Voltage : 3.30V
Power OFF...
Drives the target power pin out of the (onboard) ST-Link.
Info: Power ON/OFF maybe not available on your Board [also not available on standalone probes]
Power OFF the board finished with success !
Power ON...
Drives the target power pin out of the (onboard) ST-Link.
Info: Power ON/OFF maybe not available on your Board [also not available on standalone probes]
Power ON the board finished with success !
Validation Status: 3
Power OFF...
Drives the target power pin out of the (onboard) ST-Link.
Info: Power ON/OFF maybe not available on your Board [also not available on standalone probes]
Power OFF the board finished with success !
Power ON...
Drives the target power pin out of the (onboard) ST-Link.
Info: Power ON/OFF maybe not available on your Board [also not available on standalone probes]
Power ON the board finished with success !
RDP2 unlocked successfully
But does not work with J-Link:
stm32_Programmer_CLI.exe -c port=JLINK -unlockRDP2 0x11111111 0x11111111 0x11111111 0x11111111
-------------------------------------------------------------------
STM32CubeProgrammer v2.22.0
-------------------------------------------------------------------
Connecting to J-Link/Flasher Probe
Error: Unlock RDP2 password failed!
Thanks for the help.
