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.

bq27520-g3 CalMod

Hello,

I'm trying to implement the Current calibration for our bq27520-g3 part. I’m working on obtaining the raw current calibration value from the fuel gauge. Following the flow chart on page 4 of SLUA640A-August 2012-Revised January 2015, after putting the part into calibration mode there is a decision box after reading the control status that says “CalMod == 1”. I can’t find any reference to which bit CalMod is. All the other calibration routines use the CCA and or BCA bits. Does CalMod supposed to be BCA?

Thank you, Keith

  • Hello Keith,


    The [CALMODE] bit is hidden in the '520-G3.  However, that bit is in the same location in the Flags() register for both '520-G3 & '520-G4.  It should be bit 4 in the high byte of the Flags() register.

    I hope this helps.

  • Customer is asking:
    Hello,
    I’m trying to preserve the cycle count and the calibration values ( Board Offset, CC Offset, CC Gain, and CC Delta) through a firmware update. The problem I’m having is that the Cycle Count 0 location is in the Gas Gauging class, subclass ID 82, and all the calibration values are in the Calibration class, subclass 104. I can write to either subclass 82 or subclass 104 successfully, but not both.

    - I’ve tried a delay (seconds) between the two subclass writes
    - I’ve tried sealing the fuel gauge after the first subclass write, waiting up to 30 seconds, then unsealing and writing the other subclass.
    - I’ve tried using the reset command ( control subcommand 0x41 ) between the two subclass writes.
    - I’ve tried changing the subclass order. The first subclass I write is always successful, the second is always ignored.

    None of these work for me. At this point I don’t know what else to try, any ideas?
  • Hello Keith,

    Can you please confirm my understanding:

    You need an updater from the 520-G3 to G4 preserving Calibration and Cycle Count?

    Thanks,

    Kang Kang

  • Hello, thanks for your help.
    No. The customer is looking to update the firmware image on their own. (using flash stream for instance)
    They are running into problems while trying to write dataflash.
    Thank you, Keith