2026-02-05 7:29 AM
We are using an STM32G070 with 64 Pins.
The clock comes from an external 32,...kHz crystal. For clock calibration, we enable the RTC calibration output PC13.
Whenever this is active, reading the state of the input PA4 always returns false, although we activated the pullup. Measuring the pin gives us the expected 3.3V
Disabeling the calib output makes PA4 readable again. We compared the PA4 port setting with/without calib-output, they are always the same.
Do you know about this issue? I found an errate entry concering PC13, but not our situation.
Best regards,
Peter
2026-02-05 7:40 AM - edited 2026-02-05 7:42 AM
PA4 also has an RTC_OUT_CALIB functionality. Probably there is some issue that RTC takes over the pin when calibration is enabled.
Is this from CubeMX-generated code? Can you share your IOC file?
Edit:
Ensure OUT2EN=0.