AnsweredAssumed Answered

I2C1 as Master on FRDM-K22F

Question asked by sandeep sharma on Jan 10, 2017
Latest reply on Jan 12, 2017 by Kerry Zhou

Hi Experts,

 

I have a FRDM K22F board (MK22FN512VLH12) and  connected one light sensor to it.

 

I have connected I2C sensor on I2C1 module of the board.[Pin55 as I2C1_SCL & Pin 56 as I2C1_SDA] and configured it as I2C Master.

 

Slave address for my device is 0x23. I have modified freertos_i2c_frdmk22f code to test it.

 

When i am trying to write on this slave address, I am getting error [Error code:- 0x451:- kStatus_I2C_Addr_Nak. NAK received during the address probe]

 

Can you please help here,where i did mistake and how to proceed.

 

Regards

Sandeep S

Original Attachment has been moved to: freertos_i2c.c.zip

Outcomes