Hi,
I am trying to learn the I2c with nrf5340 PDK. I need to interface Sht20 and Mlx90614 with nrf5340PDK. I need to know the procedures regards this on NRF Connect SDK
Thanks & Regards
Navin
Hi,
I am trying to learn the I2c with nrf5340 PDK. I need to interface Sht20 and Mlx90614 with nrf5340PDK. I need to know the procedures regards this on NRF Connect SDK
Thanks & Regards
Navin
Hi Markus,
No Problem, I can read the debug values now. I have attached my Log below
Thanks & Regards
Navin
Hi Markus,
I have got the error code 4294967280.
Thanks & Regards
Navin
And which function in your application does return this error code?
Hi markus,
While writing with the "I2C_write" function returns that error.
Thanks & Regards
Navin
HI Markus
I am debugging my code by giving logging conditions. I have got the below error
Then, I have tried with a Logical analyzer. I can write on a device. But I can't able to properly read
According to the datasheet. I am trying to read the user register as like as mentioned below.
By seeing the Logic analyzer out. I understood, I can't able to set the device to read.
\
I had written the below function for reading. After, seen my requirements and my code. Kindly suggest me a way
u8t SHT2X_ReadByte(u8t reg_addr) { u8t array[I2C_BUFFER_LEN] = { 1 }; array[0] = reg_addr; int cnt = 1; error = i2c_write_read(i2c_dev,SHT2x_DEV_ADR,&array[0],1, &array[0], cnt); return error; }
I have called this function like this.
SHT2X_ReadByte (I2C_ADR_R);
Thanks & Regards
Navin