This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2541:can't get i2c acknowledge from slave

Other Parts Discussed in Thread: CC2541

Hello! I try to connect CC2541 and SI1145 sensor. I'm using "Thermometer" example. For debug I've commented other part of program, now is next:

int main(void)
{
  /* Initialize hardware */
  HAL_BOARD_INIT();
   
  SI1145_init();
  
  while(1)
  {
    SI1145_write8();
    
    for (int j = 0; j < 10; j++) //delay for debug
    {
      for (int i = 0; i < 1000; i++);
    }
  }
  
}

#define SI1145_ADDR 0x60

void SI1145_init(void)
{
  HalI2CInit(SI1145_ADDR, i2cClock_165KHZ);
}

uint8 data[] = {0x80,0x29,80};

void SI1145_write8(uint8 reg, uint8 val)
{ 
  HalI2CWrite(3, data);
}

after debugging I've realized that  I always get "mstAddrNackW" , in this part 

 if (i2cMstStrt(I2C_MST_RD_BIT) != mstAddrAckR)
  {
    len = 0;
  }

I've decided using Aardvark I2C/SPI Host Adapter   tool for checking connection and  all were working!!!

but with the same settings doesn't work with CC2541:

Can you help me please with it?