Skip to main content
victagayun
Senior III
May 12, 2021
Solved

CubeMX does not produce the code for the reset source for HRTIMF1

  • May 12, 2021
  • 1 reply
  • 1608 views

I have here the setup of CubeMX

0693W00000AO6S5QAL.png 

when I compile, the HRTIMF1 does not reset from HRTIME1 CMP1.

So I add manually the code

pTimerCfg.ResetTrigger = HRTIM_TIMRESETTRIGGER_OTHER5_CMP1;

Attached is the ioc file.

This topic has been closed for replies.
Best answer by Khouloud OTHMAN

Hi @victagayun​ ,

Good news :smiling_face_with_smiling_eyes: I am pleased to inform you that this issue is fixed in the latest STM32CubeMX version 6.3.0.

0693W00000D1W8pQAF.pngThanks for your contribution.

Khouloud.

1 reply

Khouloud OTHMAN
Associate
May 12, 2021

Hello @victagayun​ ,

First let me thank you for feedback and for having reported. Issue reproduced and I assume that this problem is due to "1st Reset Trigger Source" list available through STM32CubeMX:

0693W00000AO9seQAD.jpg 

In fact, opening your attached .ioc and focusing on HRTIM1 Configuration panel > Timer F window tab > Reset Trigger Sources Selection > 1st Reset Trigger Source, the list of events that can be selected to trigger the reset of the timer counter seems to be faulty ( The timer counter is reset upon Timer E Compare 1 /2 event is mentioned twice ).

The selected trigger in your case is the first "timer counter is reset upon Timer E Compare 1 event" which is HRTIM_TIMRESETTRIGGER_OTHER4_CMP1.

With this being said, the issue is reported internally to be fixed as soon as possible.

Thanks for your contribution.

Khouloud.

Khouloud OTHMAN
Khouloud OTHMANBest answer
Associate
August 4, 2021

Hi @victagayun​ ,

Good news :smiling_face_with_smiling_eyes: I am pleased to inform you that this issue is fixed in the latest STM32CubeMX version 6.3.0.

0693W00000D1W8pQAF.pngThanks for your contribution.

Khouloud.