2022-12-22 04:01 AM
I given interrupt when Lora's joining process occurred. I was refreshing the Watchdog in every given feedback. the " AppdataDutycycle" timer was started from the device is entered into the OTAA or APB mode. That time timer has started but the "APPDATA DUTY CYCLE" timer was not triggered when I gave the interrupt continuously in Lora joining process occurred.
how to rectify this issue.
The problem is the APP DATA DUTY CYCLE callback was not triggered.
2022-12-22 05:45 AM
Hi @AA.21,
it would be easier to reply if you were clear about which particular STM32 device are you using. Is it some from the STM32WL series?
Also, let me rephrase your question to make sure I understood it well. Th ISR was invoked, but the interrupt service code did not call the particular callback you expected? The callbacks are called based on the peripheral status flags. Did you check if the flags are set?
BR,
J
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2022-12-22 06:06 AM
hi @JHOUD
I am using the STM32WLE5CC (RAK-3172) controller.
I set the one flag in the timer callback function and the timer run every 5 minutes. The uplink will be triggered every 5 minutes once when setting the flag in the timer callback function.
My issue was when I power ON the stm32 and give an interrupt continuously. the 5 minutes timer will be started when the device joined the network server. I will stop the continuous interrupt when the device joined the network server. every 5 minutes one uplink will be triggered in the device from the device joined to the network server. but the 5 minutes timer callback was not triggered. But the 5 minutes timer has been started in the device.
2022-12-22 06:31 AM
OK, what timer, what flag?
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2022-12-22 11:10 PM
@JHOUD
I have used a software timer (stm32 controller timers). And the flag was set by myself for doing some uplink action.
One more doubt in the timers. I used the two timers and their initialization is done in a sequenced manner. is this cause any issues?
2022-12-23 02:13 AM
Why don't you simply use a HW timer? There are plenty. Or in case of 5 minutes period, I think most appropriate would be to use the RTC alarm feature. and you can set two alarms if it suits your needs.
J.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2022-12-23 03:15 AM
@JHOUD
Thanks for your suggestion, I try this.
Thanks for your support @JHOUD