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?
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 01: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.