Skip to main content
Associate III
May 6, 2026
Question

stm32wba64CIUx: PD7,6 only showing USB_OTG_HS functions

  • May 6, 2026
  • 1 reply
  • 275 views

Why after last update the pins PD7 , PD6 are only with USB_OTG_HS functions:

Brussl_0-1778074569624.png

 

1 reply

Ghofrane GSOURI
Technical Moderator
May 6, 2026

Hello @Brussl 

According to the datasheet  DS14736 Rev 3, PD6 and PD7 are dedicated to USB_OTG_HS only, cannot be used as normal GPIO or alternate functions, and if USB_OTG_HS is unused they must be left in analog mode; therefore CubeMX showing only USB_OTG_HS functions for these pins is expected behavior.

GhofraneGSOURI_0-1778081392969.png

 

THX
Ghofrane

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
BrusslAuthor
Associate III
May 7, 2026

This is super strange ! I had been working device with this pins as outputs. And this device is with software generated with old cubeMX and cubeIDE. Device work.

We have ordered a lot of PCB's. Can you check what is the problem really ?

 

Ghofrane GSOURI
Technical Moderator
May 7, 2026

Hello @Brussl 

To confirm the actual hardware behavior on your board, could you please perform a simple validation by toggling an LED on PD6 and/or PD7 configured as GPIO outputs in the old project, and check whether the LED switches reliably? This will help verify whether those pins are truly behaving as standard outputs on the hardware, despite the newer CubeMX and datasheet restrictions.

I will be waiting for your feedback .

THX

Ghofrane

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.