2024-11-04 03:45 AM - last edited on 2024-11-04 04:08 AM by Andrew Neil
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
Solved! Go to Solution.
2024-11-15 01:50 AM - edited 2024-11-15 01:58 AM
@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:
2024-11-15 05:16 AM
I mistake the byte number. You are correct, 0 is close and 1 is open.
Thanks