2025-02-18 12:37 AM
I use NUCLEO-H7S3L8 to evaluate our new solution. I want to use GPIO port P to control a few external components.
I add some test code into NUCLEO-H7S3L8\Examples\GPIO\GPIO_IOTggle project, like the below snapped code:
__HAL_RCC_GPIOP_CLK_ENABLE();
GPIO_InitStruct.Pin = GPIO_PIN_0 | GPIO_PIN_1 | GPIO_PIN_2 | GPIO_PIN_3;
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
GPIO_InitStruct.Pull = GPIO_PULLUP;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
HAL_GPIO_Init(GPIOP, &GPIO_InitStruct);
HAL_GPIO_WritePin(GPIOP, GPIO_PIN_0, GPIO_PIN_SET);
HAL_GPIO_WritePin(GPIOP, GPIO_PIN_1, GPIO_PIN_SET);
HAL_GPIO_WritePin(GPIOP, GPIO_PIN_2, GPIO_PIN_SET);
HAL_GPIO_WritePin(GPIOP, GPIO_PIN_3, GPIO_PIN_SET);
After executed the above code, I halted the core and measured voltage of these pins with a multi-meter.
These pins keep LOW voltage.
Does it need an additional configuration when we want to use GPIO port M to P in STM32H7RS?
Solved! Go to Solution.
2025-03-04 11:30 PM
Need to enable a special power domain. You' better to use CUBE to generate sample code.
2025-02-18 12:52 AM
Have you checked that the Nucleo board doesn't have anything else connected to those pins?
Check the User Manual and/or schematics ...
2025-02-18 1:04 AM
Hi Andrew, thank for your reply.
I had checked the schematic, those pins connect to a connector.
Actually i had tested port N which have test points in other project, results is same.
2025-03-04 11:30 PM
Need to enable a special power domain. You' better to use CUBE to generate sample code.
2025-03-05 12:09 AM
Has that solved your issue?
If so, please mark that as the solution:
https://community.st.com/t5/community-guidelines/help-others-to-solve-their-issues/ta-p/575256