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.

BQ4050: Corrupt .gg file

Part Number: BQ4050

Tool/software:

Hi Forum,

I wanted to know what are the consequences of importing a corrupt .gg file. I tried loading a .gg file and once it got loaded the XCHG and XDSG registers are high. No safety status is triggered. But still i'm unable to charge or discharge battery. 

This is the screen shot of the BQ studio.

/resized-image/__size/640x480/__key/communityserver-discussions-components-files/196/pastedimage1748431858920v1.png 

How can I undo the issue. I tried reloading the previous .gg file which I exported as backup before importing the corrupted one. It is getting loaded but still XCHG and XDSG are high.

This is the corrupted .gg file -> https://drive.google.com/file/d/12alAQixpHkCxL1EAVXRSt6nqG14DRtYR/view?usp=drive_link

  • Hello Amit,

    We have assigned your question to a battery gauge expert and will follow up with a response.

    Thank you,
    Alan

  • Hi Alan,

    Thanks for the update. Fyi the .gg file I have shared is for LiFePO4 (2S configuration). 

    Regards

    Amit

  • Hi Amit,

    Are there any differences in the action if the device is reset? Also, does anything change if a new version of the firmware is loaded to the device?

    Regards,

    Anthony

  • Hi Anthony,

    No change in registers if the device is reset. As mentioned earlier, even after loading non-corrupted .gg file things are same. XCHG and XDSG are high. 

    However, I uploaded old .srec file and XCHG and XDSG are 0.
    1. What might be the issue? which got solved when uploading .srec file. 

    2. I uploaded .srec file of Li-ion 2S configuration. But I want to configure BQ4050 with respect to LiFePO4 2S configuration will the same .srec file work? fyi I have .srec file of LiFePO4 3S configuration also, which among the two should I use for LiFePO4 2S configuration or do i need to upload different .srec file?

    3. You have mentioned that 

    if a new version of the firmware is loaded to the device?

    What does this mean? is there new firmware version for BQ studio or new firmware .srec file for the battery configuration i'm working on?

    Regards,

    Amit

  • Hi Amit,

    1. What might be the issue? which got solved when uploading .srec file. 

    Can you please share the .srec that was causing the issue?

    2. I uploaded .srec file of Li-ion 2S configuration. But I want to configure BQ4050 with respect to LiFePO4 2S configuration will the same .srec file work? fyi I have .srec file of LiFePO4 3S configuration also, which among the two should I use for LiFePO4 2S configuration or do i need to upload different .srec file?

    Are the same cells being used in both of the 2S packs? If so, I believe it should be ok to reuse.

    What does this mean? is there new firmware version for BQ studio or new firmware .srec file for the battery configuration i'm working on?

    Sorry, I was referring to the default .srec.

    Regards,

    Anthony

  • Hi Anthony,

    Can you please share the .srec that was causing the issue?

    It wasn't the .srec file which i uploaded which created the issue. It was the .gg file which created the issue. The same has been attached in the first post itself.

    Are the same cells being used in both of the 2S packs? If so, I believe it should be ok to reuse.

    The Li-Ion battery configuration is 2S2P whose .srec file is what i'm currently using. The LiFePO4 is a 3S1P configuration battery. I also have its .srec file. Which one to use for 2S1P LiFePO4 battery. Any way I need to be changing protection, permanent fail, advance charge algorithm and gas guaging parameters for both. But I wanted to know other than configuring these parameters what else will the .srec file handle. Accordingly I can choose which .srec file suits best.

    Sorry, I was referring to the default .srec.

    In this case when default .srec file of Li-Ion was uploaded the XCHG and XDSG registers were set to 0 and charging and discharging were happening normally. Additional to that all the parameters were changed with respect to Li-Ion which I had to change again to LiFePO4.

    Regards,

    Amit

  • Hi Anthony,

    Any update on previous message?

    Regards,

    Amit

  • Hello Amit,

    Sorry for the delay, due to the large workload we are experiencing we ask for more time to process your response.

    Thank you,
    Alan 

  • Hi Amit,

    It wasn't the .srec file which i uploaded which created the issue. It was the .gg file which created the issue. The same has been attached in the first post itself.

    The .srec will allow us to copy the image of the device you have on hand for testing and try to recreate the issue with the .gg file.

    The Li-Ion battery configuration is 2S2P whose .srec file is what i'm currently using. The LiFePO4 is a 3S1P configuration battery. I also have its .srec file. Which one to use for 2S1P LiFePO4 battery. Any way I need to be changing protection, permanent fail, advance charge algorithm and gas guaging parameters for both. But I wanted to know other than configuring these parameters what else will the .srec file handle. Accordingly I can choose which .srec file suits best.

    The .srec will contain the firmware, chemID, and data flash parameter configurations. If they are changed they will appear in the .srec when programmed to a new device. I would use the LFP 3S1P configuration only if they are the same exact cells being used, or else the chemID will have to be changed.

    Regards,

    Anthony