Skip to content

PB6 does not work as an output for STM32U385 #2743

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
alexceltare2 opened this issue May 29, 2025 · 7 comments
Closed

PB6 does not work as an output for STM32U385 #2743

alexceltare2 opened this issue May 29, 2025 · 7 comments
Labels
invalid This doesn't seem right

Comments

@alexceltare2
Copy link

Describe the bug
When uploading the Blink code either via Arduino IDE or Cube, D15/PB6 does not light up when I attach a LED to it. Not sure if it's by design or there is a hardware bug.

To Reproduce
Upload the Blink program and change LED_BUILTIN to 15

Steps to reproduce the behavior:

  1. Open the Blink program.
  2. Change LED_BUILTIN to 15 or PB6

Expected behavior
LED should light every second.

Desktop (please complete the following information):

  • OS: Windows 11
  • Arduino IDE version: 2.3.5
  • STM32 core version: 2.10.1
  • Tools menu settings if not the default: 3.3V, Mass storage
  • Upload method: USB embedded ST-Link

Board (please complete the following information):

  • Name: Nucleo-U385RG-Q
  • Hardware Revision: N/A
  • Extra hardware used if any: N/A
@fpistm fpistm changed the title GPIO 15 aka PB6 does not work as an output for STM32U385 PB6 does not work as an output for STM32U385 May 29, 2025
@fpistm
Copy link
Member

fpistm commented May 29, 2025

Gpio15 is not PB6. It is GPIO pin 15 from one GPIO port.
PB6 is GPIO PIN 6 from GPIO PORT B.
Which target you used?
I'm not able to find D15 equal to PB6.

@alexceltare2
Copy link
Author

Nucleo-U385RG-Q

@fpistm
Copy link
Member

fpistm commented May 30, 2025

D15 is PB13 not PB6:

@fpistm fpistm closed this as completed May 30, 2025
@fpistm fpistm added the invalid This doesn't seem right label May 30, 2025
@alexceltare2
Copy link
Author

alexceltare2 commented May 30, 2025

Sorry, you're right. I wasn't paying attention to the solder bridge settings. This doc should've be more clear which one was the default (out of the factory) setting. However the pinout for D15 is not the default factory setting.

Image

@alexceltare2
Copy link
Author

Whatever the case, many GPIO pins don't toggle the LED as expected.

@fpistm
Copy link
Member

fpistm commented May 30, 2025

It works. What is your code?

@alexceltare2
Copy link
Author

Nevermind, it works now that I've switched to 3.3V from 1.8V. Thanks for the help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants