cancel
Showing results for 
Search instead for 
Did you mean: 

Enabeling the RTC calibration output PC13 makes PA4 input invalid

peter7
Associate II

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

1 REPLY 1
TDK
Super User

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?

TDK_0-1770306010982.png

 

Edit:

Ensure OUT2EN=0.

TDK_0-1770306162991.png

 

If you feel a post has answered your question, please click "Accept as Solution".