Skip to main content
Graduate
June 26, 2025
Solved

Gpio as output

  • June 26, 2025
  • 2 replies
  • 437 views

Eval board used:stm32f446re nucleo 

Issue unable to configure pin pa 2 and pa3 as output.

Steps followed to configure:

Rcc->AHB1ENR 0X01;

GPIOA->MODER |=0X01<<4;

GPIOA->MODER |=0X01<<6;

GPIOA->ODR=0X01<<2;

GPIOA->ODR=0X01<<2;

.EVEN I USED DEBUG MODE TO CH CK WHETHER BITS ARE GETTING CONFIGURED OR not.everythings I working fine expect pin is not going high.

When I use sam steps of other pins of same port PAx ,it works.

Please help me onthat one more I checked whether these pins are configured to work with uart2 even though I am configuring moder and odr .but nothing usefull I got.

Thanks for your r understanding waiting for support

 

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

    Where are you measuring the pins? PA2/PA3 are not connected to the headers by default. See the user manual. You will need to modify solder bridges to change this.

    TDK_1-1750960849987.png

     

    2 replies

    TDKAnswer
    Super User
    June 26, 2025

    Where are you measuring the pins? PA2/PA3 are not connected to the headers by default. See the user manual. You will need to modify solder bridges to change this.

    TDK_1-1750960849987.png

     

    Graduate
    June 26, 2025

    Hello @TDK ,I will check and let u know

    Graduate II
    June 27, 2025

    PA3 is going to be driven by the on-board ST-LINK/V2-1

    You can find a schematic, and review that, from the CAD Resources tab on the product page.