Skip to main content
Associate III
May 6, 2026
Solved

stm32wba64CIUx: PD7,6 only showing USB_OTG_HS functions

  • May 6, 2026
  • 2 replies
  • 310 views

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

Brussl_0-1778074569624.png

 

Best answer by Ghofrane GSOURI

Hello ​@Brussl 

I am sharing the expert’s response below:

If a customer uses PD6/7 as GPIO, it may work but at cost of extra consumption.
If the customer has a working solution it is fine, but going forward we exclude this option in the datasheet.

THX

Ghofrane

2 replies

Ghofrane GSOURI
ST 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
ST 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.
Ghofrane GSOURI
Ghofrane GSOURIBest answer
ST Technical Moderator
July 15, 2026

Hello ​@Brussl 

I am sharing the expert’s response below:

If a customer uses PD6/7 as GPIO, it may work but at cost of extra consumption.
If the customer has a working solution it is fine, but going forward we exclude this option in the datasheet.

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.