2026-01-02 5:20 AM
hi
i am using stm32u585 controller for my project . here i enabled the internal tamper detection using the below code
/* USER CODE BEGIN TAMP_Init 2 */
sAllTamper_inter.IntTamper = RTC_INT_TAMPER_1|RTC_INT_TAMPER_2|RTC_INT_TAMPER_3|RTC_INT_TAMPER_9;
sAllTamper_inter.NoErase = RTC_TAMPER_ERASE_BACKUP_ENABLE;
sAllTamper_inter.TimeStampOnTamperDetection =
RTC_TIMESTAMPONTAMPERDETECTION_ENABLE;
if (HAL_RTCEx_SetInternalTamper_IT(&hrtc, &sAllTamper_inter) != HAL_OK) {
Error_Handler();
}from the reference manual its mentioned that internal temperature tamper can detect when the temperature range is out of operational temperature and there is no specific data about the tamper triggering temperature range.
based on the operation condition as mentioned in the datasheet i varied the ambient temperature but in both below and above functional range also i cant able to detect the tamper in my device .
expecting a answer ASAP since i need to release the product for testing.
with regards
SABARINATH K A
2026-01-02 6:58 AM
Did you set MONEN in PWR_BDCR1?
> i varied the ambient temperature
Did you go outside of the operational range of your chip? You don't mention exact chip number so only you know what this is. Datasheet specifies this.