Skip to main content
Associate II
February 2, 2024
Solved

Trouble with GPIOG on STM32U575ZIT6

  • February 2, 2024
  • 3 replies
  • 2412 views

Hello everyone,

I hope you're doing well. I'm currently working on a project using the STM32U575ZIT6 microcontroller, and I'm facing a peculiar issue with GPIOG.

I have successfully manipulated GPIOB and GPIOC for controlling LEDs, but I'm encountering difficulties with GPIOG. I've double-checked my connections, and everything seems to be in order.

Here's a brief overview of my setup:

  • LED1 on GPIOB is working fine.
  • LED2 on GPIOC is also functioning correctly.
  • However, LED3 on GPIOG is not responding as expected.

I've verified the connections and configuration for GPIOG, but it seems that the port is not responding as anticipated. If anyone has experience with this microcontroller or has encountered a similar issue, I would greatly appreciate your insights.

Here are some details that might help diagnose the problem:

  • STM32U575ZIT6 microcontroller
  • LED1 on GPIOB
  • LED2 on GPIOC
  • LED3 on GPIOG

If you have any suggestions, advice, or troubleshooting steps, please share them. I'm eager to resolve this issue and move forward with my project.

Thank you in advance for your assistance!

Best regards,

Best answer by Tesla DeLorean

AND must be explicitly enabled..

 __HAL_RCC_PWR_CLK_ENABLE(); 
 HAL_PWREx_EnableVddIO2();

 

3 replies

mƎALLEm
Technical Moderator
February 2, 2024

Hello,

You didn't describe the issue. What kind of issue you faced with GPIOG port? 

  • LED1 on GPIOB
  • LED2 on GPIOC
  • LED3 on GPIOG --> which pin?
To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
David Littell
Senior II
February 2, 2024

Is the clock enabled for that GPIO block?

TDK
February 2, 2024

Note that GPIOG uses the VDDIO2 rail, unlike the other ports. Could be that this rail is missing or insufficient.

Debug the code, verify the GPIOG registers are being modified as expected.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
February 2, 2024

AND must be explicitly enabled..

 __HAL_RCC_PWR_CLK_ENABLE(); 
 HAL_PWREx_EnableVddIO2();

 

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..