cancel
Showing results for 
Search instead for 
Did you mean: 

STM32N6: UCPD1_CC1 and UCPD1_CC2 use as GPIO

Clyasenth
Associate II

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

4 REPLIES 4
FBL
ST Employee

Hi @Clyasenth 

Would you attach your iOC file?

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.


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

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 Accept as Solution on the reply which solved your issue or answered your question.


Hello @FBL 

Is there any bug or something in Cube MX or Cube IDE because, I can chose UCPD1_CC1 and UCPD1_CC2 pins as GPIO in Cube MX and Cube IDE.

Best regards,

Egemen Aksoy