Hi,
There are i2c slave reference examples based on hal library or ncs?
Hi,
There are i2c slave reference examples based on hal library or ncs?
Hello!
Thanks for reaching out. There is currently no official I2C slave reference samples for the nRF54L15 in the SDK. There are samples from Zephyr RTOS that shows the demonstrates the I2C-driver, like this one, but it has not been tested for our devices. To use the sample you would need to create board files for the nRF54L15 devices with the correct device tree bindings.
You can find examples of using our devices as I2C controllers/master with the TWIM peripheral in DevAcademy. I suggest using the the board files and device tree bindings demonstrated there as a starting point. It should not be required to do very big changes in order to use TWIS (I2C slave/target).
We also have the blog post "TWI/I2C implementation with nRFx TWIS Driver", but note that this is quite old and that many aspects (especially regarding the device tree) has changed quite a lot.
I hope this helps you on your way. Please reach out if you have more questions!
Best regards,
Carl Richard
Hello!
Thanks for reaching out. There is currently no official I2C slave reference samples for the nRF54L15 in the SDK. There are samples from Zephyr RTOS that shows the demonstrates the I2C-driver, like this one, but it has not been tested for our devices. To use the sample you would need to create board files for the nRF54L15 devices with the correct device tree bindings.
You can find examples of using our devices as I2C controllers/master with the TWIM peripheral in DevAcademy. I suggest using the the board files and device tree bindings demonstrated there as a starting point. It should not be required to do very big changes in order to use TWIS (I2C slave/target).
We also have the blog post "TWI/I2C implementation with nRFx TWIS Driver", but note that this is quite old and that many aspects (especially regarding the device tree) has changed quite a lot.
I hope this helps you on your way. Please reach out if you have more questions!
Best regards,
Carl Richard