STM32H750 GPIO G11 not work as output mode
I have two hardware boards mount with STM32H750 . I want to set the GPIO G11 to high , the code as below :
__HAL_RCC_GPIOG_CLK_ENABLE();
HAL_GPIO_WritePin(GPIOG, GPIO_PIN_11, GPIO_PIN_SET);
GPIO_InitStruct.Pin = GPIO_PIN_11;
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
GPIO_InitStruct.Pull = GPIO_PULLUP;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
HAL_GPIO_Init(GPIOG, &GPIO_InitStruct);
One board work but another don't .
The corresponding bit on the "GPIO input data register" on failure board will not set after i run the above codes.
Any idea ?
Thanks