Skip to main content
BRENO NASCIMENTO SANTOS1
Associate II
May 19, 2022
Solved

Hello my friends. I have 2 questions to ask. Do you know if STM32F103C8T6 can be used as slave mode? what if the STM32F103C8T6 has any I2C issues when used in slave mode? Thank you in advance for your attention.

  • May 19, 2022
  • 2 replies
  • 652 views

..

This topic has been closed for replies.
Best answer by Tesla DeLorean

I2C Master and Slave implementations should be viable on the STM32F1 series parts.

There should be working examples under CubeF1, and perhaps CubeMX can manifest code.

The F1 is the oldest and least flexible of the STM32 families, certainly in usable pins and maturity in the peripheral design.

I2C Slaves should be possible, but likely to be non-trivial.

I2C peripheral on STM32F1 is a bit quirky, as I recall, so pins need to be high, and the order sequence of pins, peripheral, enable gets to be critical. On the master side, with SPL, I recall the Cmd Enable needed to be done prior to the main initialization.

2 replies

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
May 19, 2022

I2C Master and Slave implementations should be viable on the STM32F1 series parts.

There should be working examples under CubeF1, and perhaps CubeMX can manifest code.

The F1 is the oldest and least flexible of the STM32 families, certainly in usable pins and maturity in the peripheral design.

I2C Slaves should be possible, but likely to be non-trivial.

I2C peripheral on STM32F1 is a bit quirky, as I recall, so pins need to be high, and the order sequence of pins, peripheral, enable gets to be critical. On the master side, with SPL, I recall the Cmd Enable needed to be done prior to the main initialization.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
BRENO NASCIMENTO SANTOS1
Associate II
May 19, 2022

@Community member​ thank you so much for the suppor.