2021-02-16 07:00 PM
Hi All,
In a hardware architecture where there are multiple I2C slaves running the same code base, each slave must determine their own address. The code generated by Stm32Cube hard codes the OwnAddress so it is impossible to insert a unique address in its place. There are two undesirable workarounds the programmer can use:
I propose there is a new HAL function to set OwnAddress that can be called sometime after the MX_I2C1_Init(). The programmer can then set their unique address at run-time.
What do you think?
Cheers
David