Skip to main content
Associate III
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?

3 replies

TDK
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.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Pavel A.
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
Associate III
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

Pavel A.
Super User
February 3, 2024

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