This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

TWI master blocking mode & non-powered peripheral

Hello to all nordic jedi masters!

I have made an observation, on which I would like your confirmation. My combo is: nrf52832 + SDK 11 + SD132.

Will my application "hang" if I am operating the TWI master in blocking mode, and there is no voltage in the SDA or SCL lines and/or the peripheral I am talking to is not powered on?

Parents
  • Hi,

    As described in the documentation, when using blocking mode, the functions nrf_drv_twi_rx and nrf_drv_twi_tx return if the requested transfer is complete, or if an error was reported by the peripheral.

    If the device you are talking to is not responding or is not powered, the transfer functions will return with a NACK error:

    NRF_ERROR_DRV_TWI_ERR_ANACK - If NACK received after sending the address in polling mode.

    NRF_ERROR_DRV_TWI_ERR_DNACK - If NACK received after sending a data byte in polling mode.

    Best regards,

    Jørgen

Reply
  • Hi,

    As described in the documentation, when using blocking mode, the functions nrf_drv_twi_rx and nrf_drv_twi_tx return if the requested transfer is complete, or if an error was reported by the peripheral.

    If the device you are talking to is not responding or is not powered, the transfer functions will return with a NACK error:

    NRF_ERROR_DRV_TWI_ERR_ANACK - If NACK received after sending the address in polling mode.

    NRF_ERROR_DRV_TWI_ERR_DNACK - If NACK received after sending a data byte in polling mode.

    Best regards,

    Jørgen

Children
No Data
Related