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: After IT_ENABLE() I cannot write to data flash

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

Hi

I am using bqStudio V1.3.86 with EV2400 V0.28 and bq34z100EVM which has been programmed with bq34z100_G1_v0_16_build_17.srec file downloaded from bq34z100-g1 product page.

After IT_ENABLE() (Qen flag set) I can no longer write to data flash.  I don't understand the point of sealed and unsealed access if once Qen is set there is no write access to data flash.  This is very frustrating and incredibly stupid as Qen must be set for the core functionality of the chip, but in doing so the application cannot modify the flash, such as how the LED, or ALERT are configured. There a a million reasons why the application MCU might want/need to access and modify the data flash. Why disable the access once Qen is set?

I read in a response to a similar thread from a person with the same complaint that data flash can still be written after Qen is set. I, however, cannot. Is this a bug in the srec firmware I am using? Or is it really meant to be this way?

Thanks

  • I have checked a new bq34z100-g1 evm I just received recently and not seen this issue.

    Can you tell me the easist way to duplicate this issue? 

    Andy

  • Hi Andy,

    This post says " Note that once you seal the gauge you can never go permanently go back to an unsealed stated. If you unseal, sending the reset or IT enable command will seal the gauge again." https://e2e.ti.com/support/power-management/f/196/t/635177 

    I have never clicked "SEALED" in the commands menu, and my FAS and SS bits are clear. I suspect there is a bug in the srec firmware I am using. When I first got my EVM, I downloaded and installed bqStudio 1.3.86, then I updated the EV2400 firmware to 0.28. After adjusting values in data flash to reflect my application I clicked IT_ENABLE() to attempt a learning cycle. Immediately after I realized some more adjustments to data flash were necessary but I was no longer able to do so. Through a Google search I found an E2E thread (unfortunately I cannot find it again) of the same problem where it was resolved by programming a new srec file. So I went to the bq34z100-G1 product page and downloaded bq34z100_G1_v0_16_build_17.srec. This didn't help and the problem persists. 

    I suspect that the problem will be with an incorrect value in one of the data flash parameters or that there is a bug in the firmware.

    Try to program your EVM with my srec file. First, export an image of what is currently working on your EVM, otherwise you will loose it once you program mine.

    Regards

    Matt.

    0100_0_16-bq34z100G1_23-01.zip

  • Hi again Andy.

    I have found the problem. By changing the Flash Update OK Cell Volt from default value 2800 to 1000, I am now able to write to data flash after IT_ENABLE().

    I found the answer here in this thread https://e2e.ti.com/support/power-management/f/196/t/696046

    I am very angry (not at you personally) that this has unnecessarily wasted weeks of my time. Section 8.2.2.1.3 of the data sheet says to calculate:  Flash Update OK Cell Volt = 2800 x Number of Series Cells x 5000/Voltage divider. This is wrong, and utter rubbish. 

    Even more frustrating, in my original post I clearly explained how I was calculating this parameter and no one picked up that it was wrong.

    It is pathetic that I had to troll through hundreds of posts on E2E to get the correct information on how to configure this chip. That information should be clearly and correctly presented in the data sheet. I have never come across a data sheet so lacking. The person responsible should be sacked.

    Despite my experience, and similarly of countless others, no one is going to amend the data sheet. Are you, Andy, going to request that the data sheet be corrected?

    Seething!