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.

CC3220SF-LAUNCHXL: Writing to slave and receiving answer from it

Part Number: CC3220SF-LAUNCHXL
Other Parts Discussed in Thread: CC3220SF, CC3200

Hi, 

I'm using a CC3220SF-LAUNCHXL to interact with a device over I2C. The flow is the following: The CC3220SF (master) sends a message to the slave (our device) and it answers to the master with another message. 

To write to the slave I use the I2C_transfer function and it works fine (I used a I2C sniffer to confirm). The problem is that I don't success to receive the answer from our device using the I2C_transer (Because the device sends the message as master and then the CC3220 must work as slave). 

So I have the following questions: 

  1. Is there any full sample code showing how to configure the CC3220 to be I2C Slave?
  2. I connect the I2C slave (our device) to the CC3220 to J15 (SCL) and J16 (SDA). Is it ok also when C3220 is the slave? 

Thanks

Ariel