I have been struggling with the PC13 pin having a wong value because of the RTC. Unfortunately I was using PC13 as my ON/OFF button and it was causing my device to switch off everytime. Finally I have found the issue. The issue is in the HAL_RTC_SetT...