cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H7 PC2_C and PC3_C GPIO not working

Peter3718
Associate III

Originally a reply in this thread: https://community.st.com/t5/stm32cubemx-mcus/bug-cubemx-should-warn-h7-users-against-pc2-c-pc3-c-pitfalls/td-p/708817

 

Hi,

What's wrong with PC2_C and PC3_C???  I am using them as normal GPO on my board, but it's not working, while PC0 and PC1 are working, same initialization and HAL_GPIO_WritePin() operation.

Thanks

Peter

11 REPLIES 11

@Peter3718 wrote:

I mean RM0399 user manual should be revised as following:

1: Analog switch closed

0: Analog switch open 

 

Why it should be?

RM is correct and the status of the switch is:

Closed when PCXSO = 0 and

Open when PCXSO = 1 

And the default value of PCXSO bit in SYSCFG_PMCR register depends on the package.

Check your part number according to this table:

SofLit_0-1731664676193.png

 

 

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.

I mistake the byte number. You are correct, 0 is close and 1 is open. 

Thanks