2024-02-02 03:20 AM
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:
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:
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,
Solved! Go to Solution.
2024-02-02 07:11 AM
AND must be explicitly enabled..
__HAL_RCC_PWR_CLK_ENABLE();
HAL_PWREx_EnableVddIO2();
2024-02-02 03:55 AM
Hello,
You didn't describe the issue. What kind of issue you faced with GPIOG port?
2024-02-02 06:38 AM
Is the clock enabled for that GPIO block?
2024-02-02 07:06 AM - edited 2024-02-02 07:07 AM
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.
2024-02-02 07:11 AM
AND must be explicitly enabled..
__HAL_RCC_PWR_CLK_ENABLE();
HAL_PWREx_EnableVddIO2();
2024-05-25 09:18 AM
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.
2024-05-26 05:18 AM
Some of these guys are extremely smart with tons of experience with ST MCU's. Some of us just bring cookies. ;)