cancel
Showing results for 
Search instead for 
Did you mean: 

Having trouble getting an STM32L433 working as an I2C slave

DPaxs
Associate

So I have written some code and gotten it partially to work. But after running for a few seconds with an I2C master sending requests and the STM32L433 responding, it receives an address match for the slave to receive and then the receive is terminated by a stop condition. It then proceeds with an address match for the slave to transmit and then that is terminated by a stop. At this point, both SCL and SDA are being held low by the STM32L433. I've confirmed this with a logic analyzer, seeing that the STML433 responded properly to the previous command but then a new one is sent followed by a request for data and the lines end up being low from there.

My code on the microcontroller still seems to be running as in a main loop, I blink an LED periodically.

At this point, I have code that just parrots back the register being sent in the I2C communication so there is no processing to speak of happening in the ISR.

Thanks,

David

This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1

@ST Community​  any FAEs want to cover this?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..