Skip to main content
Associate II
October 23, 2023
Solved

STM32CubeMX cannot assign GPIO at pin PC2 on STM32H735IGK6 MCU (UFGA176+25)

  • October 23, 2023
  • 2 replies
  • 1532 views

Hi, I assigned all used GPIOs to desired functions except the PC2 at ball M1. The datasheet seems doesn't indicate this pin would be something special. I just need SPI2_MISO there but MX doesn't allow select anything, all choices are off just the Reset_State. Is it a bug? I use latest version of MX 6.9.2.

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

Since you have assigned the PC2_C pin a function on the PC2 pin (i.e. whatever EXP4 is), the program will not let you re-assign it.

PC2_C can only be used independently for ADC functions. Otherwise, the chip closes the connection between the two pins.

TDK_0-1698084463313.png

 

2 replies

TDK
TDKBest answer
Super User
October 23, 2023

Since you have assigned the PC2_C pin a function on the PC2 pin (i.e. whatever EXP4 is), the program will not let you re-assign it.

PC2_C can only be used independently for ADC functions. Otherwise, the chip closes the connection between the two pins.

TDK_0-1698084463313.png

 

"If you feel a post has answered your question, please click ""Accept as Solution""."
MartinDQAuthor
Associate II
October 24, 2023

Aha, OK it works then. So I can use PC2 for SPI and then PC2_C remains only for analog input...