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.

ON AM3517, having problem writing to INA219 Configuration and Calibration Registers.

Other Parts Discussed in Thread: INA219, AM3517

There are are 4 INA219 chips for power, voltages and current reading on different rails. 

These chips have I2C interface, to be configured as slaves. Each I2c Has configuration,

calibration, current reading, voltage, power reading register. Configuration and Calibration registers

are read and write registers, while the rest are read only.  In my application I tried to write to the configuration

register at 0x0 and calibration at 0x5  ofsets, but I am failing because of the nack message.  I have used the I2c shell command

which is part of the BSP, and still  having the same problem. Did any body have configured these chips before or have some information

related to my problem? This chips are connected to I2C1 master according to the AM3517 schematic.

Info from the schematic.

0x40  0b1000000   INA219   5V   POWER MEASURE ON PM/I2C1

0x41  0b1000001  INA219  1.2V  POWER MEASURE ON PM/I2C1

0x42  0b1000010 INA219  VIO POWER MEASURE ON PM/I2C1


0x43  0b1000011 INA219  1.8V  POWER MEASURE ON PM/I2C1

 

  • Hi Yebio,

    Have you checked the SOM HW specification document? The INA219 devices are only available in case of populating R200 and R201. R200 and R201 are AFAIK default not populated. Secondly make you to run the 3.3V_or_1.8V at 3.3V in order for communication to the INA219 devices to work. More informain to be found in the SOM HW specification document... 

    Best regards - Good luck
      Søren

  • Hi Yebio,

     

    Did you have the i2c devices nodes in your system from the begining?

    I'm working in develop a small application to read, first the S2 and manipulate the leds available, and then try to read the power measures, nevertheless in /dev I cannot see the i2c device nodes. Do you have any idea that can help me in creating this devices or in the fs generation to have them?

     

    I have tried to create them manually but it doest work properly (like mknod /dev/i2c-0 c 89 0)

     

    Thanks and regards

  • Jorge,

    I think you are working on linux and I am working on wince on this particular problem. Hopefully somebody else give you an  answer related to your problem.

    This posting is related to  AM3517 EVM.

    best regards,