cancel
Showing results for 
Search instead for 
Did you mean: 

internal temperature tamper not triggering

sabari1
Associate III

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.

sabari1_0-1767359791489.png

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 .

sabari1_1-1767359949290.png

expecting a answer ASAP since i need to release the product for testing.

with regards 

SABARINATH K A

2 REPLIES 2
TDK
Super User

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.

If you feel a post has answered your question, please click "Accept as Solution".
sabari1
Associate III

hi

am using STM32U585AII6Q and already enabled the MONEN bit . 

sabari1_0-1767590695366.png

and here i varied the ambient temperature from -45 to 110 degree using a temperature chamber.

	__HAL_RCC_PWR_CLK_ENABLE();
	HAL_PWR_EnableBkUpAccess();
	HAL_Delay(100);
	SET_BIT(PWR->BDCR1, PWR_BDCR1_MONEN);
	RCC->AHB1ENR |= RCC_AHB1ENR_BKPSRAMEN; // Enable backup RAM retention
	PWR->BDCR1 |= PWR_BDCR1_BREN; // Enable backup RAM retention
	/* Configure the System Power */