Skip to main content
Graduate
September 29, 2024
Solved

STM32G474 use boot0 pb8 pin as I2C1 SCL

  • September 29, 2024
  • 1 reply
  • 989 views

Is it possible to use pb8 (boot0) as I2C1 SCL pin, it seems STM32CubeIDE let's me configure it that way. But how can I prevent issues with the boot function after reset? Since I2C is pull-up level, right?

    This topic has been closed for replies.
    Best answer by TDK

    > Is it possible to use pb8 (boot0) as I2C1 SCL pin

    Yes, you can use PB8 as I2C1_SCL.

    > But how can I prevent issues with the boot function after reset? Since I2C is pull-up level, right?

    Change the option bytes to ignore the pin level on BOOT0 and boot into the user flash regardless of the level on the BOOT0 pin. I2C should have an external pullup resistor of about 2.2 kOhm.

    TDK_0-1727616064480.png

     

    1 reply

    TDKAnswer
    Super User
    September 29, 2024

    > Is it possible to use pb8 (boot0) as I2C1 SCL pin

    Yes, you can use PB8 as I2C1_SCL.

    > But how can I prevent issues with the boot function after reset? Since I2C is pull-up level, right?

    Change the option bytes to ignore the pin level on BOOT0 and boot into the user flash regardless of the level on the BOOT0 pin. I2C should have an external pullup resistor of about 2.2 kOhm.

    TDK_0-1727616064480.png