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.

BQ20Z655-R1: Programming in mass production

Part Number: BQ20Z655-R1
Other Parts Discussed in Thread: BQ78350, BQMTESTER, BQ40Z50

Hello,

We would like to integrate bq20z655 in our own SW Tool for programming bq in mass production. The tool already works fine for different bqs with .fs files for programming. For bq78350 we got some additional information so that we can interpret a srec. file and convert this to a .fs file

I have learned that we should use a .rom file for programming in production. Is it possible to create a .fs file for bq20z655 with a TI software tool or can we get some additional information how to program a. rom file?

Thanks in advance

Stephanie

  • Hello Stephanie,

    TI sottware does not support creation of .fs file for bq20z655

  • Hello Stephanie,

    The .rom file is a simple binary image. Have you read this document for .rom file programming?

  • Hello Shirish,

    Thanks for your reply. I will have a closer look to that document. 

    Am I right, that there is no TI Software available for programming in mass production which runs on Windows 10?

    Best regards

    Stephanie

  • Hello Stephanie,

    Take a look at BQMTESTER tool.

  • Hello Shirish,

    Thanks for your reply. But this tool only is compatible with Windows XP and Windows 2000. Is there a newer Version available?

    We have chosen bq20z655 because we need a bq which has an integrated LED/LCD driver.

    Is there a newer product with this feature?

    Best regards

    Stephanie

  • Hello Stephanie,

    The tool was "designed" for Windows XP and Windows 2000 and there is no newer version available. I recently used bqMTester with MKST-3P-ALT-EV2300 on Windows 10 successfully.

    I will check on whether there are newer products that have integrated LED/LCD driver.

  • Hello Stephanie,

    bq40z50 is a newer product with LED support. bq20z655 is the newest product with LCD driver.

  • Hello Shirish,

    I had a closer look to that document (especially Chapter 4 Writing the Data Flash Image to Each Target Device). But there are still some open Questions:

    1) The data flash size in this example is set to 1792 (0x700) byte. But the length of the .dfi file which was generated before with TI software is 2078 byte. Is there something additional in the .dfi file than the content of the DF or is the DF of bq20z655R1 bigger than in the given example?

    2) I know from other bqs that there is a procedure to check whether the DF was written correctly or not. In this example the DF is erased and written without any verifications. Could you please tell me how we can implement such a verification?

    3) Is there a document available with all boot-Rom Routines for bq20zxx family?

    4) I have read that the difference between a dfi fille and a rom file is only a header in rom file with some information about the device type and the firmware version. It would be very helpful if you could give us some more detailed information about the content of the dfi file and the rom file.

    Best regards

    Stephanie

  • Hello Stephanie,

    1. The length of the .dfi and .rom files can be longer than the actual data length.

    2. On most gauges there is a data flash checksum parameter that is available. You can refer the TRM for information about the applicable commands

    3. Unfortunately, ROM details are not published

    4. .dfi files have no header. This file can be exported by bq Evaluation software. It is a binary image of data flash.

    .rom files are for use by bqMTester. If you do not use bqMTester, then I recommend using .dfi files

    Please click on the "Resolved" button if you think all questions have been answered

  • Hello Shirish,

    Thanks for your fast response. I’m sorry but this answers not my questions. So, I try to formulate the questions more precisely.

    To 1) size of DF

    • Is the data flash size of bq20z655R1 1792 (0x700) byte?
    • Why is the number of rows of DF in chapter 3 “Reading and Saving the Data Flash Image From the Golden Pack” set to 56 rows (0x700 / 32) and in chapter 4 “Writing the Data Flash Image to Each Target Device” set to 54 rows (0x6C0 / 32, I think the C is missing in the example)? I don’t understand why the number of rows is set to 54 and not to 56.

    To 2) Verifying writing procedure

    In the TRM there only is a checksum of the complete DF. Before, with bq78350 for example, we set the bq to rom mode, erase the DF, write the DF, calculate and read back the checksum of each row of DF and then execute gas gauge program. So what we need is

    • the command in Rom Mode to read the checksum of each row of DF.
    • the algorithm to calculate the checksum for 20z655.
    • For bq78350 your colleagues advise me SLUU225 for more details about rom commands. Is there something similar for bq20z655 or are the boot Rom routines the same and I can use SLUU225 as a basis?

    Best regards

    Stephanie

  • Hello Stephanie,

    1) Size of DF is 0x800 but only 0x700 bytes are allowed to be written. Some firmware may not use the entire area and therefore you may see documentation that shows a smaller number. This is normal.

    2) TI recommends using the published documentation(TRM). I did a quick search and did not find SLUU225 published on any product page.

  • Hello Shirish,

    I didn’t find any information about

    • the command in Rom Mode to read the checksum of each row of DF
    • the algorithm to calculate the checksum for 20z655

    in the TRM. That’s why I asked these questions in the forum. The title of SLUU25 is “bq803xx ROM API v 3.0 User's Guide” published in October 2005.

    Best regards

    Stephanie

  • Hello Stephanie,

    As far as i know, ROM information is for internal use only. Where did you find SLUU25?

  • Hello Shirish,

    there are some links in the forum to this document. But it is no more available. So, one of your colleagues sent it to me last year when I was working on programming b q78350.

    So, my question again: Can I use the ROM commands described in SLUU225 for bq20z655, too?

    Best regards

    Stephanie

  • Hello Stephanie,

    The ROM is different from SLUU225