cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble with GPIOG on STM32U575ZIT6

OTM98
Associate II

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,

1 ACCEPTED SOLUTION

Accepted Solutions

AND must be explicitly enabled..

  __HAL_RCC_PWR_CLK_ENABLE(); 
  HAL_PWREx_EnableVddIO2();

 

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

View solution in original post

6 REPLIES 6
SofLit
ST Employee

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 on "Accept as Solution" on the reply which solved your issue or answered your question.

Is the clock enabled for that GPIO block?

TDK
Guru

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".

AND must be explicitly enabled..

  __HAL_RCC_PWR_CLK_ENABLE(); 
  HAL_PWREx_EnableVddIO2();

 

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Basano
Associate II

saving lives with this one. 

How do you guys know these random pieces of information? :D I did find it in data sheet and managed to make it work but ***, without you id be a pickle.

Some of these guys are extremely smart with tons of experience with ST MCU's.  Some of us just bring cookies.  😉