How to setup target password in STM32CubeIDE

Modifying target password

When debugging Cortex-M in "production mode", in case of typo entering target password, we need to modify target password registered by the STM32CubeIDE. Indeed, this prevent you from using Debug in "production mode".

This password is managed by MPU SSH connection object managed by RSE perspective. It is possible to clear corresponding password from here.

RSE Password Clear


Note that if "MPU SSH" is connected, it has to be disconnected first.