Skip to main content
Explorer II
September 15, 2025
Solved

Unable to Use Pin PC15 as GPIO_Input or GPIO_Output

  • September 15, 2025
  • 3 replies
  • 558 views

Hello Community,

I’m facing an issue with Pin PC15 on my board. I am unable to configure or use it as a GPIO, either as input or output. I’ve tried basic initialization, but it doesn’t seem to respond as expected.

Has anyone experienced a similar issue with PC15, or is there a special configuration/limitation I should be aware of? Any guidance or suggestions would be greatly appreciated.

Thank you in advance!

Clock Configuration:

LSI at 32 KHz

HCLK at 86 MHz

    This topic has been closed for replies.
    Best answer by Jojo_

    Hello,

    Are you using a nucleo board ?

    if so, please check the board user manual for info on how to configure the solder bridges to use PC15 as normal GPIO, since by default this pin is used to provide LSE clock.

    Section "6.5.2 LSE clock (low-speed external clock) – 32.768 kH" should have the info you need:

    https://www.st.com/resource/en/user_manual/um2505-stm32g4-nucleo64-boards-mb1367-stmicroelectronics.pdf

     

    3 replies

    Super User
    September 15, 2025

    Hi,

    PC15 , from ds :

    AScha3_0-1757917672645.png

    +

    AScha3_1-1757917740366.png

    So these pins are on backup domain ;  you have it working ? (Vbat supply ? )

    + read RTC description...or set it in Cube .

    Jojo_Answer
    ST Employee
    September 18, 2025

    Hello,

    Are you using a nucleo board ?

    if so, please check the board user manual for info on how to configure the solder bridges to use PC15 as normal GPIO, since by default this pin is used to provide LSE clock.

    Section "6.5.2 LSE clock (low-speed external clock) – 32.768 kH" should have the info you need:

    https://www.st.com/resource/en/user_manual/um2505-stm32g4-nucleo64-boards-mb1367-stmicroelectronics.pdf

     

    Explorer II
    September 19, 2025

    Hi @Jojo_ 

    Yes, I was indeed working with a Nucleo board. The issue has been resolved after changing the solder bridges as per the user manual. Specifically, modifying the solder bridge settings allowed PC15 to function as a general-purpose GPIO instead of being dedicated to the LSE clock.