How do I configure MCU as I2C slave device?
I've been trying to set up MCU (STM32 L432KC) as an I2C slave device. I have previously tested it as a master device to interface with a port expander(MCP2307) and it works perfectly fine.The following is the code I am running. The master sends 1,2,3...