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: Error 1470 When Trying to Program Chemistry Using BQ34Z100 Eval Board

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

Hello,

I'm trying to get this eval board working to evaluate this fuel gauge for our purposes.

I can communicate to the eval board using bqStudio and can read data out.  I have a 4S lithium ion battery connected across BAT+/- with the GND of the battery also connected to PACK-.

I have clicked on the UNSEAL_FULL_ACCESS command button and I believe that worked.  Both FAS and SS bits are green (LOW) in the control status register (see copied image below).

On the chemistry tab, I select ID 1630 (Lion-Polymer 4.4V) but when I try to program the chemistry by clicking the button at the bottom I get error 1470.

What is going on?

  • And here is the image, it showed it when I just pasted it in, but didn't keep it in the post...

  • I also notice that when I try to write the number of cells in series in the data flash tab, I get the error in red on the bottom status line, "A read of data written failed comparison".  So maybe that is indicative of a lower-level problem.

  • And I just updated the EV2400 to the latest firmware listed on its product page.  So that doesn't seem to be the problem as the error still occurs.

  • Hello James,

    In the test version of BQStudio some of the errors are resolved, I would try downloading the newer version to see if you still get these errors.

    Sincerely,

    Wyatt Keller

  • Hello Wyatt,

    I was trying to avoid this sort of "is it plugged in" type of first responses to save time and aggravation.  What gives you the idea that I'm running the "test" version?

    You can see from the image I posted that I'm already using bqStudio version 1.3.86.  According to the link you posted, that is the latest version to download.  Is that not the correct version?

    I also downloaded the latest chemistry files, now at version 823 as reported on the chemistry tab.

    James.

  • More info...

    From the Data Memory tab, I clicked on Import -> Import Defaults and then clicked on "Write_All".  After a short delay I got an error in red at the bottom of the screen, "Parameter not written. Class name Calibration, Subclass name Data, Parameter name CC Delta was written to data memory. A readback verification of this parameter failed."

    So it looks like the issue is that I can't write to flash at all.  I've seen other places where this can happen due to the "Flash Update OK Cell Volt" setting.  But I can't seem to write any flash values to change it.  I see that value is set to 2800mV and the GUI is reporting a voltage of 681mV, so maybe that is the problem.  But how do I fix it if I can't write the registers necessary to adjust the chip configuration?

    James.

  • Hello James,

    I apologize I think there was some miscommunication, I meant you should download the test version, it is newer than the version you had in the screenshot and it has bug fixes in it.

    Here's the one to download:

    flash update ok voltage could prevent you from writing, you would need to make sure the voltage is higher than the default during your gauge setup.

    Sincerely,

    Wyatt Keller

  • OK, I have installed bqStudio 1.3.101 and I can see the chip status. However, the behviour is the same.  When I try to write number of cells to 4 I get the error "A read of data written failed comparison" in red on the bottom status line.

    Is there a way to reset the chip to its factory defaults?

    James.

  • On eval board I have the following jumpers installed:

    J2 :  Across 16V

    J3:  None

    J5:  Across the two pairs of pins labelled >5V

    J5:  Across EXT

    J1:  Installed

    And I have pack- connected to the battery - terminal through a separate wire.  Input battery is 4S LiPo with a voltage about 15.20V.  That is also connected to an electronic load, which is set to no load right now.

    I see that the battery voltage is being read as 679mV and the Flash Update OK Cell Voltage is 2800mV.  So that maybe is the problem.

    So I removed the battery and connected a power supply, with output set to 3.0V, set the J5 jumpers across the other two pairs labelled <=5V.

    Now the voltage reads 2994mV.  And now I can write the number of cells in series setting.

    So this appears to be the problem.  Now i have to figure out how to configure for 4S LIPO.

  • I think I spoke too soon.  I was able to write the number of cells in series to 4.  But now I can't set it back to 1.  So it looks like there is still a problem somewhere.

  • Hello James,

    Can you send your .gg file? All the configuration information is in the quickstart guide and the EVM guide.

    After configuring the gauge for 4S operation you should send a reset command. By checking your .gg file we can make sure your settings are appropriate for your application. 

    EVM guide: www.ti.com/.../sluu904a.pdf

    Sincerely,

    Wyatt Keller

  • OK, how do I go about configuring the gauge for 4S operation?  I've read through that manual and I guess I'm missing something.  I can't write any of the data memory.

    From the data memory tab of bqStudio, I choose Import->Defaults, then Write All.  That fails with a message in red in the status bar at the bottom in red.  Basically, it's saying it can't write flash, just like when I try to write individual bits in the data memory cells.

    I don't know how the .gg file configures things, but isn't that just going to write data to memory cells?  If I can't write to flash, how is that going to help?

    So how do I get the system back to a state where I can actually configure for 4S?

  • Hello James,

    It is weird that the gauge is not reading the correct voltages. From your previous posts you connected a bench supply and were able to program it for 4S, when you set it for 4S the gauge divides the voltage in the firmware so it goes below the value to program flash again.

    Is the gauge working now that it is set for 4S and reconfiguring the jumpers for 4S while using your desired battery?

    Section 3.4 in the TRM discusses the other parameters that need changed as well for high cell counts like VOLTSEL and the voltage divider ratio.

    TRM: www.ti.com/.../sluubw5.pdf

    Sincerely,

    Wyatt Keller

  • OK, so I have the eval board back to reading 3V properly with the low voltage setting.  What do I have to change, and in what order, to be able to use with 4S LIPO (~12-16.8V).

    Every time I try something I get into a state where I can't write flash.

  • Hello James,

    You are able to write to flash now and the gauge is stable?

    Then following these steps it prevents you from writing to flash?

    • Set the Number of Series Cells parameter field to the appropriate value

    • Set the VOLTSEL bit in the Pack Cfg A register

    • Reset the gauge using the RESET button on the Commands panel

    • Calibrate the stack voltage. Reference the Calibration Screen section

    Sincerely,

    Wyatt Keller

  • Thanks Wyatt,

    I was able to set the number of series cells (4) and set the VOLSEL bit in the Pac CfgA register.  And then I sent the reset command.  That all seemed to work.  But even after that, the voltage was being reported a the same voltage (~3.1V) on my power supply.

    To increase the voltage to the 4S levels, I powered down the board, moved the 2 jumpers on J5 to the >5V position, and the turned the power supply back on.

    Initially, bqStudio wouldn't connect.  I increased the voltage to 12V and then it did.  But now it reads the voltage as 544mV.

    I doubt I can write flash now as that is below the minimum value required to write flash.  So the calibration process won't work.

    What did I do wrong?

  • Hello James,

    The gauge may have been damaged by ESD causing some kind of error when reading voltage, if all the steps are followed the voltage should not read so low.

    Can you test with a different EVM? I just followed the same procedure and it worked with mine, the voltage readout is the stack voltage / 4.

    I used the same jumper config, set the number of series cells to 4, and made sure VOLTSEL was set.

    Sincerely,

    Wyatt Keller

  • Hi Wyatt,

    I ordered a new EVM from Digikey, and I do get past the issue I was having.  So there was something damaged on the original EVM.

    However, now, even though I have the number of cells set to 4 and the VOLSEL bit set in CFGA pack register, the cell voltage still reads 3108mV, even though 12V is applied.  I have the J5 jumpers in the >5V position.

    What else could be wrong?

    James.

  • I should mention, I enabled the calibration process and it seemed to complete properly.  The first time I did it, I only checked the CC offset and Board Offset options.  The 2nd time I selected the Voltage option as well, and set the applied voltage to 11980mV.  But it still reports cell voltage of 3108mV.

  • So I think I finally got it going.  I must have mistakenly not been clicking on the enable to calibrate the voltage earlier.  It is working now and displaying the correct voltage and current draw.  So I think I've finally good to actually test the device.

    Thanks for the help Wyatt.