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.

programming DFI file to bq27520G4 v3.29

Other Parts Discussed in Thread: BQSTUDIO, BQEVSW

Hi,

I'm trying to program a DFI file using bqEasy to bq27520G4 v3.29 and I get a warning:

"Communication with the target device cannot be established...."

Note  that choosing DataRAM and pressing refresh, it reads the data from the device.

So, there is a communication to the device.

  • Hi Itsik,

    We have transitioned from using dfi files to using flashstream files (bqfs and dffs) and srecs. pls use our  new tool bqstudio to program your device using the aforementioned files.

    Let me know if that helps

    thanks

    Onyx

  • Hi Onyx,

    Thanks for helping.
    I installed the bqstudio and now I understand how to produce the SREC file for using at the flashStream.
    But I encounter other issue:
    I tried to export golden image for producing a SREC file.
    It failed to export: "No acknowledge from device".
    The issue is that I see that the device is detected and the battery parameters are presented on the DashBoard.
    So, I assume that for displaying the battery parameters, the device has to acknowledge.

    Thanks, Itsik.
  • Hi Itsik,
    Could it be possible that you put the device into ROM mode and never exited ROM mode back to firmware mode. if using bqstudio, click the execute FW button. if using bqEVSW, send command 0x08.
    Also, can click the scanning button on the register window and then capture a screen shot and paste on here. I want to know if indeed you are able to communicate with the device.

    thanks
    Onyx
  • Hi Onyx,

    I clicked the 'Execute FW' but it did not help.

    Follow the registers scanned.

  • thanks Itsik,The screen shot helps a lot. It shows that your device is sealed. This is indicated by the FAS and SS flags set. You need to clear them by sending the unseal and full access commands to the gauge before you can do anything further with the gauge. As long as you didn't change the defaults codes, you can send the default to unseal the device or simply click the unseal and full access commands buttons as shown circled in the the snippet below.

    Note that once you seal the device, you can never permanently go back to an unsealed state. This means that if there is a POR or you issue the reset command, the device automatically goes back into sealed mode and to change data flash parameters or extract an srec, you will have to send the unseal and full access commands again. You will have to program the device with the default firmware if you want the device to go back to a permanently unsealed state.

    thanks

    Onyx

  • Hi Onyx,

    Thanks for helping, It solved the problem,

    I succeeded to produce golden file and program i back.

    I tried to program the golden file when device already unseald via 'FlashStream' and I suspect there is a problem.

    Via the 'bqStudio', the programming took ~30 seconds and via 'FlashStream' it took ~2 seconds even though it wrote 'Complete' at the end.

    C:\Apps\Texas Instruments\FlashStream>flashstream 0520_3_29-bq27520G4.srec

    FlashStream Utility version 0.28

    Complete.

     

    How can I unseald, program and seald back(If required) using 'FlashStream'?

    Thanks,

    Itsik Hadar.

  • hi Itsik,
    The programming of the srec takes longer than programming the dffs file. Srec contains instruction flash and data flash while dffs contains just df that is why dffs will take significantly shorter time to be prorgrammed.
    Pls use only bqstudio for programming during evaluation. do not use the flashstream.exe tool as we have now obsoleted that tool. bqstudio can program both srec, bqfs and dffs

    thanks
    Onxy
  • Hi Onxy,

    Do you have a solution for mass production replacing the 'FlashStream'?

    I need to program the golden file as part of ATE(Automatic test equipment) using a command line or DLL or any other simple solution so I will not have to develop the programmer by my self.

    Itsik.

  • Hi Itsik,
    Unfortunately, we do not have such. The flash stream method is what most of our customers use.

    thanks
    Onyx
  • HI,

    How can I get the latest version of flashstream?

    Thanks,

    Itsik Hadar.

  • Hi Itski,

    The tool is now obsolote and there is no updated/latest version. Pls use bqstudio for flashstream file extraction.

    thanks

    Onyx