Skip to main content
Associate II
September 27, 2023
Solved

Timer implementation in stm32f205vet6

  • September 27, 2023
  • 1 reply
  • 2035 views

I am using stm32F205vet6 , I want to use multiple timers and work, But if I use multiple timers the code will be huge as every timer need internalization is there any alternative I can use timers with minimal code

I have also tried the hw_rtc.c file and timerServer.c file implementation ,In that scenario stm32f205vet6  has no sub seconds option I have hw_rtc.c file with subseconds so I cant able to use that method 

Please help me solve this issue.

    This topic has been closed for replies.
    Best answer by AKHIL6

    That to will cause my code huge and also I am limited to only 14 timers in that if I need any other timers what can I do

     

    1 reply

    Issamos
    Lead III
    September 27, 2023

    Hello @AKHIL6 

    I suggest you to configure your timers using CubeMX and before generating your project go to:  project manager -> code generator  and in generated files option, check the option: general  peripheral initialization as a pair of ' c/.h' files per peripheral. The. Generate your project. The main.c file will juste include your own code and it will call other files (gpio.h, tim.h,...) where the initialization of each peripheral is stocked (in a couple of .c,.h files).

    Best regards.

    II 

    AKHIL6AuthorBest answer
    Associate II
    September 27, 2023

    That to will cause my code huge and also I am limited to only 14 timers in that if I need any other timers what can I do

     

    AKHIL6Author
    Associate II
    September 27, 2023

    Is there any other alternatives to this