Menu

Correct op.exe parameters for I2C

kerusal
2011-03-20
2012-10-27
  • kerusal

    kerusal - 2011-03-20

    What is the right command line parameters to read & write a 4k I2C chip
    completely? The gui is not working, it hangs.
    i2c_r 8 A0 0
    reads 8 bytes. How to read the complete chip?
    And write also.

    Thanks.

     
  • Alberto Maccioni

    You should proceed as with any other chip:
    op -d <device name="">
    op -support to see exactly what devices are supported.
    i2c commands are there to make experiments with generic i2c devices. </device>

    BR
    Alberto

     
  • kerusal

    kerusal - 2011-03-22

    Excellent.
    I read and write the chip - 24C32A. Command is:

    Read and Save As content as filename.hex:
    op -d 2432 -s filesave.hex

    Write:
    op -d 2432 -w filesave.hex

    On gui now it can be read without hang. Before the Device was set to other
    microcontroller. I was working on I2C/SPI tab of the gui and did not think it
    is necessary to select device from the Device tab.

    Thanks a lot.

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.