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.
Tool/software: Code Composer Studio
Hello. I am using msp432 for i2c slave. I used an example from the SDK, "i2c_slavemode_simple_transfer". The only difference is that I use I2C0. The master is a single-board computer on Linux. There is also an ADC on the same bus - it works fine. I use i2ctools (i2cdetect) on a single board. When trying to scan a bus, the ADC is detected, its address is shown, but the bus hangs when scanning the msp432 address. Without msp432, everything works. Also tried to talk to msp432 using python-smbus. When I try to send one byte to the slave msp432, the bus hangs, which prevents me from communicating with either the msp432 or the ADC. This helps remove msp432 or reset msp432.
Sample python code:
from smbus import SMBus ADC_addr = 0x22 MSP_addr = 0x26 bus = SMBus (1) b = bus.read_byte_data (ADC_addr, 0) #ok print (b) bus.write_byte_data (ADC_addr, 0, 0) #ok bus.write_byte_data (MSP_addr, 0, 0) #error timeout or busy bus.close ()
As a result, I can not communicate with the slave msp432 on I2C. I would appreciate if you can help me.
**Attention** This is a public forum