Other Parts Discussed in Thread: LP-AM243, AM2434
Our team is exploring the use of the AM4231 in place of our current MCU, TM4C129.
I am working on bringing up the I2C target mode. I configured the I2C target as below, but the it failed to send ACK to controller. Is there an example that I could refer to for setting up the slave mode properly? Should the configuration be different between I2C0 and I2C1? Since I2C0 is open drain and I2C1 is emulated open drain.
//todo check out of bound condition i2cHandle = gI2cHandle[i2c_num]; /* Set default transaction parameters */ I2C_Transaction_init(&i2cTransaction); //todo check I2C timeout accuracy in ms i2cTransaction.timeout = 1000; i2cTransaction.readBuf = i2c_slave_rx_buf; i2cTransaction.readCount = size; i2cTransaction.masterMode = false; status = I2C_transfer(i2cHandle, &i2cTransaction);