Skip to main content
Associate III
June 2, 2025
Question

STM32N6: UCPD1_CC1 and UCPD1_CC2 use as GPIO

  • June 2, 2025
  • 4 replies
  • 785 views

Hello,

In our project we are using STM32N6.

We want to use UCPD1_CC1 and UCPD1_CC2 pins as a GPIO but CubeIDE does not generate code for these pins as GPIO.

Clyasenth_0-1748849652082.png

How we can use these pins as GPIO?

Best regrads,

Egemen Aksoy

This topic has been closed for replies.

4 replies

ST Technical Moderator
June 2, 2025

Hi @Clyasenth 

Would you attach your iOC file?

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL
ClyasenthAuthor
Associate III
June 2, 2025

Hello,

I just create a basic iOC file that,

Clyasenth_0-1748862998695.png

Select these inputs for FSBL according to the figure.

But for the MX_GPIO_Init there is only PC7 and PC6 pins initialized. I can not see UCPD1_CC1 and UCPD1_CC2 pins.

Clyasenth_1-1748863111200.png

I have also attached the basic iOC file.

Best regards,

Egemen Aksoy

ST Technical Moderator
June 2, 2025

Hi again @Clyasenth 

In my understanding, as referenced in datasheet, the function during and after reset is the same as the actual pin name. So, they could not be reused as GPIO. 

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL