How to control STM32H7RS GPIO port P and N?
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?
Code formatting applied - please see How to insert source code for future reference.
