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.

Failed Read Data with (Decimal Code) Error 772

Other Parts Discussed in Thread: BQEVSW, BQSTUDIO

I am currently trying to do a Battery Learning cycle using bq27520 EVM. I have successfully passed it before and now I am doing it on a different battery. But something has gone wrong during the Learning cycle and the readings of Fuel Gauge is always "0" in the battery meter shown below. But the measurement readings like Battery Voltage and Battery Current are still correct.

To rectify this, I tried refreshing the firmware but I am getting the following error: Failed Read Data with (Decimal Code) Error 772  

I checked the Fuel Gauge is unsealed and I am unable to figure out why am I not able to reset the firmware to the default .senc file downloaded from the website.

Can someone help me out in configuring the EVM to default state so that I can start the learning cycle again?

  • Hi Akshay,

    You will need to program the device using bqEVSW because the file you downloaded from ti.com is an senc file and bqstudio doesn't support senc files.

    When programming the senc file, make sure the device is put in ROM mode by sending command 0x00f0. After programming is complete exit using command 0x08. Also check to make sure the gauge is in full access mode before trying to put the gauge in ROM mode. Also ensure the voltage is sufficiently high, at least 3.5 when trying to program.

    Let me know if this helps.

    thanks

    Onyx

  • Hi Onyx,

    Thanks for the reply. But this also doesn't work. I am describing the procedure I am following in detail below. Please let me know if I am doing anything wrong. I used bqEVSW which I believe is bq Evaluation Software.

    1. To program the bq board to ROM mode, I am writing I2C Command 00 -> 0xF0 and then 01-> 0x00 using I2C Pro Menus.
    2. After this step, I am using the bq27520G4_3_29.senc file to program using the "Program" option in the Programming section.

    After this the error that I get is Comm Error code = 772 which means that the data is not written.

    3. I am exiting this by writing 0x08.

    Also, the voltage that I see on the oscilloscope is 3V. Is 3 V fine or do I need to put a pull up register to get it above 3.5V?

    Thanks!

    Regards,
    Akshay
  • Hi Akshay,
    Simplest way to do this is go to dataram window, then in the "control" field and type 0f00. This will put the device in ROM mode. The cell voltage on pack+ and pack- if you are using the EVM is what out to be at 3.5V. Alternatively, in I2c pro window, in the field where you have data block type 000f which is little endian for 0f00. then click the write data button. once that is done at the bottom left of your screen, if you are scanning or if you click the refresh button in data ram, you will see the line "communication error". if you were in firmware mode it will be "communication ok"

    After you are done programming. hit the execute button below the program button. This is take the device out of ROM mode back into firmware mode.

    thanks
    Onyx