Skip to main content
Associate III
November 5, 2023
Solved

STM32U595 used PA11 and PA12 as gpio

I used PA11 and PA12 as standard GPIO in STM32U595ZJT6Q and system frequency is 4MHz. Config PA11 and PA12 to PP output mode ,no pull up.Don't set this gpios to high, the mini system current is 3mA,but set this gpios to high, the current is 22mA.

Test PA10 or PA0,this current no changed.

I reference RM0456 rev4  13.3.16  and 10.7.12 ,used PA11 and PA12 as standard GPIOS,the USBPWREN and VDD11USBDIS bits in PWR_VOSR must be set.

I config these bit before config GPIO, but this current no changed,still is 22mA.

Sunwaz_0-1699191009843.png

This topic has been closed for replies.
SunwazBest answer
Associate III
November 9, 2023

OAB公司

13 replies

SunwazAuthor
Associate III
November 6, 2023

PA11 and PA12 dont connect anything.

Amel NASRI
ST Technical Moderator
November 8, 2023

Hi @Sunwaz ,

Did you tried to set FORCE_USBPWR bit in PWR_CR1? Does it have any impact?

Are you using your own board or an ST board?

-Amel

To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.
SunwazAuthor
Associate III
November 8, 2023

Hi @Amel NASRI ,

I will tried to set FORCE_USBPWR bit in PWR_CR1 tomorrow.

I have U599 EV board.

I tried U599 EV board too, but its current  also is 22mA . Too bigger.Using other gpio , it's right, only PA11 and PA12.

SunwazAuthor
Associate III
November 8, 2023

Hi @Amel NASRI ,

I dont used low power mode.

SunwazAuthor
Associate III
November 9, 2023

Hi @Amel NASRI ,

I set FORCE_USBPWR bit in PWR_CR1,the current  smaller from 22mA to 15mA.But its to bigger.

SunwazAuthor
Associate III
November 9, 2023

Sunwaz_0-1699513814324.png

 

SunwazAuthorBest answer
Associate III
November 9, 2023

OAB公司

Amel NASRI
ST Technical Moderator
November 9, 2023

Hi @Sunwaz ,

Thanks for sharing your finding.

May you share a screenshot of the document where this information was found? I checked ES0553 rev1 and there is no such limitation.

-Amel

To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.
SunwazAuthor
Associate III
November 9, 2023

Hi @Amel NASRI 

I don't know this errata sheets code number.

Edit: Internal information removed.

Amel NASRI
ST Technical Moderator
November 9, 2023

Hi @Sunwaz ,

Could you please tell me the REV_ID of the devices you used for test (0xE004 4000)?

-Amel

To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.
SunwazAuthor
Associate III
November 10, 2023

This picture is the MCU message read by STM32CubeProgram.

Sunwaz_0-1699581886549.png

 

SunwazAuthor
Associate III
November 13, 2023

The value is 0X30016481 @0xE004 4000.