cancel
Showing results for 
Search instead for 
Did you mean: 

Gpio as output

Alex_reynold
Associate III

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Super User

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

 

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

3 REPLIES 3
TDK
Super User

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

 

If you feel a post has answered your question, please click "Accept as Solution".

Hello @TDK ,I will check and let u know

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. 

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..