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.

CCS/TMS320C6748: I2C communication does not work in slave mode. Please tell me about the cause of the problem.

Part Number: TMS320C6748

Tool/software: Code Composer Studio

I2C Slave communication test is performed using the I2C_Slave_lcdkOMAPL138_c674xTestProject project.

I set to non-dma interrupt mode and try to communicate with the other board, but after the I2C_transfer function in the 416th line, it does not move to the next line.

Even if I give Master signal TX / RX from the opponent board, I don't respond, and I want you to tell me if the code is strange or if the test method is wrong.

main_test.c
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/**
* \file main_test.c
*
* \brief The application Demonstrate the I2C master/slave mode functionality.
* I2C data are transferred from master to slave and at the
* same instance data from slave are transferred to master.
*
* \details
* To demonstrate the example two boards are needed one board
* acts as master and another as slave.
*
* Following is the Pin connection information:
* MasterI2C_SCL-----SlaveI2C_SCL
* MasterI2C_SDA-----SlaveI2C_SDA
*
* \Running the example
* 1) Connect the master and slave boards as per above pin connections.
* 2) Two consoles. One for master and another for slave.
* 3) Run slave application binary and then master application binary.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX