Hello @Community member ,
You can refer to the example within STM32CubeU5 MCU package:
\STM32Cube_FW_U5_V1.1.1\Projects\B-U585I-IOT02A\Examples\RTC\RTC_Tamper\
This will help you on the configuration of the tamper detection with backup registers erase.
Hope my answer helped you!
When your question is answered, please close this topic by choosing Select as Best.
Imen
In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks