I can't seem to get TWI working, attached are main.c sd_config.h
The code compiles, but when stepping through in debug, it ends up in an infinite loop inside:
ret_code_t nrf_drv_twi_rx(nrf_drv_twi_t const * p_instance,
uint8_t address,
uint8_t * p_data,
uint8_t length)
{
ret_code_t result = 0;
if (NRF_DRV_TWI_USE_TWIM)
{
stuck here >>>>> result = nrfx_twim_rx(&p_instance->u.twim,
address, p_data, length);
}
else if (NRF_DRV_TWI_USE_TWI)
{
result = nrfx_twi_rx(&p_instance->u.twi,
address, p_data, length);
}
return result;
}
I have oscilloscope probes on SCL and SDA, and not sign of life on either one. Using SDK 15.3 on custom board with nRF52810
Solved, I forgot to turn power to the sensors....