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-G1: After Golden Image file generated, programming to device from flash based MCU

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

After succeeded to generate gm.fs file for bq27421, so we want to program this gm.fs file to the device, I've read each commands in gm.fs file.
Now I have a question,
There's explained in TRM, some commands such like "SET_CFGUPDATE" requires to be in unsealed state.
But there's no unseal command described in gm.fs file, so do I have to send two words of "Sealed to Unsealed" key (i.e. process "W: AA 00 00 80" command twice) before processing the gm.fs data ?

  • Hello Hideki,

    In bqStudio when you are exporting the gm.fs file there should be an "options" tab on the right side. This will give you the option to include the unseal commands in the flash stream file.

    Sincerely,

    Wyatt Keller

  • Thanks for replying.

    I found "options" in gm.fs file generation tab, and default value of "Seal to Unseal Key" and "Unseal to Full Access Key" are set as '36720414','FFFFFFFF' each.

    So if I want to use default unseal command keys (i.e."80008000"), do I have to set "80008000" into both "Seal to Unseal Key" and "Unseal to Full Access Key" textbox?



    And one more question, at the top of the gm.fs file content, verifying firmware version was written, is this mandatory needed to process gm.fs data?

    We're thinking put gm.fs data into MCU firmware ROM code.

    I'm concerning that some trouble will happen when the gauge chip revision changed in a production lot and firmware code will check firmware version and handle as error.

    Do I have to re-generate every time when gauge chip version updated?

    Or can skip checking firmware revision, regardless compare command for revision check written in gm.fs ?

  • Hello Hideki-san,

    Keep in mind, there is unseal to seal and full access mode.

    For ROM gauges, yes, you need to use the default keys. I think bqStudio may have inherited the default from our flash devices.

    The ROM gauges do not distinguish between ROM and FW mode. The gm.fs file is an updater in FW mode.

    The chip version will not update. This is a ROM gauge, unless your IC HW changes from v1.09 to an additional version, these will not change.

    Thanks

  • Hi,

    I re-read your message again, you're saying "unseal to seal and full access mode", but in a "GM Flash Stream - file options" window, shows "Seal to Unseal", "Unseal to Full access key", is this dialog explanation typo?

    Thanks

    ---------------------------------------------------------

    Kang Kang said:

    Hello Hideki-san,

    Keep in mind, there is unseal to seal and full access mode.

    For ROM gauges, yes, you need to use the default keys. I think bqStudio may have inherited the default from our flash devices.

    The ROM gauges do not distinguish between ROM and FW mode. The gm.fs file is an updater in FW mode.

    The chip version will not update. This is a ROM gauge, unless your IC HW changes from v1.09 to an additional version, these will not change.

    Thanks

  • Hello Hideki-san,

    I would recommend you try it, but I do remember it needs to be 0x8000 0x8000 so yes, it is a typo.

  • OK, I'll try to use default Key values.

    Thanks.