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.

BQ27Z561: how to load golden image file in srec format into BQ27Z561 without bqStudio ?

Part Number: BQ27Z561
Other Parts Discussed in Thread: BQSTUDIO

I have successfully loaded golden image file in srec format into the BQ27Z561 using bqStudio. 

Now i want to load same srec file into BQ27Z561 without bqStudio.

i am updating golden image file many times. so during production time we don't want to load golden image file through bqstudio.

i use i2c line to connect with BQ27Z561.

so i need reference code for my scenario ?

while implementing code what basic things i need to take care so that BQ27Z561  not go into unrecoverable state ?

what approach i need to follow so i can achieve this requirement successfully?

  • Hello Mangal,

    I would recommend following the app note SLUA801 for how to upload the flash stream files to our gauges using your own MCU. There's many posts on the forum about the flash stream file formats as well.

    Sincerely,

    Wyatt Keller

  • i have read many post and datasheet of bq27z561. in datasheet they told that final flash stream extracted once configuration and testing are complete, will be used for mass production and is referred to as the "golden image".

    But I still need clarity regarding below question

    1] From below which file i need to load using code of SLUA851 ? means from below list which specific file i need to use as golden image file ?

    • 1561_0_04-bq27z561.bq.fs
    • 1561_0_04-bq27z561.df.fs
    • 1561_0_04-bq27z561.gm.fs
    • 1561_0_04-bq27z561.srec

    2] i have experienced that when i make mistake during code ic become unrecoverable.

      2.A) I have seen many post where they said golden image file limit set in 32-bytes what change i need to do in code of app note [slua801]  to avoid unrecoverable state ?

     2.B) what extra things i need to change to achieve successfully transfer of flash stream file in my scenario through app note code ?

    3] how i can find firmware version of my bq27z561 ic is same as gm.fs ?

  • Mangal,

    Many of these questions are answered on other threads. SLUA801 is to be used as a reference/guide to develop your own uploader, you will have to make the edits if you want to upload firmware with your own MCU.

    bq.fs = srec = firmware and dataflash

    df.fs = dataflash only

    gm.fs = flash stream for ROM gauge - use the other flash streams.

    Sincerely,

    Wyatt Keller