Skip to main content

3 replies

Oussama_TROUDI
ST Technical Moderator
Nov 19, 2026 8:41 AM UTC

Hello ​@vidyashreemane 
Thank you for reaching out and welcome to the STCommunity.

Are you looking for help configuring the push-button input pin and clock settings for an STM32C542RC project? If so, could you share a little more detail about what you need help with?

Best regards,
Oussama

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Visitor
Nov 19, 2026 9:10 AM UTC

How did configure in STM32cubeMX2 for this project?

 

Oussama_TROUDI
ST Technical Moderator
Nov 19, 2026 10:41 AM UTC

Hi ​@vidyashreemane 

If you’re using the NUCLEO-C542RC board with the STM32C542RC, the B1 user button is connected to PC13. This is described in the STM32C5 Nucleo-64 User Manual, under “Blue user button (B1)”. The manual covers both the NUCLEO-C542RC and NUCLEO-C562RE.

For step-by-step STM32CubeMX2 instructions, including screenshots, see How to use the STM32CubeMX2 Part Drivers and BSP. In particular, see “2.2 Configure the User button” and “3.1 Add the [Button] Part Driver.” 

You may also find these guides useful:

Best regards,
Oussama

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.