Skip to main content
Associate III
September 29, 2024
Solved

STM32G474 use boot0 pb8 pin as I2C1 SCL

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.
TDK
TDKBest answer
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

 

"If you feel a post has answered your question, please click ""Accept as Solution""."

1 reply

TDK
TDKBest answer
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

 

"If you feel a post has answered your question, please click ""Accept as Solution""."