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: IT ENABLE prevents updating data flash

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

Hi, I am playing with bq34z100EVM board using bqstudio 1.3.86 and EV2400 0.28. 

I was trying to do a learning cycle for PbA Yasua NP712FR. 12V 7AH acid glass matt.  After doing my best to set the appropriate values in data flash I clicked the IT-ENABLE ready to try for a learning cycle.

Since clicking IT-enable I have been unable to change any of the data flash parameters For instance, I mistakenly left TEMPS checked in Pack Configuration. Now if I uncheck it and click "write to data memory" a red dialog appears in the bottom left corner saying "A read of data written failed comparison".

I also mistakenly left FC SET % at 100 when I should have changed it to -1, my value in Qmax Cell 0 was grossly underestimated and when I tried to charge my battery from flat FC became checked well before the charge was terminated.

I now can't change any of these parameters. To coin a phrase from someone else who posted with exactly the same problem "I'm hosed".

https://e2e.ti.com/support/power-management/f/196/t/706519?tisearch=e2e-sitesearch&keymatch=BQ34z100-G1%2525252525252520%2525252525252520return%2525252525252520to%2525252525252520factory%2525252525252520defaults

I don't think my problem lies with the Flash Update OK Volts. After calibrating the voltage the Voltage Divider value in Calibration updated to 19218. This seemed high to me as I had entered 16000 (16V jumper on EVM), but who am I to argue.  I have Cell Terminate Voltage set to 1800,  6x1800 = 10800 which still leaves plenty of reserve, so I used this to calculate  Flash Update OK Cell Volt as follows: 1800*6*5000/19218 = 2810.  This is so close to the default that I just left it at 2800.

Further more SLUA664 says that "if a charging condition is detected, then this register is ignored". Even when charging I cannot update any of the data flash, so I don't think my problem lies with the Flash Update OK Cell Volt register. But I eagerly stand to be corrected. 

I clicked UNSEAL in Commands even though I had never sealed it in the first place; to no avail. Like wise UNSEAL FULL ACCESS didn't help.

If you cannot tell me how to resolve my problem, how can I restore my EVM to default factory settings and begin again from scratch?

