TWIM issue on NRF54L15

hello,
I encountered a problem using TWIM to communicate on nrf54l15
Software and hardware versions:
Using ncs V2.8.0 version. The hardware is NRF54L15 RevB. The compilation instruction uses the
west build -b nrf54l15pdk/nrf54l15/cpuapp
of the v2.7.0 guide.
Detailed description of the problem:
When using TWIM for data communication, in the i2c_nrfx_twim_transfer function in i2c_nrfx_twim.c, the nrfx_twim_xfer function returns success, but the interrupt has not been triggered, resulting in the code
ret = k_sem_take(&dev_data->completion_sync, I2C_TRANSFER_TIMEOUT_MSEC) timeout, and communication cannot be successful.
And on the signal line, only SCL will have a pull-up and pull-down (about 700ms)

Parents
  • Hi,

    Are you using a sample from NCS?

    NRFX_TWIM_XFER_TX returning, only indicates that the transfer has been scheduled, it's a non blocking asynchronous module, so you have to wait for the NRFX_TWIM_EVT_DONE to be generated to know whether the transfer was successful. 

    Can you probe SDA and SCL and check if the slave sends the ACK back to the master during the transfer?

    regards

    Jared 

Reply
  • Hi,

    Are you using a sample from NCS?

    NRFX_TWIM_XFER_TX returning, only indicates that the transfer has been scheduled, it's a non blocking asynchronous module, so you have to wait for the NRFX_TWIM_EVT_DONE to be generated to know whether the transfer was successful. 

    Can you probe SDA and SCL and check if the slave sends the ACK back to the master during the transfer?

    regards

    Jared 

Children
Related