• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Power Management » Battery Management » Battery Management - Gas Gauge Forum » BQ20z65-R1 Data Flash Write Problem
Share
Battery Management
  • Forums
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

BQ20z65-R1 Data Flash Write Problem

BQ20z65-R1 Data Flash Write Problem

This question is answered
BicycleRepairMan
Posted by BicycleRepairMan
on Mar 17 2011 06:25 AM
Prodigy180 points

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

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Chase7071949597
    Posted by Chase7071949597
    on Mar 17 2011 14:14 PM
    Expert6520 points

    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.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • BicycleRepairMan
    Posted by BicycleRepairMan
    on Mar 18 2011 06:34 AM
    Prodigy180 points

    Hi

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

    Chase

    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

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Chase7071949597
    Posted by Chase7071949597
    on Mar 18 2011 12:58 PM
    Expert6520 points

    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.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • zepman
    Posted by zepman
    on Apr 28 2011 14:04 PM
    Prodigy200 points

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

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • BicycleRepairMan
    Posted by BicycleRepairMan
    on Jul 05 2011 11:03 AM
    Verified Answer
    Verified by BicycleRepairMan
    Prodigy180 points

    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

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use