STM32F756ZGY6TR GPIO READ ERROR on PORT A Pin11 But Same Code Works fine on STM32F746IGT6
Hi, We had to change to a new MCU from the same family due to the great chip shortage of 2021.
But on the new MCU STM32F756ZGY6TR.
PORT A PIN11 does not read its state property
PORT A PIN10 works fine though
PIn11 will read low (correct) but then on next read will read High.
I have scanned the code for any other driver that is using this pin and none.
The Same Code on the previous STM32F746IGT6 MCU works fine.
Is there some thing Special with Pin11 on the Version of the MCU?
I measured the Pin and its pulled up correctly, and goes low correctly (when I press the Button)
Its such a simple thing (GPIO READ) But I cannot fathom when it does not work on this MCU
Thanks
Setup and read below
#define OPTO1_Pin GPIO_PIN_10
#define OPTO1_GPIO_Port GPIOA
#define OPTO2_Pin GPIO_PIN_11
#define OPTO2_GPIO_Port GPIOA
/*Configure GPIO pins : PAPin PAPin */
GPIO_InitStruct.Pin = OPTO1_Pin|OPTO2_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
GPIO_InitStruct.Pull = GPIO_PULLUP;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
// read function used
HAL_GPIO_ReadPin(GPIOA, OPTO2_Pin) ;
