Skip to main content
Visitor II
May 30, 2025
Question

TAMP_OR register not set by stm32h5xx_hal_rtc_ex.c initialisation code

  • May 30, 2025
  • 1 reply
  • 395 views

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.

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    May 30, 2025

    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).