Gpio as output
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-26 10:27 AM
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
Solved! Go to Solution.
- Labels:
-
GPIO-EXTI
-
STM32F4 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-26 11:01 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-26 11:01 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-26 11:12 AM
Hello @TDK ,I will check and let u know
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-26 8:17 PM - edited ‎2025-06-26 8:41 PM
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.
Up vote any posts that you find helpful, it shows what's working..
