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 flash write error after setting VOLTSEL bit

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

Hello,

After I set the VOLTSEL bit and the number of cells to 12 I am not able to write any other settings to flash.

The bqStudio program shows the error: "a read of data written failed comparison".

However when I restore to previous settings (by reprogramming my old golden file - flash), I can change settings as normal. What does change internally in the bq34z100-g1 after setting the VOLTSEL to 1 ?

Additional info of my setup:

I'm using the bq34z100 EVM board with EV2300 I2C communication. On the board I swapped the obsolete bq34z100 IC to the newer bq34z100-g1.

My goal is to get the gauge working with 24V lead acid battery. I started simple using 1 single Liion cell, this works fine.

(For the 24V battery I did changed the jumpers to >5V on the EVM)

Thanks!

Leon

  • You should be able to set the VOLTSEL bit and change the Number of Series Cells after you reload the default srec file. You will then need to calibrate the voltage as your next step. Otherwise, the cell voltage will be less than the Flash Update OK Cell Voltage and you cannot save anything to the flash memory. The gauge should ignore the Flash Update voltage as long as the CAL_EN flag is set.

  • Thanks for your suggestions, I'm trying to perform your steps...

    However now I've got the IC stuck in in a mode where it only shows 47mV as battery voltage.

    I'm still in single Liion cell mode (using the EVM pcb), and the BAT pin measures 4V. I reprogrammed the firmware back to factory default (using default srec file).

    Do you know any way of getting the IC back to normal???

    - A reset command does show a battery voltage of 3600mV for a few seconds, then back to 47mV

    - Current measurement is fine

    - The VOLTREG bit is still 0

    Thanks a lot!

    Leon

  • Leon,
    If you measure 4V at the BAT pin on the device and the VOLTSEL=0 and the Voltage Divider calibration parameter = 5000, then the device must be damaged.
    Tom
  • Thanks Thomas,

    You were right. The divider was on 5000.

    I replaced the BQ34Z100-G1 IC with a new one and it worked as normal.

    Still with my single Liion battery attached  (dashboard shows about 4000mV) I followed your suggested steps:

    1. Changed the VOLTSEL to 1

    2. Changed the Number of Cells to 12

    Then I see the dashboard voltage jump to about 48000mV. After reset it showing 0mV.

    3. Then I changed the jumpers on the EVM to >5V and max 32V

    4. I swapped Liion battery with 24V power supply.

    5. Now the dashboard showing about 3600mV

    6. Calibrate voltage to 24000mV. And it accepts !! 

    Did I do the steps right? Or was it better to do step 3 and 4 straight from the beginning?

    I read that the bq34Z100-g1 has an internal voltage divider resistor network which gets disabled when turning VOLTSEL to 1. I hope I did not damage the input again....

    Thanks again

    Leon

  • That is the correct procedure. You can use the battery to calibrate the voltage by measuring the voltage and entering that value into the calibration screen.
  • Ok, problem is solved. Thanks