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: Problems with Initial Configuration of a fresh fuel gauge...Data Memory changes not being implemented

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

Using a bq34z100-G1 fuel gauge, having all sorts of issues....any commands using Data Memory screen on bqStudio are ignored. What works: it does report a battery voltage, and if the battery voltage is changing, it registers that.  When trying to disable external temperature sense, it ignores the command in Data Memory screen.  Also, when a command is issued to change from default values such as number of cells from 1 to 4, that command is ignored. When a change is made to voltage divider value, it is also ignored.

I2C bus looks fine SCL and SDA...pull-ups etc.  

There is something fundamental I am missing. What else one has to do to get a fresh bq34z100-G1 to work?

Reading the literature, datasheet, app notes...all points to going to Data Memory Screen, make changes and it should be configured away from default settings.

Any help would be greatly appreciated.

  • Hi Dalip,

    Writes to dataflash can be prevented by the Flash Update OK Cell Volt parameter. During development, please reduce this value and ensure that the voltage to the device does not drop below 2.7 V.

    Do not set the series value until the device is properly configured and calibrated.



    Please follow the steps in this quickstart guide:

    www.ti.com/.../sluubv2

    Click on the programming tab and reprogram the device.

    With the new firmware loaded, reduce the Flash Update OK Cell Volt to 1000 or less.

    Sincerely,
    Bryan Kahler
  • Fuel gauge images.docxHi Bryan,

    My problem is Data Memory is not taking any values I am inputting. It is being ignored. I cannot change any default settings. Like you said, change the "Flash Update OK Cell Volt" to 1000 or less. Well, it lets me type in the new value. No problem there but once I select "Write_all", it reverts back to previous default value.

    I am able to generate Golden File from the Fuel Gauge... well what ever the default settings are.  That tells me I2C bus is fine.

    Also, when I try to load a known good Golden File from an EVAL board to my fresh Fuel Gauge device, the bqStudio complains "Lost communications from the Adapter". I am powering BQ34Z100 from 3.3V.

    I am stumped by this behavior.

    thanks.

    Dalip.

  • TI thinks it is resolved but it is not!
  • Hi Dalip,

    Thank you for sending the screenshot. Please follow the steps in the quickstart guide to update bqStudio to the latest version. The latest version can be found by visiting: www.ti.com/.../bqstudio and clicking on the 'bqstudiotest' button.

    The Data memory is not taking any values input because writes to dataflash can be prevented by the Flash Update OK Cell Volt parameter. During development, please reduce Flash Update OK Cell Volt parameter value and ensure that the voltage to the device does not drop below 2.7 V. As seen in your screenshot, the gauge is reporting 384 mV. This voltage is too low and Flash writes are being prevented as a result.

    Do not set the series value until the device is properly configured and calibrated.

    To recover the device, reprogram the device with the default firmware. This SREC file may be found here: www.ti.com/.../sluc580

    After installing the firmware, click on the programming tab and program the device with the SREC provided.

    Sincerely,
    Bryan Kahler
  • Hi Bryan,
    Thanks for the post. I am further ahead than before.
    1. My prototype did not have a bypass cap on REG25 to Vss. This resolved comm issues.
    2. I had been unable to write and change Data Memory parameters. Well, that I figured out accidently. Previously,

    I would make a change to for example Voltage divider parameter and click on "Write_All" radio button. This
    would not change the parameter. Well, you basically have to hover your mouse to "Unit" field and click the
    mouse.
    THAT made the parameter change. This "feature" is not advertised anywhere.

    So I would say the above were kind of self-inflicted "issues".

    I have a 16.5K/20K resistor divider, (my battery max voltage being 19 volts) . I came up with 19890 for voltage divider parameter. With that in place, I read on FG voltage values that are off by 1.44 volts.

    I can fudge the voltage divider to be 22350 and get the FG to report the correct voltage.

    But is there a write up about getting this value correct? Which Data Memory parameter come into play? What would cause this offset on FG measured voltage?

    What do I need to focus on as far as Data Memory parameters are concerned?

    Thanks for your help.
    Dalip.
    PS: My reply is long but I don't have a flip phone.
  • 20K/422K resistor divider. I bad.
  • Hi Dalip,

    The ultimate value of 'voltage divider' will shift after calibration because a separate 'voltage offset' is not utilized in this device.

    Please perform calibration in this order:

    1. CC Offset and Board Offset
    2. Voltage Calibration training.ti.com/bq34z100-g1-voltage-calibration
    3. Current Calibration training.ti.com/bq34z100-g1-current-calibration

    The videos above should describe the parameters of concern. Please let me know if this resolves your issue.

    Sincerely,
    Bryan Kahler
  • Bryan,

    Thanks for the information.

    But I am not sure how to go about getting CC Offset and Board Offset correct?

    As far as steps 2 and 3, I can set current calibration with no errors but when I enter the measured voltage (13.10V) from my battery terminals, it complains about the voltage being out of range.

    I tried a very low voltage also but the error message is pretty consistent.

    Questions:

    1. How does one go about setting CC Offset and Board Offset correctly?

    2. Why the Bqstudio complains about  voltage being inputted out of range?

    I have attached a screen shot.

    thanks.

    Dalip.

  •  

     

    When I enter the battery voltage I measure, it complains about it being out of range. This has been very consistently happening. I tried to change the value to something really low but it always reports voltage as being out of range. What can be causing this?

  • I am good with CC Offset and Board Offset calibration. In fact, that calibration is good. It is when I go to Voltage calibration is where the error shows up.

    "Calibration - Calibration cell voltage entered is out of range. This value is in millivolts. Please check value and retry."

    This is my main issue. In the attached schematic, the BAT_TMP + and - are not being used. Those resistors are not installed. Instead, the other two resistors are installed to connect to I2C signals (Clock and DATA).
  • Hi Bryan,
    I was looking through Q & As , and I found someone else had a similar issue...Calibration voltage out of range...Your reply was use v.84 as previous v.54 which had a known issue.

    That was it!
    Thanks for your help.
    Dalip.