Not able to use Port B alternate function (I2C)
Hi community,
I am trying to use I2C on the STM32L010RBTX,
during configuration in MX, i realized that when PB8 and PB9 is configured as I2C, the GPIO mode field shows n/a.
And the I2C won't work as well.
However, when i configure to PA9/PA10,
GPIO mode shows alternate function,
which, I2C works perfectly fine under the same code.
I am just using HAL_I2C_IsDeviceReady to check whether it is sending out anything.
Any idea how to make it work on PB8 and PB9?
Much thanks!