STM32F103 Nucleo Pushbutton RTC Conflict
Hello,
I've discovered the following anomalous behavior when attempting to use the STM32F103 Nucleo board:
Pushbutton interrupt code will not execute if the RTC is active with NVIC EXTI13. I've noticed that the RTC tamper PIN is also assigned to PC13 but I've made sure that the output selection is disabled and RTC tamper is deselected inside CudeIDE/CubeMX window. If the RTC is activated with NVIC EXTI13, I measure zero volts across the appropriate pushbutton (pushbutton not depressed) pins (without the RTC activated the voltage across the same pins is 3.3V). My initial GUESS is PC13 is being reconfigured as an open drain output and being pulled low when the MX_RTC_Init is executed? I've tried to use the debugger to read the appropriate register and bit but I keep receiving a read error. If I comment out the MX_RTC_Init function and download the program I receive correct functionality from the pushbutton but only after a computer reboot.
I've also tried to execute the MX_GPIO_Init both before and after MX_RTC_Init but the problem still persists. Is there something inside the generated CubeMX/CubeIDE RTC code that forces PC13 into a different mode?
I don't have the appropriate tools to attempt my proposed hardware fix which would be to reroute the pushbutton to PB13 and change the configuration and code to match.
