I'm using nRF5_SDK_15.3.0_59ac345 with a nRF52840 DK (v1.0.0 PCA10056), building and debugging using IAR 8.32.3 (which is working fine). I build and debug an unmodified twi_sensor example app, the nrf_drv_twi_init() call returns no error, but the app hangs waiting for the first twi transmission to complete. Specifically, in the following block of code, nrf_drv_twi_tx() returns immediately (because it's in non-blocking mode), but the subsequent while loop never falls through, because the twi_handler() is never called.
uint8_t reg[2] = {LM75B_REG_CONF, NORMAL_MODE}; err_code = nrf_drv_twi_tx(&m_twi, LM75B_ADDR, reg, sizeof(reg), false); APP_ERROR_CHECK(err_code); while (m_xfer_done == false);
I've also reproduced this problem by modding twi_sensor to operate in blocking mode; in this case, nrf_drv_twi_tx() never returns.
I don't have the requisite I2C device connected to the nRF52840 DK, but that shouldn't matter; if the I2C device isn't present, the TWI interface should read a NACK and nrf_drv_twi_tx() should return with an error code.