cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G474 use boot0 pb8 pin as I2C1 SCL

CyberNerd
Associate III

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?

1 REPLY 1
TDK
Guru

> 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".