Skip to main content
Graduate II
February 2, 2024
Question

stm32f4 timer based interrupt function execution

  • February 2, 2024
  • 3 replies
  • 1223 views

hey!
im working on data logging and want to store all data in text file
where i want to save date and time with the use of RTC clock and external interrupt based on timer with gap of 1 sec i have things configured correctly for the RTC which works fine 
but its logging duplicate entries 

how to solve this error or can you point me in the right direction?

    This topic has been closed for replies.

    3 replies

    Super User
    February 2, 2024

    > is this behaviour normal 

    It is not normal behavior to store 2 entries when you only want 1.

    Likely your code has a bug in it which causes this behavior. Debug your code to find the issue and fix it.

    Super User
    February 2, 2024

    Hi,

    Generally if something does not work as you want, yes you have to do some changes. If you can delegate the work to somebody else, this is also an option.

    Here are tips how to ask a good question on a technical forum such as this one:

    https://princetonuniversity.github.io/PUbootcamp/sessions/technical-questions/HowToAskQuestions2018Bootcamp.pdf

     

     

    _kalpeshAuthor
    Graduate II
    February 3, 2024

    yes sir i have followed given link and will improve things from now on!
    thank you for suggestions and 
    if possible can you point me in the right direction for my question

    Super User
    February 3, 2024

    Here is an opensource project that you can use as inspiration: https://github.com/d-ronin/openlager