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.

i2c-tool warnings

Hi everyone,

I was wondering if the warning that I get from i2cset/i2cget(WARNING! This program can confuse your I2C bus, cause data loss and worse!) are real and I should be worried about it, or I can use those as much as I want in my scripts/program?

On my board, I have one I2C bus, which has 3 devices. One device, an audio codec, as a driver tat use that I2C port. The other's devices are access by a userspace program.

Do you see a problem where the driver could lock the bus?

Do you know if the I2C bus are protected so my userspace programm cant access the bus at the same time as the driver?

Best regards,
Jerome

  • Hi Jerome,

    The I2C bus should not be busy when the driver communicates with one device and a user space application try to communicates with other device. Also, could you share information about the SW release which you are using to check in such case this message appears?

    BR

    Tsvetolin Shulev

  • This message is part of the i2c-tool program. It doesn't mean anything other than tell you that youre actually gonna write onto the i2c bus. I finally wrote my own i2c program.