Skip to main content
Fealvares
Associate
May 24, 2022
Solved

I'm using a STM32L151CBT, I generated my project in Cube MX and I'm developing the code in the Cube IDE. The problem is that the timer interrupt seems not working.

  • May 24, 2022
  • 3 replies
  • 1146 views

I'm trying to use the timer interrupt to blink some LEDs while my main is running, but when I run the code I can't achieve the interruption.

This topic has been closed for replies.
Best answer by Sara BEN HADJ YAHYA

Hello @Fealvares​ ,

Sorry for the late reply,

Please check UM1816 Description of STM32L1 HAL and low-layer drivers. Section 43 describes HAL TIM Generic Driver.

I hope this helps :smiling_face_with_smiling_eyes:

If your issue is solved, please close this post by clicking the "Select as Best" button. This will help other members of the community find this response more quickly :)

Sara.

3 replies

Sara BEN HADJ YAHYA
ST Technical Moderator
May 27, 2022

Hello @Fealvares​ ,

Thanks for your feedback,

Could you please share your ioc file to help us reproduce the issue ?

Sara.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
Fealvares
FealvaresAuthor
Associate
May 27, 2022

Hi @Sara BEN HADJ YAHYA​ ,

Acutally I'm a beginner working with STM Tools. With a co-worker help I figure out that was a function missing in my code.

HAL_TIM_Base_Start_IT(&htimX);

But when I searched for how to configure the time interruptions, I couldn't find any code using this line.

Is there any kind of guide that would help me to use the HAL libs?

Att,

Felipe.

Sara BEN HADJ YAHYA
ST Technical Moderator
June 2, 2022

Hello @Fealvares​ ,

Sorry for the late reply,

Please check UM1816 Description of STM32L1 HAL and low-layer drivers. Section 43 describes HAL TIM Generic Driver.

I hope this helps :smiling_face_with_smiling_eyes:

If your issue is solved, please close this post by clicking the "Select as Best" button. This will help other members of the community find this response more quickly :)

Sara.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.