Hello all,
I am using nRF9160 with ncs v1.2.0.
I got the error : <err> i2c_nrfx_twim: Error 195952641 occurred for message 0
when trying to use I2C_3, and the function i2c_read() return -5.
... i2c_dev = device_get_binding("I2C_3"); if (!i2c_dev) { printk("I2C: Device driver not found.\n"); return; } i2c_configure(i2c_dev, I2C_SPEED_SET(I2C_SPEED_STANDARD)); i2c_read(i2c_dev, msg, 2, register_address); ...
... &i2c3 { status = "okay"; compatible = "nordic,nrf-twim"; sda-pin = <1>; scl-pin = <0>; clock-frequency = <I2C_BITRATE_STANDARD>; };
... # I2C CONFIG_TRUSTED_EXECUTION_NONSECURE=y CONFIG_I2C_LOG_LEVEL_DBG=y CONFIG_I2C=y CONFIG_I2C_NRFX=y CONFIG_I2C_3=y CONFIG_I2C_3_NRF_TWIM=y ...