cancel
Showing results for 
Search instead for 
Did you mean: 

AntiTamper doesn't work in examples and new programs

TheRaprus
Associate III

Hi to everybody.

I'm trying to create a simple program testing the anti tamper function of the STM32 serie U0.

I have the Nucleo U031, but I have tested with the U083's example (adjusted in the MCU tipe) but nothing changes, both LL and HAL. (there are different examples using LL and HAL, but only for U083 version).

Create a new HAL project using the U031 but the pressing of the blue button (connected to the PC13) doesn't work.

The new self create project is exaclty = to the example, but nothing.

Using another Nucleo such as L073 and create a new project from scratch work.
Simply, I have enabled the RTC_Tamp IRQ from NVIC, put a breakpoint in the ISR but nothing.

Where is the problem?

2 REPLIES 2
genehill34
Associate

Double-check the EXTI configuration for the tamper line. Even if the NVIC interrupt is enabled, the external interrupt might not be routed correctly from the tamper event.

TheRaprus
Associate III

Donnow how to do it: simply enable it from CubeMX:

2025-05-19_14h09_29.png

Nothing else to do. Or I donnow where I can add some other settings.
Moreover, why the ST example doesn't work too?