Skip to main content
Ken Inoue
Associate III
April 18, 2017
Solved

HRTIM does not work.

  • April 18, 2017
  • 2 replies
  • 957 views
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
This topic has been closed for replies.
Best answer by Amel NASRI
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

2 replies

Amel NASRI
Amel NASRIBest answer
ST Technical Moderator
April 18, 2017
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 "Best Answer" on the reply which solved your issue or answered your question.
Ken Inoue
Ken InoueAuthor
Associate III
April 20, 2017
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.