cancel
Showing results for 
Search instead for 
Did you mean: 

TAMP_OR register not set by stm32h5xx_hal_rtc_ex.c initialisation code

samdorey
Associate

I am working on a project with a STM32H573, using the external tamper lines. CubeMX version 6.14.1.

For configuring certain IN/OUT pins for the TAMP peripheral, RM0481 says that bits in the TAMP_OR register must be set:

samdorey_0-1748592892624.png

However, these bits are not set correctly in the initialisation code. Indeed, it seems that there is no mechanism in any functions in stm32h5xx_hal_rtc_ex.c to set TAMP->OR, and no relevant flags in RTC_ATampInputTypeDef or RTC_ActiveTampersTypeDef.

There is obviously an easy workaround of setting the bits manually at initialisation.

1 REPLY 1
Saket_Om
ST Employee

Hello @samdorey 

Thank you for bringing this issue to our attention.

I reported this internally.

Internal ticket number: 211224 (This is an internal tracking number and is not accessible or usable by customers).

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
Saket_Om