cancel
Showing results for 
Search instead for 
Did you mean: 

I'm trying stm32f411 as I2C slave but its not working properly, same code I'm trying in stm32L476RG is working properly. Please suggest the solution why its not working.

Dhiraj Ghodmare
Associate II

in bellow I'm attached my code

4 REPLIES 4
Foued_KH
ST Employee

Hello @DGhod.1​ ,

Could you please identify which type of error ?

Foued

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Dhiraj Ghodmare
Associate II

code is compile and run ok no error exist but not work in stm32f411,

and same code work in stm32L476RG.

I'm observe when I'm enable stretch mode enable in stm32f411 I2C reception is working ok, but in transmission garbage value. I don't know why its happen.

please guide me.

Hello

Clock stretching is particularly useful in situations where the slave device might have slower processing capabilities compared to the master or when it needs more time to access external resources such as memory or peripherals.

Foued

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Foued_KH
ST Employee

Hello @DGhod.1​ ,


_legacyfs_online_stmicro_images_0693W00000dDIiIQAW.png 

Foued

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.