I want to use the MCXN236 as a peripheral device and use the FLEXIO pins for I2C communication. There is an example project in SDK "flexio_i2c_interrupt_lpi2c_transfer" but it only has the driver to acts as a controller. Is there any example code/drivers to use these pins for the peripheral?
Hi @burcu ,
No, unfortunately we do not provide examples of the FlexIO acting as an I2C target. There had been an effort in the past to do this but it was abandoned as it couldn’t fully meet the spec and ended up needing more shifter/timer resources than the I2C controller mode. (eg: more than 2 shifters and 2 timers). It is more efficient in terms of FlexIO resources to use LPI2C for target mode and FlexIO for controller mode.
Best regards,
Chris