How to make several I2C (slave) addresses in STM32.
Hello,
I am trying to connect RaspberryPi (master) with STM32 (slave) via I2C. STM has to "simulate" several devices (exactly 10) on the I2C bus. The problem is that I can set max 2 addresses (at least in Cube - HAL libraries). Ideally it would be like this: RP3 sends a command, STM32 generates an interrupt regardless of the address (1 byte) of command, and I can read the entire buffer with the address and decide what to answer depending on it.
Is such a thing possible? Only 2 devices are physically connected to the I2C bus and there will be no conflicts for sure.
I'm struggling with it all weekend... Anyone have any idea? I will be grateful for any suggestion.
Thank you,
Sebastian