2025-01-08 09:21 PM
I have been using Seeed-LoRa-E5 github repository for my project. I have added code to send I2C sensor data to the LNS and the device joins and sends data successfully and the code works fine as expected. Now I want to add a timer interrupt and so I am using timer 2 to do that. I calculate the ARR value for the timer using the formula Time interval = (ARR + 1)*(PSC + 1)/FCLK. I get the desired time interval when running the timer in a blank project after calculating the ARR and configuring accordingly, but when done in this project for example I get 30 sec time interval for the ARR value calculated for 1 sec. In the project by default only the internal RTC is enabled and used to periodically make the MCU go to sleep and wake up during transmission, and no other timers are enabled. Why do I get this issue?