Using RTC with LoRa
Hello guys!
I'm working with STM32WL series using the LoRa application, for that the RTC must be in binary mode.
However, I need the calendar and timestamp for my project, which implies that I need to use BCD mode.
I'm aware that the RTC3 has the mixed mode, however, whenever I tried using it, the whole project stopped working.
I've been reading the AN4759, and the posts about it in the community, but I have some doubts about the solution.
LoRa uses the alarm A, which requires the subseconds alarm, and I know that the calendar doesn't work in binary mode, but can I activate somehow by software the calendar and timestamp still in binary mode? (if so, how and where in the code?)
Other thing, while using the mixed mode, what I have to do to make it work like in binary mode but with the calendar? Like, I saw that I might have to transform binary date to BCD, is it necessary? If so, I'm confused how and where in the code I do this. Also I need to adjust the alarm A again, right? What do I have to correct in this case?
Thanks in advance!
