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.

  • Resolved

BQ40Z60: How to generate .srec file

Intellectual 345 points

Replies: 4

Views: 66

Part Number: BQ40Z60

I generate a .srec file and .gg file. but i find in .gg file there are many difference with my original .gg file. will they impact .srec file, such as lifetimes, Ra tables?

Gas Gauging State Cycle Count 0 2
Gas Gauging State Cell 1 Chg Voltage at EoC 3500 3529
Gas Gauging State Cell 2 Chg Voltage at EoC 3500 3535
Gas Gauging State Cell 3 Chg Voltage at EoC 3500 3538
Gas Gauging State Current at EoC 0 309
Gas Gauging State Avg I Last Run 0 -724
Gas Gauging State Avg P Last Run 0 -675
Gas Gauging State Delta Voltage 0 42
Gas Gauging State Temp k 1.99 8.57
Gas Gauging State Temp a 900 5087
Gas Gauging State Max Avg I Last Run 0 -4752
Gas Gauging State Max Avg P Last Run 0 -4333
Lifetimes Voltage Cell 1 Max Voltage 0 3545
Lifetimes Voltage Cell 2 Max Voltage 0 3541
Lifetimes Voltage Cell 3 Max Voltage 0 3542
Lifetimes Voltage Cell 1 Min Voltage 32767 2874
Lifetimes Voltage Cell 2 Min Voltage 32767 2909
Lifetimes Voltage Cell 3 Min Voltage 32767 2892
Lifetimes Voltage Max Delta Cell Voltage 0 229
Lifetimes Current Max Charge Current 0 1983
Lifetimes Current Max Discharge Current 0 -9095
Lifetimes Current Max Avg Dsg Current 0 -6391
Lifetimes Current Max Avg Dsg Power 0 -5795
Lifetimes Temperature Max Temp Cell -128 44
Lifetimes Temperature Min Temp Cell 127 6
Lifetimes Temperature Max Temp Int Sensor -128 47
Lifetimes Temperature Min Temp Int Sensor 127 4
Lifetimes Charging Events No Valid Charge Term 0 21
Lifetimes Charging Events Last Valid Charge Term 0 2
Lifetimes Gauging Events No Of Ra Updates 0 7
Lifetimes Gauging Events Last Ra Update 0 1
Lifetimes Gauging Events No Of Ra Disable 0 17
Lifetimes Gauging Events Last Ra Disable 0 2
Lifetimes Time Total Fw Runtime 0 4696
Lifetimes Time Time Spent In LT 0 236
Lifetimes Time Time Spent In STL 0 4284
Lifetimes Time Time Spent In RT 0 150
Lifetimes Time Time Spent In STH 0 20
Ra Table R_a0 Cell0 R_a flag 55 0
Ra Table R_a0 Cell0 R_a 0 49 66
Ra Table R_a0 Cell0 R_a 1 58 79
Ra Table R_a0 Cell0 R_a 2 79 102
Ra Table R_a0 Cell0 R_a 3 54 68
Ra Table R_a0 Cell0 R_a 4 61 80
Ra Table R_a0 Cell0 R_a 5 73 95
Ra Table R_a0 Cell0 R_a 6 79 102
Ra Table R_a0 Cell0 R_a 7 124 159
Ra Table R_a0 Cell0 R_a 8 145 187
Ra Table R_a0 Cell0 R_a 9 174 223
Ra Table R_a0 Cell0 R_a 10 160 206
Ra Table R_a0 Cell0 R_a 11 223 287
Ra Table R_a0 Cell0 R_a 12 273 351
Ra Table R_a0 Cell0 R_a 13 498 641
Ra Table R_a0 Cell0 R_a 14 865 1111
Ra Table R_a1 Cell1 R_a 0 49 58
Ra Table R_a1 Cell1 R_a 1 58 67
Ra Table R_a1 Cell1 R_a 2 79 86
Ra Table R_a1 Cell1 R_a 3 54 59
Ra Table R_a1 Cell1 R_a 4 61 85
Ra Table R_a1 Cell1 R_a 5 73 98
Ra Table R_a1 Cell1 R_a 6 79 105
Ra Table R_a1 Cell1 R_a 7 124 165
Ra Table R_a1 Cell1 R_a 8 145 193
Ra Table R_a1 Cell1 R_a 9 174 232
Ra Table R_a1 Cell1 R_a 10 160 214
Ra Table R_a1 Cell1 R_a 11 223 297
Ra Table R_a1 Cell1 R_a 12 273 365
Ra Table R_a1 Cell1 R_a 13 498 664
Ra Table R_a1 Cell1 R_a 14 865 1154
Ra Table R_a2 Cell2 R_a 0 49 58
Ra Table R_a2 Cell2 R_a 1 58 67
Ra Table R_a2 Cell2 R_a 2 79 87
Ra Table R_a2 Cell2 R_a 3 54 59
Ra Table R_a2 Cell2 R_a 4 61 86
Ra Table R_a2 Cell2 R_a 5 73 99
Ra Table R_a2 Cell2 R_a 6 79 108
Ra Table R_a2 Cell2 R_a 7 124 169
Ra Table R_a2 Cell2 R_a 8 145 200
Ra Table R_a2 Cell2 R_a 9 174 239
Ra Table R_a2 Cell2 R_a 10 160 220
Ra Table R_a2 Cell2 R_a 11 223 306
Ra Table R_a2 Cell2 R_a 12 273 374
Ra Table R_a2 Cell2 R_a 13 498 682
Ra Table R_a2 Cell2 R_a 14 865 1185
Ra Table R_a0x xCell0 R_a flag ffff 55
Ra Table R_a0x xCell0 R_a 0 49 66
Ra Table R_a0x xCell0 R_a 1 58 79
Ra Table R_a0x xCell0 R_a 2 79 102
Ra Table R_a0x xCell0 R_a 3 54 68
Ra Table R_a0x xCell0 R_a 4 61 98
Ra Table R_a0x xCell0 R_a 5 73 116
Ra Table R_a0x xCell0 R_a 6 79 125
Ra Table R_a0x xCell0 R_a 7 124 195
Ra Table R_a0x xCell0 R_a 8 145 229
Ra Table R_a0x xCell0 R_a 9 174 273
Ra Table R_a0x xCell0 R_a 10 160 252
Ra Table R_a0x xCell0 R_a 11 223 352
Ra Table R_a0x xCell0 R_a 12 273 430
Ra Table R_a0x xCell0 R_a 13 498 785
Ra Table R_a0x xCell0 R_a 14 865 1361
Ra Table R_a1x xCell1 R_a flag ffff 0
Ra Table R_a1x xCell1 R_a 0 49 58
Ra Table R_a1x xCell1 R_a 1 58 67
Ra Table R_a1x xCell1 R_a 2 79 86
Ra Table R_a1x xCell1 R_a 3 54 59
Ra Table R_a1x xCell1 R_a 4 61 67
Ra Table R_a1x xCell1 R_a 5 73 77
Ra Table R_a1x xCell1 R_a 6 79 83
Ra Table R_a1x xCell1 R_a 7 124 130
Ra Table R_a1x xCell1 R_a 8 145 152
Ra Table R_a1x xCell1 R_a 9 174 183
Ra Table R_a1x xCell1 R_a 10 160 169
Ra Table R_a1x xCell1 R_a 11 223 234
Ra Table R_a1x xCell1 R_a 12 273 288
Ra Table R_a1x xCell1 R_a 13 498 523
Ra Table R_a1x xCell1 R_a 14 865 910
Ra Table R_a2x xCell2 R_a flag ffff 0
Ra Table R_a2x xCell2 R_a 0 49 58
Ra Table R_a2x xCell2 R_a 1 58 67
Ra Table R_a2x xCell2 R_a 2 79 87
Ra Table R_a2x xCell2 R_a 3 54 59
Ra Table R_a2x xCell2 R_a 4 61 68
Ra Table R_a2x xCell2 R_a 5 73 78
Ra Table R_a2x xCell2 R_a 6 79 85
Ra Table R_a2x xCell2 R_a 7 124 134
Ra Table R_a2x xCell2 R_a 8 145 158
Ra Table R_a2x xCell2 R_a 9 174 189
Ra Table R_a2x xCell2 R_a 10 160 174
Ra Table R_a2x xCell2 R_a 11 223 242
Ra Table R_a2x xCell2 R_a 12 273 296
Ra Table R_a2x xCell2 R_a 13 498 539
Ra Table R_a2x xCell2 R_a 14 865 937
  • Hi Harry,

    Yes, these values will also be included in your srec file. You may want to reset things like Lifetime data to defaults before exporting the srec.

    This video is helpful (it is for a different device, the BQ40Z50). The last part covers generating the golden srec for production.

    https://training.ti.com/bq40z50-setup-and-going-production

    Best regards,

    Matt

    Please click "This resolved my issue" button if this post answers your question

     TI provides design resources and design advice (including technical, schematic, code and/or system review) “as is” and with all faults.  All information in this or related correspondence is provided subject to TI’s Important Notice (http://www.ti.com/corp/docs/legal/important-notice.shtml).

  • In reply to Matt Sunna:

    Sorry, I didn't see how to set lifetimes data to default. 

    So my question is, I dump golden file from a BQ in the field, and modify some parameters I want, then I generate a new golden file and program it into another BQ, is it right? do I need to clear the lifetimes data, such as FW runtime, cell max voltage, No of COV events.

    thanks

  • In reply to Harry Zhang13:

    Hi Harry,

    Yes, you need to clear the lifetime data. Otherwise when you program the golden file into a new device, it will have the old device's lifetime data.

    You could program this golden file to a new device, use the LifetimeDataReset command (0x0028), then you can save a new golden file. However, I really recommend generating the golden file on a new device following the instructions in the video I sent. The Ra table will have been updated if the field device is on an aged battery, so I would not use these values on a new battery.

    Regards,

    Matt

    Please click "This resolved my issue" button if this post answers your question

     TI provides design resources and design advice (including technical, schematic, code and/or system review) “as is” and with all faults.  All information in this or related correspondence is provided subject to TI’s Important Notice (http://www.ti.com/corp/docs/legal/important-notice.shtml).

  • In reply to Matt Sunna:

    ok, thanks.

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.