cancel
Showing results for 
Search instead for 
Did you mean: 

stm32 MCU flashing via i2c

abhijith_raj
Associate

Hi,

I'm working on flashing an STM32 MCU via I2C. The current setup involves a processor (host) and an STM32 MCU (G491RET6), where the processor needs to upload firmware to the MCU and perform flashing over I2C with the STM32 acting as the slave.

I have a question regarding the I2C interface used during bootloader mode. The MCU has I2C1, I2C2, and I2C3 available — can any of these be used for flashing in boot mode, or is only a specific I2C peripheral supported by the STM32 bootloader?

Also, for I2C1, there are multiple pin options available in the pinmux configuration. Which specific pins should be used for flashing via I2C in this case?

1 REPLY 1
Ozone
Principal

This is usually documented in the reference manual for your MCU variant.

Here an example for some F3 variants I have at hand :

Ozone_0-1745471900562.png