[B-L072Z-LRWAN1] - RTC alarm failure when timeout <= 2 #1002
-
Dear, We found ourselves in a situation where an RTC alarm fails randomly if and only if, the alarm is scheduled less or equal than 2 RTC subseconds in the future. To schedule this alarm we directly use LoRaMac-node/src/system/timer.c Line 335 in b0a91e0 LoRaMac-node/src/system/timer.c Line 367 in b0a91e0 RtcGetMinimumTimeout . Where RtcGetMinimumTimeout defined in rtc-board.c LoRaMac-node/src/boards/B-L072Z-LRWAN1/rtc-board.c Lines 235 to 238 in 184039f 3 :The return value of the function call is used to prevent any RTC alarm to be configured with an RTC subsecond value any less than 3 in timer.c. The introduction of this RtcGetMinimumTimeout we traced back to commit 9091bb2 dating from July 2, 2018 augmented by a comment Originally posted by @mluis1 in #473 (comment).
The only plausible explanation that we have for this issue until now, is that ST mentions in the reference manual in
But, according to the block diagram on page 610 (26.4.1) of that same document, RTCCLK clearly points to the LSE input which is 32.768 kHz. So we would expect a synchronization delay of Do any of you guys know why exactly that |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @mluis1, Do you perhaps have any feedback on this topic? Thanks in advance, |
Beta Was this translation helpful? Give feedback.
Hi @mluis1,
Do you perhaps have any feedback on this topic?
Thanks in advance,
Best regards,
Jelle