cancel
Showing results for 
Search instead for 
Did you mean: 

Active tampering event as a wakeup source in Standby mode

leonahi
Visitor

Hello,

 

Can you please share an example code where active tampering is enabled in Standby mode and tamper event (disconnect loop) is used to wake up the MCU.

I would like to know how we can configure the TAMP as a wakeup source during Standby. 

If you can show configuration in terms of STM HAL driver that would be great. Let me know if you need more context.

 

Kind Regards,

1 REPLY 1
OOUAD
ST Employee

Hello leonahi,

You can refer to the example in STM32Cube_FW_WBA for tamper initialization at:
STM32Cube_FW_WBA_V1.7.0\Projects\STM32WBA55G-DK1\Examples_LL\RTC\RTC_Tamper_Init

You also need to add the tamper wakeup source configuration and the standby mode entry function as follows:

/* USER CODE BEGIN 2 */

/* @brief Enable the wake up line functionality. PWR_WAKEUP_PIN8_HIGH_3 < TAMP : Wakeup pin 8 (high polarity) */
HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN8_HIGH_3)
/* @brief Enter the whole system to Standby mode.*/
HAL_PWR_EnterSTANDBYMode();
/* USER CODE END 2 */

 

BRs