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.

BQ27421: bqtool for the golden image (DFI)

Our project used TI BQ27421 gauge and OpenWrt Linux OS.

1) We found the bqtool for downloading the DFI file into the gauge.

1-1) bqtool

1-1-1) The descriptions

bqtool is an Android commandline utility for programming, monitoring,
and debugging TI's bq27xxx family of single-cell gas gauges.
Currently it supports only bqfs flashing. However, more features
will be added in the future.
Although bqtool is created for Android it can be easily ported for any Linux system.

1-1-2) bqtool source code is available here.
>>     git.ti.com/.../bqtool

1-1-3) The command line parameters

root@OpenWrt:~# bqtool
Usage:
--import-gg-csv --params-csv=<gg-csv> [--unseal-key=<key> --fullaccess-key=<key> --i2c-dev-file=<dev-file> --i2c-bus=<bus-num> --reset --exit-seal=<seal-state>]

--rom-gauge-monitor --init-csv=<gg-csv> --save-restore-csv=<gg-csv> --period=<prd-ms> [--timestamp --unseal-key=<key> --fullaccess-key=<key> --i2c-dev-file=<dev-file> --i2c-bus=<bus-num> --exit-seal=<seal-state>]

--bqfs-flash --bqfs-flash=<bqfs/dffs file> [--mode=<interface> --max-block-len=<max-blk-len> --unseal-key=<key> --fullaccess-key=<key> --i2c-dev-file=<dev-file> --i2c-bus=<bus-num> --reset --exit-seal=<seal-state>]

--export-gg-csv --params-csv=<gg-csv> [--output-csv=<csv-file> --format-csv=<csv-file> --period=<prd-ms> --timestamp --no-header --unseal-key=<key> --fullaccess-key=<key> --i2c-dev-file=<dev-file> --i2c-bus=<bus-num> --exit-seal=<seal-state>]

--export-regs --regs-csv=<regs-csv> [--output-csv=<csv-file> --regs-format-csv=<regs-csv> --i2c-dev-file=<dev-file> --i2c-bus=<bus-num>]

--combined-export --dm-csv=<gg-csv> --regs-csv=<regs-csv> [--output-csv=<csv-file> --dm-format-csv==<csv-rile> --regs-format-csv=<regs-csv> --period=<prd-ms> --timestamp --no-header --unseal-key=<key> --fullaccess-key=<key> --i2c-dev-file=<dev-file> --i2c-bus=<bus-num> --exit-seal=<seal-state>]

Please see git.ti.com/.../README for details of command options
root@OpenWrt:~#

Q-2) Could we use the bqtool to download the DFI file into the gauge in the Linux OS?

Q-2-1) If yes, could you tell us the command line parameters to download the DFI file?

3) As we know, if the gauge is cold-boot (power off and power on), it is necessary to re-download the DFI file into the gauge.

If the gauge is warm-boot (power is always on), it is not necessary to re-download the DFI file into the gauge.

Q-3-1) How does the bqtool know the gauge is cold-boot or warm-boot for re-downloading the DFI file into gauge?

Thank you.