Skip to main content
Visitor II
June 2, 2025
Question

STM32N6: UCPD1_CC1 and UCPD1_CC2 use as GPIO

  • June 2, 2025
  • 1 reply
  • 373 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.

    1 reply

    Technical Moderator
    June 2, 2025

    Hi @Clyasenth 

    Would you attach your iOC file?

    ClyasenthAuthor
    Visitor II
    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

    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.