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.

INA220: writing to ina220 calibration register with u-boot i2c tool

Part Number: INA220

Hello,

I'm trying to write the calibration register (0x05) in u-boot i2c tool, and I can't seem to get it to work properly.  I've tried all different syntax, but u-boot seems to want to write one byte to the address, and the part isn't happy with that.

40 is my devices address

I've tried:   i2c mw 0x40 0x05ab.2 cd 1    to trick it into sending four byte of     40  05  ab   cd

have you tried to do this in the u-boot format?

erik

  • Hello Erik,

    Sorry, but I have not used u-boot before.  In general, sending it one byte at a time should work as expected as long as you are not sending the stop bit.  I recommend looking at a scope shot of the digital communication to make sure it is sending how you would expect (compared to the datasheet, see Fig 15 below).  Also, it would be good to double check that the timing and voltage requirements are met.