Skip to main content
vchilapu
Associate II
July 20, 2022
Solved

HRTIM on STM32G4 and STM32H7 "Update Interrupts" are not working when preload is disabled.

  • July 20, 2022
  • 2 replies
  • 2545 views

In the STM32CubeMX there is a preload setting. If I enable the preload then I can see the update interrupts are working as expected. But, if the preload setting is set to disabled, then no update interrupts are seen. This is true for all timers A-F and also Master timer.

NOTE: Only the update interrupt is impacted here, while other interrupts are working fine.

This topic has been closed for replies.
Best answer by Vincent Onde

Hi @vchilapu​,

This behavior is normal: as the preload functionality is disabled, there's no register content update anymore (all write accesses are directly done in active registers). There are not update events and thus no interrupts.

Best regards,

Vincent

2 replies

Amel NASRI
Technical Moderator
July 20, 2022

Hi @vchilapu​,

@Vincent Onde​ provided an explanation for this behavior in this question: STM32G474 discovery kit HRTIM ISR (HRTIM1_TIMA_IRQHandler) not hit for channel set Interrupt(SETx1) and channel reset interrupt(RSTx1).

Do you confirm that this answers your question?

-Amel

To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.
vchilapu
vchilapuAuthor
Associate II
July 20, 2022

Hi Amel,

Thank you for your quick response.

@Vincent Onde​ suggestion was when preload is enabled we have to ensure an update event is put in place such that interrupt flags are copied to the active register. But in this case, the preload option is disabled. So all the updates go to the active register directly. In this context, all interrupts should work even if any update events are not triggered. But, what I see is only the update interrupt is not working.

NOTE: Only the update interrupt is impacted here, while other interrupts are working fine.

Vincent Onde
Vincent OndeBest answer
ST Employee
August 18, 2022

Hi @vchilapu​,

This behavior is normal: as the preload functionality is disabled, there's no register content update anymore (all write accesses are directly done in active registers). There are not update events and thus no interrupts.

Best regards,

Vincent