Thanks

  • Hi, Me again.

    I reprogrammed my EVM module with the bq34z100_G1_v0_16_build_17.srec file that I downloaded from the devices product page bq34z100-G1 Device Firmware  (ZIP 4170 KB )    25 Feb 2015 

    I have updated all the data flash, which is great, but now I can't calibrate the voltage.

    I have VOLSEL and CalEn selected in Pack Config

    Number of Series Cells  set to 6

    I have entered 16000 in Voltage Divider

    When trying to calibrate voltage:

    Gauge says 10800 mV, in Applied Voltage I enter 12965, I check the Calibrate Voltage box, and then click the Calibrate Gas Gauge button.

    Which results in a cross by the button and a message in red at bottom left of screen: Calibration - calibration cell voltage entered out of range. This value is in millivolts. Please check value and retry.

    Its enough to make you weep!

  • Can I get your gg or srec file?  I will take a look.

  • Hi Andy

    I reinstalled bqStudio and that fixed it. Now I can calibrate voltage again.

    It appears that running the bq34z100G1FirmwareBundle-0.16-windows-installer pooched bqStudio.

    This is clearly an on going issue. There are a million posts by people having the same problem... going back years.

  • Hi Andy.

    I still haven't got anywhere with the learning cycle.

    I am using a 12V 7AH lead acid glass matt, not the same brand as Yashua, but identical in specs.

    Can you take a look at the attache .srec and .gg auto exported files.

    The battery was near empty when I began logging. I enabled IT, reset, then discharges to terminal voltage. Rested for more than 5 hours, Qmax DOD0 was taken before I began charging. When taper current went below threshold of 200mA FC flag was set and I stopped charging. I waited for 6 hours or more but Qmax was never taken. Update Status still 04.

    Can you see anything obviously wrong?

    Thanks

    MattfirstDischargeGG.zip

  • Hello Matt,

    Make sure to set gauge_enable as well.

  • Hi Kang

    I cannot find any command or register called gauge_enable. Do you mean IT_ENABLE? 

  • Hello Matthew,

    Please follow the learning cycle app note. You need to run this for at least 3 cycles.

    One for Qmax, one for Ra and final one for accuracy.

    You discharge needs to be a constant current or power load.

  • Hi Kang

    The log files I attached earlier were of the initial step in the procedure as described in the app note.

    The IC was programmed, calibrated, IT_ENABLE() then RESET(), battery discharged to terminate voltage, rested, QmaxDod0 was taken (FLAGS OCVTAKEN, VOK, and QFN all set), charged to taper current FC set, rested but QmaxDOD0 is never taken and Qmax is never updated, update Status remains 04.

    There is no point continuing with the learning cycle,, ie doing another discharge as Qmax is not set.  As you have pointed out, Qmax needs to be taken before Ra can be updated.

    My problem is that Qmax is never calculated after charging has finished.  Can you please review my files to see if anything obvious is not in order.

    Thank you

  • Hello Matthew,

    We need your actual files, otherwise, there can be no analysis. Can you attach the full log file where you ran the three cycles?

  • Hi Kang.

    I've got a bit of a problem in that I don't trust any advice given about this IC on this forum because there is so much contradictory advice.  I'm fairly certain that none of you actually know how to use this chip. I expect that you have had no practical experience with it and are just relating what you intemperate the data sheet to mean.  If you aren't an expert and are just going to to tell me what you think the data sheet is saying I will ask you to pass my case to someone who has actually had real hands on experience using this chip with lead acid batteries.

    Having said that, and I mean no offence by it, can you tell me: should I be following the learning procedure in the https://www.ti.com/lit/ds/symlink/bq34z110.pdf datasheet, or the procedure in the http://www.ti.com/lit/ds/symlink/bq34z100-g1.pdf data sheet. Because I have read contradictory advice, some saying one and others the opposite.

    Can you please clarify what the parameter Cell Terminate Voltage is and how it relates to the learning cycle.  The learning cycle procedure in the bq34z100-G1 data sheet says that this is the voltage under load that you should discharge to, where as the bq34z100 data sheet says this is the open circuit voltage of a fully discharged battery, and should be close to the voltage that the Pba battery springs back to when at rest. Two very different things wouldn't you agree?

    Right now I'm discharging at C/10 down to 10.2V and it springs back to around 11.4V at rest.  The Yashua NP712FR data sheet says that at C/10 the absolute minimum you should discharge to is 1.75V per cell, beyond this damage occurs to the battery. As it is I am discharging beyond this down to 1.7V per cell just to get the resting voltage a little lower because the bq34z100 data sheet says to do this.

    What should I be setting Cell Terminate Voltage to and why?

    Thanks you kindly

    Regards

    Matt

  • Hello Matt,

    Cell Terminate Voltage is the setting for when the gauge reaches 0% RSOC or we will force a jump.

    It does not relate to the learning cycle. The learning cycle requirement is to go at least 90% of your design capacity in Qpass and have two qualified DOD measurements to get a Qmax update. You will need to be above C/10 discharge rate.

    You will also need to have a second discharge so the Ra tables get updated.

  • Hi Kang

    My problem persists.  When resting DOD0 is never taken. 

    Folder "Step 1 charge" contains log file and .gg exports of charging the battery from flat. The battery had been discharged, rested, Qen set, charged untill taper current met, rested, but DOD0 was never taken at rest.  DOD0 is taken at end of charge, but is never taken while resting, Qmax DOD0 was never reset.

    Folder "Step 2 discharge"is discharging from where the lat files left off.  When the battery discharges to Cell Terminate Voltage the battery is left to rest, but again DOD0 is never updated.

    I reset the IC at this stage before charging the battery again with RUP_DIS set, just to see if this made any difference. See "charge after reset" folder. Again DOD0 was never taken while resting. I waited thirty six hours resting this time, with a DvDt of approx 500nV/S.

    When resting dV/dT is well below 1uV/S, the current is 0, below Dsg Current Threshold, Chg Current Threshold, and Quit Current, and the IC is in Sleep mode.

    Can you see any condition or setting that is preventing DOD0 from being taken while at rest? If not, I suspect there is a problem with the firmware. 

    DOD0 never taken.zip

  • Hello Matthew,

    What battery type are you using? It will take up to 48 hours in some cases for OCV to be taken even if dv/dt is reached.

  • Hi Kang,

    I am using a 12V 7AH AGM PbA. Why would it have to wait 48 hours if the dV/dt condition is met?  The chip would be useless if every time the battery was charged the gas gauge needed 48 hours at rest before calculating Qmax. Most applications will not afford 48 hours at rest and I don't know any client who would wait 48 hours for an estimation of charge. Fair suck of the sav, waiting 48 hours means something is not working properly.

    I have spent several weeks now trying to get this chip to work.  I don't feel like this line of support is going anywhere. Can you please direct my case to someone who is more able to give me the support I need.

    Kind regards

    Matt

  • I will close this thread since a new thread has been created.