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.

BQ20z65-R1 Data Flash Write Problem

Other Parts Discussed in Thread: BQ20Z65-R1, BQ20Z90

HI,

I am trying to write to the data flash on a new battery design using the BQ20z65-R1 v1.05, but the aval software does not seem to be able to update the data flash.  When I write to any of the registers they just turn red and revert to their original value.  The SMBus communication works with all the SBS registers being read correctly.

I tried using bqChem and when that tries to write to the BQ20z65-R1 in order to update the chemistry, I get the following error: Writing Chemical Data, bqChemOCX - Fail read Verify, Abourt SubClass83 programming.

I can write to ManufacturerAccess, e.g. turn on the LEDs.

Flags/Status register summary:

BatteryStatus = TCA, TDA, INIT, DSG

OperationStatus = PRES, DSG, R_DIS

Do you know why I cannot write to the data flash?

Many thanks

Steve

  • Here are the reason why you wouldn't be able to update to data flash.

    1)  First, make sure the gauge is not in shutdown or sleep and SMBus communication is working.


    2) If the device is sealed, reading and writing to flash is forbidden.  Device must be unsealed first. If the SS or FAS bits in Operation Status, then the device is sealed.

    3) Make sure there are no Permanent Failures.  A PF prevents data flash writes.  Data flash reads are still allowed.

    4) Check the battery voltage.  If it is lower than the Flash Update OK Voltage (located in Power class of data flash), then data flash writes are locked. Apply a charger voltage above the Flash Update OK Voltage to allow changing of this parameter to a lower voltage.

  • Hi

    Thanks for your reply.  Answers to your comments are below.

    Chase said:

    1)  First, make sure the gauge is not in shutdown or sleep and SMBus communication is working.   SMBUS Communication is working.


    2) If the device is sealed, reading and writing to flash is forbidden.  Device must be unsealed first. If the SS or FAS bits in Operation Status, then the device is sealed.  SS and FAS are clear, it is a new device on a new PCB.

    3) Make sure there are no Permanent Failures.  A PF prevents data flash writes.  Data flash reads are still allowed.  The RSVD bit in PF status is set, all other bits are clear and PF in safety alert is clear

    4) Check the battery voltage.  If it is lower than the Flash Update OK Voltage (located in Power class of data flash), then data flash writes are locked. Apply a charger voltage above the Flash Update OK Voltage to allow changing of this parameter to a lower voltage.  The battery voltage is reported as 11419mV, the Flash Update OK Voltage is 7500mV.  It makes no difference if I apply a 16.8V charge voltage (it is a 4S core pack I have connected).

    Below is a screen shot from the EVM software.

    Below is a screen shot showing what happens when I try to write to the DF:

    Many thanks for your help.

    Steve

     

  • The RSVD bit that is set is what is causing your problems. Reset the gauge (send 0x0041 to command 0x00) and this will clear the RSVD but, thus allowing you to write to flash.

  • I've seen the above 'RSVD" pf status bit frequently on the BQ20Z90, what cause this bit to be set?

  • Not sure what causes it to be set, but I found out how to clear it!

    The PFKey needs to be written to Manufacturer Access, see Permanent Fail Clear(PFKey) in the Tech Ref Manual.

    Cheers

    Steve

  • I don't have PF bit set. But still I can't change the data flash. I tried to write to SUV time to be 0 to disable SUV. But I can't write the flash. It does not change value. If happed before that I need write many times to change one value to make it happen.

  • Check to make sure your device isn't sealed.Can you send a screen shot of your sbs screen.

    thanks

    Onyx

  •  

    It is not sealed. I can read out the data flash. Please see the screen shots.

     

    Thank you very much.

  • Is it just that parameter which you can't change. Try changing the paramaters on the gg file and then loading it on the gas gauge.

     

    thanks

    Onyx

  • Onyx,

         Thanks. I modified the parameter in the .gg file and import it and use " write all" to update data flash. But some items becomes red colored.

         I use the Bqeasy to generate .DFI file and somehow, when I try to write .dfi file to another chip, the software pop out warning saying that " bad dfi file".

     

     Please help.

    Thank you very much in advance.

     

    Kelly

  • the parameters that become red indicate those whose values were changed from what was previously on the IC before you loaded your gg file. Try using a .senc file instead of a dfi extracted from the modified IC and then write on another IC.

    thanks

    Onyx

  • I extracted .senc file. A new chip is put in ROM mode and then I load the .senc file into flash memory. This operation damaged several chips. It results in popping out an error and can't reach the chip through SMBus any more. Chg fet is open while DSG fet is off. What causes this problem and how to rescue the board.

     

    Thx.

  • Hi Kelly,

    There is probably something in your settings that causes the senc file to behave this way. I do not know what exactly. We have gotten such reports in times past with other chips. I would recommend programming with the default .senc file and simply importing your gg files.I have attached the default senc file for this part.

    0268.bq20z65_r1_0105_bld_3.zip

    thanks

    Onyx

  • This bit it is "RESERVED"! It doesn't have any affect on system at all!