cancel
Showing results for 
Search instead for 
Did you mean: 

HRTIM does not work.

Ken Inoue
Associate III
Posted on April 18, 2017 at 05:08

Thank you for your patronage.  

HRTIM does not work. I set up config as shown below.

0690X00000606nNQAQ.png0690X00000606nOQAQ.png0690X00000606ncQAA.png0690X00000606nXQAQ.png

And, I wrote a program as shown below.

0690X00000606eDQAQ.png

But 

HRTIM does not work. 

0690X00000606nhQAA.png

#hrtim
1 ACCEPTED SOLUTION

Accepted Solutions
Amel NASRI
ST Employee
Posted on April 18, 2017 at 14:54

Hello

Inoue.Ken

‌,

The functionHAL_HRTIM_WaveformCounterStart should take as parameter a combination of following values:HRTIM_TIMERID_MASTER,HRTIM_TIMERID_TIMER_A,HRTIM_TIMERID_TIMER_B,HRTIM_TIMERID_TIMER_C,HRTIM_TIMERID_TIMER_D,HRTIM_TIMERID_TIMER_E.

Please fix the call of this function in your code then try again.

I recommend you also to have a look to the examples available in the package STM32CubeF3 underSTM32Cube_FW_F3_V1.7.0\Projects\STM32F3348-Discovery\Examples\HRTIM (mainly the exampleHRTIM_BasicPWM).

Also the follwoing application note should bring so much help if you need to explore more HRTIM features:

-Amel

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.

View solution in original post

2 REPLIES 2
Amel NASRI
ST Employee
Posted on April 18, 2017 at 14:54

Hello

Inoue.Ken

‌,

The functionHAL_HRTIM_WaveformCounterStart should take as parameter a combination of following values:HRTIM_TIMERID_MASTER,HRTIM_TIMERID_TIMER_A,HRTIM_TIMERID_TIMER_B,HRTIM_TIMERID_TIMER_C,HRTIM_TIMERID_TIMER_D,HRTIM_TIMERID_TIMER_E.

Please fix the call of this function in your code then try again.

I recommend you also to have a look to the examples available in the package STM32CubeF3 underSTM32Cube_FW_F3_V1.7.0\Projects\STM32F3348-Discovery\Examples\HRTIM (mainly the exampleHRTIM_BasicPWM).

Also the follwoing application note should bring so much help if you need to explore more HRTIM features:

-Amel

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.

Posted on April 20, 2017 at 10:28

Thank you very much. HRTIM work. If I were thinking by myself, I would not have noticed it. I was indebted to you.