cancel
Showing results for 
Search instead for 
Did you mean: 

HRTIM1 Interrupt Request source does not produce the correct code for HRTimE

victagayun
Senior III

Previously I posted that I need MASTER Timer enabled so that the HRTIM1E interrupt would occur in H747.

https://community.st.com/s/question/0D53W00000UfL6uSAF/hrtime1-interrupt-not-firing

It turns out that it is similar to G474.

The code generated by CubeMX is wrong.

As shown below, I enable interrupt source on timer repetition.

0693W000007ZqGTQA0.png 

but the code generated is

pTimerCfg.InterruptRequests = HRTIM_MASTER_IT_NONE;

Also notice that it is the definition for MasterTimer while I am using TimE and MasterTim is not enabled.

So, I need to overwrite manually with

pTimerCfg.InterruptRequests = HRTIM_TIM_IT_REP;

Pls try to fix.

4 REPLIES 4
Khouloud ZEMMELI
ST Employee

Hello @victagayun​ 

Thanks for your feedback,

Could you please share your ioc file to check the problem ?

Thanks, Khouloud

victagayun
Senior III

Here is the IOC file.

I tried on HRTIMA, seems to be ok. I haven't tried on other timers yet. Pls chk.

Hi again @victagayun​ 

Thank you for the share of your project, I have reproduced the issue on my side and it will be fixed.

Thanks for raising this issue to our attention 🙂

Khouloud

Hi @victagayun​ ,

I'm back again to inform you that issue is now fixed, you can use the latest CubeMX version available on site 🙂

Khouloud