Hi. I need help with RTC on STM32F103.
I would like to edit the time (hours and minutes) in my RTC using a button. When I add an hour the maximum vartosc I can reach in the RTC->CNTL register is 65535 (18h20min), when this value is exceeded, the register zeroes some bits (it gets 0:48), while the RTC->CNTH register does not increment.
When I leave the clock without editing the time, no matter whether with the main power supply on or without (battery), the RTC works fine and counts correctly (the error with the CNTH and CNTL registers does not occur).
Please help, I've been sitting on this for a while and can't get past this problem.