Managing Interrupts in M4
Hello,
I am trying to manage some interrupts in the M4, specifically the Tamper Interrupt.
Using the STM32CubeIDE (CubeMX) I am unable to select the Tamper interrupt that shows in the NVIC peripheral, when I select it, it gets deselected automatically. What could be the cause of this behaviour?
I am allocating the tamper peripheral to the non-secure world (A7) in SP-Min (Manually changed in source code) and enabling the external tampers. In M4 I try to enable the interrupt and set an IRQHandler with the following code:
void tamp_init (void)
{
HAL_NVIC_SetPriority (TAMP_IRQn, 1, 0);
HAL_NVIC_EnableIRQ (TAMP_IRQn);
}
void TAMP_IRQHandler (void)
{
// Do something (turn led on)
}
I have a button connected to the tamper input signal, when I press this button I expect to see the led light up but it does not. I know the tamper is triggered because the backup registers are cleared.
What is missing in my configuration or how should I set up the interrupts? Should I configure something in the A7 GIC or EXTI?
Best regards,
Andrés
