Skip to main content
Graduate
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,

    This topic has been closed for replies.
    Best answer by Tesla DeLorean

    AND must be explicitly enabled..

     __HAL_RCC_PWR_CLK_ENABLE(); 
     HAL_PWREx_EnableVddIO2();

     

    3 replies

    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?
    Graduate II
    February 2, 2024

    Is the clock enabled for that GPIO block?

    Super User
    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.

    Graduate II
    February 2, 2024

    AND must be explicitly enabled..

     __HAL_RCC_PWR_CLK_ENABLE(); 
     HAL_PWREx_EnableVddIO2();