Solved
STM32H747 PA0_C & PA1_C input reading issue
Hello,
I am working with a STM32H747XI. I have connected a digital input on PA0_C & PA1_C.
I used CubeMX for the initialisation.
The initialisation code is :
/*Configure GPIO pins : UI_ENC0_Pin UI_ENC1_Pin */
GPIO_InitStruct.Pin = UI_ENC0_Pin|UI_ENC1_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);When I read the pin, it stays always at 0 (GPIO_PIN_RESET)
bpState1 = HAL_GPIO_ReadPin(GPIOA, UI_ENC0_Pin);
bpState2 = HAL_GPIO_ReadPin(GPIOA, UI_ENC1_Pin);The pin PA0 is at " Reset State".
I dont know what I have to do to solve it.
Many thanks for your help.
Bertrand