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.

bq20z45 status update says 0x0D and 0x0E, and terminates learning cycle charge with OC alarm

I am using the bq20z45EVM with a 2-cell pack, and a LTC4100 charger development board.  Here is what I did the first time, after several days of reading forum posts and documents:

1: reflashed the chip with the attached .senc file (because of this forum post: http://e2e.ti.com/support/power_management/battery_management/f/180/p/176501/635522.aspx#635522)

2:: calibrated using the EVSW for z45

3: set the flash constants for a 2-cell pack according to SLVA347

4: set the BCAST and NR flags

5: connected the discharged cells

6: started the IT learning cycle (0x0021), verified the QEN and VOK flags were set; Status Update was set to 4

7: powered the charger.

Everything looked good as the cells charged.  Next morning, FC was set, VOK was cleared, but Status Update was still set to 4.

I depleted the cells and started again at step 1, but turned on logging.  This time after charging, Status Update changed to 0x0D, but I went ahead and discharged anyway.  At the end of the discharge cycle, everything still looked good, so I powered the charger again.  In less than 1/2 hour, the charge was terminated by the OC alarm and Status Update had changed to 0x0E.

Attached are the looging outputs.  Thanks for any help.

EnvietaLearningCycle.zip
  • I have done a 3 cell pack with a z45 recently, to get the qmax values to initialise try this

    delete any (old) dod values in gas gauging, update the flash with qmax values, design capacity for pack etc etc.

    charge up the pack.

    1) do a 0041, r_dis will be shown

    discharge @ c/5 and dont enable IT

    2) let it relax for 5 hours or more (when CUV or minimum level is reached)

    3) enable IT (0021), charge @ c/2 until FC set etc etc

    relax for 2/3 hours

    now qmax values will be updated, if charge faults show up its to do with either your design and/or fg settings.

  • UPDATE: perusing the logged .gg files reveals this curiosity.  Notice the appearance of Qmax values for cells 2 and 3 in the second excerpt.  At the same time, the Status Update changes to the invalid 0x0D.  These excerpts are the only differences between the .gg files. 

    I entered the 0 values for cells 2 and 3 during configuration.  Operation Cfg A = 0129, indicating 2 cells.

    I can see what happened, but have no idea why.

    DataFlashExport_00013.gg

    [State(Gas Gauging)]
    Qmax Cell 0 = 3100
    Qmax Cell 1 = 3100
    Qmax Cell 2 = 0
    Qmax Cell 3 = 0
    Qmax Pack = 3100
    Update Status = 04
    Cell 0 Chg dod at EoC = 0
    Cell 1 Chg dod at EoC = 0
    Cell 2 Chg dod at EoC = 0
    Cell 3 Chg dod at EoC = 0
    Avg I Last Run = -2000        
    Avg P Last Run = -3022
    Delta Voltage = 0
    Max Avg I Last Run = -2000
    Max Avg P Last Run = -3022

    DataFlashExport_00014.gg   

    [State(Gas Gauging)]
    Qmax Cell 0 = 3022
    Qmax Cell 1 = 3097
    Qmax Cell 2 = 3100
    Qmax Cell 3 = 3100
    Qmax Pack = 3022
    Update Status = 0D
    Cell 0 Chg dod at EoC = 448
    Cell 1 Chg dod at EoC = 960
    Cell 2 Chg dod at EoC = 0
    Cell 3 Chg dod at EoC = 0
    Avg I Last Run = -2000
    Avg P Last Run = -3022
    Delta Voltage = 0
    Max Avg I Last Run = -2000
    Max Avg P Last Run = -3022

    Corresponding log output:

    140    7:54:42 PM    8341    0000    300    10    0081    0    65535    65535    1    23.95    8262    0    0    100    100    99    3039    3041    65535    65535    65535    0    8400    00E0    0    0    0    4115    4147    0006    0000    0000    0000    0000    8043    1000    0004    23.85    23.75
    141    7:55:42 PM    8401    0000    300    10    0081    0    65535    65535    1    23.85    8262    0    0    100    100    99    3039    3041    65535    65535    65535    0    8400    00E0    0    0    0    4115    4147    0006    0000    0000    0000    0000    8043    1000    0004    23.85    23.75
    142    7:56:42 PM    8461    0000    300    10    0081    0    65535    65535    1    23.85    8261    0    0    100    100    99    3039    3041    65535    65535    65535    0    8400    00E0    0    0    0    4115    4147    0006    0000    0000    0000    0000    8043    1000    0004    23.85    23.65
    143    7:57:42 PM    8521    0000    300    10    0001    0    65535    65535    1    23.75    8260    0    0    3    100    92    2827    2827    65535    65535    65535    0    8400    00E0    0    0    0    4114    4146    0006    0000    0000    0000    0000    8041    1000    0004    23.75    23.65
    144    7:58:42 PM    8581    0000    300    10    0001    0    65535    65535    1    23.75    8261    0    0    3    100    92    2827    2827    65535    65535    65535    0    8400    00E0    0    0    0    4114    4146    0006    0000    0000    0000    0000    8041    1000    0004    23.75    23.65
    145    7:59:42 PM    8641    0000    300    10    0001    0    65535    65535    1    23.75    8261    0    0    3    100    92    2827    2827    65535    65535    65535    0    8400    00E0    0    0    0    4114    4146    0006    0000    0000    0000    0000    8041    1000    0004    23.75    23.65
    146    8:00:42 PM    8701    0000    300    10    0001    0    65535    65535    1    23.85    8260    0    0    3    100    92    2827    2827    65535    65535    65535    0    8400    00E0    0    0    0    4114    4146    0006    0000    0000    0000    0000    8041    1000    0004    23.85    23.65
    147    8:01:42 PM    8761    0000    300    10    0001    0    65535    65535    1    23.85    8260    0    0    3    100    92    2827    2827    65535    65535    65535    0    8400    00E0    0    0    0    4114    4146    0006    0000    0000    0000    0000    8041    1000    0004    23.85    23.75
    148    8:02:42 PM    8821    0000    300    10    0001    0    65535    65535    1    23.85    8260    0    0    3    100    92    2827    2827    65535    65535    65535    0    8400    00E0    0    0    0    4114    4146    0006    0000    0000    0000    0000    8041    1000    0004    23.85    23.65
    149    8:03:42 PM    8881    0000    300    10    0001    0    65535    65535    1    23.85    8100    -621    -583    3    100    92    2846    2856    275    293    65535    0    8400    00E0    0    0    0    4031    4069    0006    0000    0000    0000    0000    8043    1000    0004    23.85    23.75
    150    8:04:42 PM    8941    0000    300    10    0001    0    65535    65535    1    23.85    8082    -621    -621    3    100    92    2836    2856    274    274    65535    0    8400    00E0    0    0    0    4022    4059    0006    0000    0000    0000    0000    8043    1000    0004    23.85    23.65
    151    8:05:42 PM    9001    0000    300    10    0001    0    65535    65535    1    23.85    8070    -621    -621    3    99    92    2825    2856    273    273    65535    0    8400    00E0    0    0    0    4017    4053    0006    0000    0000    0000    0000    8043    1000    0004    23.85    23.65
    152    8:06:42 PM    9061    0000    300    10    0001    0    65535    65535    1    23.85    8061    -621    -621    3    99    91    2815    2856    272    272    65535    0    8400    00E0    0    0    0    4012    4048    0006    0000    0000    0000    0000    8043    1000    0004    23.85    23.65