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.

BQ34Z100-G1: Can not write parameters to BQ34Z100-G1

Part Number: BQ34Z100-G1
Other Parts Discussed in Thread: BQSTUDIO, , BQ34Z100

Hello

I am having a problem with writing parameters in BQStudio. How can I write to BQ34Z100-G1 ?
For example, when I try to write the value of OT Chg from 45 to 55 in the Data Memory window, BQStudio said "A read of data written failed comparison" and the value remains at 45. Also, even though I press "Write All" button after pressing the "Imports Defaults button", It said "Parameter not written. Class name Gas Gauging, Subclass name State,...". and the parameters will be left as they were.

The following is what I tried.
・I2C communication with BQStudio is possible.
・I Could write to the same board before. This problem occurred when I tried again after some time.
・The same problem occurred with another board.
・Commands such as SEALED and UNSEALE can be sent.

I will also attach the data.211012_DataMemory.csv

Tue Oct 12 09:46:54 JST 2021

Device Version Info = 0100_0_16
BQZ Device Name = bq34z100G1
BQZ Firmware Version = 0_16


Sample,DateTime,ElapsedTime,Control,CtrlStatus,StateofCharge,MaxError,RemCap,FullChgCap,Voltage,Current,AvgCurrent,Temperature,AverageTimeToEmpty,AverageTimeToFull,AvailableEnergy,AveragePower,InternalTemperature,CycleCnt,StateofHealth,ChargeVoltage,ChargeCurrent,PackConfig,Flags,Flags B,GridNumber,LearnedStatus,DoDatEOC,Qstart,TrueRC,TrueFCC,StateTime,DOD0PassedQ,DOD0Time,DOD0,QmaxDOD0,QmaxPassedQ,QmaxTime,LogRowTime(ms),LogStatus
1,2021-10-12 09:46:59,5.152,0x0016,0x0215,0,100,0,3916,4636,0,0,14.9,65535,65535,0,0,24.0,0,88,8200,5000,0x2F61,0x0116,0x2400,15,4,3392,3916,-33,3916,436,31,3,16228,0,31,3,919,SUCCESS

  • Hello,

    There is a data flash parameter called Flash update OK cell voltage. If cell voltage falls below this value, then data flash writes will fail. Make sure the gauge is in unsealed mode before trying to write data flash.

  • Dear Shirish,

    I checked cell voltage is  larger than Flash update OK cell voltage. Also I have gotten the gauge unselaed before writing.
    I will attach a movie showing what I did.

  • Adding onto what I said, the cell voltage I measured is about 8000 mV even though the gauge says 4266 mV in that experiment.

    And in a different experiment, I can write parameters in another board and the gauge says about 43000 mV.
    Surely cell voltages is high sufficiently (though something is wrong with this voltage).

  • Hello,

    Can you attach the gg.csv file from the board that reports the high voltage?

  • Hello,

    I attached gg.csv and log file.

    211013_HighVoltageBoard.gg.csv

    Wed Oct 13 09:02:45 JST 2021
    
    Device Version Info = 0100_0_16
    BQZ Device Name = bq34z100G1
    BQZ Firmware Version = 0_16
    
    
    Sample,DateTime,ElapsedTime,Control,CtrlStatus,StateofCharge,MaxError,RemCap,FullChgCap,Voltage,Current,AvgCurrent,Temperature,AverageTimeToEmpty,AverageTimeToFull,AvailableEnergy,AveragePower,InternalTemperature,CycleCnt,StateofHealth,ChargeVoltage,ChargeCurrent,PackConfig,Flags,Flags B,GridNumber,LearnedStatus,DoDatEOC,Qstart,TrueRC,TrueFCC,StateTime,DOD0PassedQ,DOD0Time,DOD0,QmaxDOD0,QmaxPassedQ,QmaxTime,LogRowTime(ms),LogStatus
    1,2021-10-13 09:02:50,5.128,0x0016,0x4011,100,100,4367,4367,45142,0,0,5.8,65535,65535,8154,0,23.9,0,88,8200,5000,0x2F61,0x2290,0x2400,0,4,1952,-596,4963,4367,50398,0,15,0,0,1,223,931,SUCCESS
    

  • Hello,

    I attached another gg.csv, "210902_YEC+SGMO.gg.csv".
    This parameter suit my board.
    If I write this, the voltage which the gauge estimate is about 7906 mV.
    This is a probable voltage in my board.

    I can also write parameters when this parameters are written.

     210902_YEC+SGMO.gg.csv

  • Hello,

    Thank you for providing the file.

    Please check Pack configurations and Voltage divider parameter values in Data Memory.

    Do not seal the pack that shows high voltage. otherwise you will brick it. The keys in it are corrupted and you will need to fix it first.

  • Hello,

    I checked Pack configurations and Voltage divider.
    I think Pack configurations parameter is no problem because this parameter in 211012_DataMemory.gg is equal to in 210902_YEC+SGMO.gg.
    And surely Voltage divider in 211012_DataMemory.gg is different from 210902_YEC+SGMO.gg.
    If this parameter causes my problem, I need writing this. But I cannot write this. So would I be able to resolve my problem?
    Is there a way to get the gauge's parameters initialized forcibly or another way?

    And does "The keys" you said mean Authen Key1 to Key3?

    CheckParameter_211014.xlsx

  • Hello,

    You will need to set the BAT pin voltage forcibly such that bq34z100 reports voltage greater than the threshold to write data flash.

    Refer this document for details https://www.tij.co.jp/jp/lit/an/slua760/slua760.pdf

    I was referring to unseal keys.