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.

BQ27411-G1: configuration lost when battery disconnected

Part Number: BQ27411-G1
Other Parts Discussed in Thread: BQSTUDIO

Hello,

I have a problem with the bq27411-G1A fuel gauge.

In particular, when I program the memory with the bqstudio software, the device seems to work well, but as soon as I disconnect the battery, al the settings are lost and I need to program it again.

What should I do to store the configuration permanently?

Thanks in advance,

Andrea.

  • Hi Bedin,

    You could export the gm.fs file in Golden image. When do another operation, program the file into bqstudio.

    Best regards,

    Sammi

  • Hello Sammi,

    My problem is that I need to preserve the configuration afer I shipped the product to my costumer, so
    i cannot program it via bqStudio every time. i need the device to keep the configuration.


    Thank you,

    Andrea.
  • You can store the configuration in non volatile one time programmable memory. Export the Golden Image (click the button in bqStudio) *.ot.fs file and then program this file into each bq27411 using TI Smart Flash from www.ti.com/.../toolssoftware
  • Tank you Dominik.

    This semms to be exactly what I need, I'll try this solution
  • i have a problem with this procedure:

    The bq studio exports only *.gm.fs images, which seems to have the same format of the *.ot.fs one, but if I rename the file to .ot.fs and I load the file to smartflash, the "program" button remains deactivated and the  "No valid OTFS file has benn opened" text remains on the bottom bar of the smartflash tool.

    here is the content of the ptfs file:

    ;--------------------------------------------------------
    ;Verify Existing Firmware Version
    ;--------------------------------------------------------
    W: AA 00 01 00
    C: AA 00 21 04
    W: AA 00 02 00
    C: AA 00 09 01
    ;--------------------------------------------------------
    ;SET_CFGUPDATE
    ;--------------------------------------------------------
    W: AA 00 13 00
    X: 1100
    W: AA 3E 02 00
    W: AA 40 02 26 00 00 32 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    W: AA 60 A5
    X: 10
    W: AA 3E 02 00
    C: AA 60 A5
    W: AA 3E 24 00
    W: AA 40 00 19 28 63 5F FF 62 00 32 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    W: AA 60 69
    X: 10
    W: AA 3E 24 00
    C: AA 60 69
    W: AA 3E 30 00
    W: AA 40 0E D8 FD FF 38 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    W: AA 60 E5
    X: 10
    W: AA 3E 30 00
    C: AA 60 E5
    W: AA 3E 31 00
    W: AA 40 0A 0F 02 05 32 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    W: AA 60 AD
    X: 10
    W: AA 3E 31 00
    C: AA 60 AD
    W: AA 3E 40 00
    W: AA 40 25 F8 0F 00 00 14 04 00 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    W: AA 60 B2
    X: 10
    W: AA 3E 40 00
    C: AA 60 B2
    W: AA 3E 44 00
    W: AA 40 05 00 32 01 C2 14 14 00 03 08 98 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    W: AA 60 39
    X: 10
    W: AA 3E 44 00
    C: AA 60 39
    W: AA 3E 50 00
    W: AA 40 02 BC 01 2C 00 1E 00 C8 C8 14 08 00 3C 0E 10 00 0A 46 05 14 05 0F 03 20 00 64 46 50 0A 01 90 00
    W: AA 60 BB
    X: 10
    W: AA 3E 50 00
    C: AA 60 BB
    W: AA 3E 50 01
    W: AA 40 64 19 DC 5C 60 00 7D 00 04 03 19 25 0F 14 0A 78 60 28 01 F4 00 00 00 00 00 00 43 80 04 01 14 00
    W: AA 60 2A
    X: 10
    W: AA 3E 50 01
    C: AA 60 2A
    W: AA 3E 50 02
    W: AA 40 0B 0B B8 01 2C 0A 01 0A 00 00 00 C8 00 64 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    W: AA 60 C1
    X: 10
    W: AA 3E 50 02
    C: AA 60 C1
    W: AA 3E 51 00
    W: AA 40 00 A7 00 64 00 FA 00 3C 3C 01 B3 B3 01 90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    W: AA 60 8A
    X: 10
    W: AA 3E 51 00
    C: AA 60 8A
    W: AA 3E 52 00
    W: AA 40 40 00 00 00 00 81 0E DB 0E A8 0C 94 30 70 0C 94 0D AC 00 C8 00 32 00 14 03 E8 01 01 5E 10 04 00
    W: AA 60 99
    X: 10
    W: AA 3E 52 00
    C: AA 60 99
    W: AA 3E 52 01
    W: AA 40 0A 10 5E FF CE FF CE 00 01 02 BC 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    W: AA 60 2E
    X: 10
    W: AA 3E 52 01
    C: AA 60 2E
    W: AA 3E 59 00
    W: AA 40 00 66 00 66 00 63 00 6B 00 48 00 3B 00 3E 00 3F 00 35 00 2F 00 3C 00 46 00 8C 01 71 02 4C 00 00
    W: AA 60 33
    X: 10
    W: AA 3E 59 00
    C: AA 60 33
    W: AA 3E 70 00
    W: AA 40 80 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    W: AA 60 FF
    X: 10
    W: AA 3E 70 00
    C: AA 60 FF
    ;--------------------------------------------------------
    ;Exit CFGUPDATE
    ;--------------------------------------------------------
    W: AA 00 00 00
    W: AA 00 42 00
    X: 2000

  • What version of the gauge do you use? Is it a bq27411-G1A, G1B, G1C or G1D?
  • Hello.
    The device is a bq27411-G1A
  • 3326.0421_1_09_80-bq27411G1A.bqzPlease copy this file into the config folder of bqStudio. This includes OTP support for the G1A.

  • Hi,Dominik Hartl11

             I export the Golden Imageo  *.ot.fs file,but I failed choose the *.ot.fs file. the smartflash only allow me to choose *.otfs file . how to program the *.ot.fs file?

    Looking forward to your reply!

  • You can use the smart flash programmer to program the otfs file.
    www.ti.com/.../sluc608

    additional material that may be useful on using the smart flash programmer.
    www.ti.com/.../slua771.pdf

    thanks
    Onyx
  • Hello Onyx
    Thanks for you reply! I download the smartflash from www.ti.com/.../sluc608 .but I cannot open the file sluc608,because the file format cannot be recognized by my computer. Computer OS is win10. which tools can recognized the file?

    thanks
    Qzhi
  • Qzhi,
    Extract the .exe file from the compressed folder. Since this is an executable file you just need to double click to install. I don't know if it will work on windows 10 as i use windows 7, but it is worth a shot.
    thanks
    Onyx
  • Hi, Onyx

                I have already programed the *.ot.fs into bq27411 successfully .

                thanks for reply

    Qzhi