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.

BQ27542-G1: Bqstudio, A read of data written failed comparison and FC bit not set

Part Number: BQ27542-G1
Other Parts Discussed in Thread: BQ27542EVM, BQSTUDIO, BQ25895, GPCCHEM

Hi all,

I have the Bq27542 development board and I designed it myself, similar to the Bq27542evm kit.

I have a 18650 li-on battery that I don't know about the chem ID and I use a learning cycle to learn my chem ID with BQstudio.

I'm following these steps for the learning cycle:

- I made Data memory adjustments according to the characteristics of the battery.

- I pressed the auto export button from data memory at 15 min intervals and started logging in the register part.

I am adding them.

 After starting the learning cycle, while watching continues, I start to see 'A read of data written failed comparison' at the bottom left.

Q1) Why is this happening?

The first time I saw a warning, bottom left.I did not physically interfere with the system.

Also, while the charge process continues, the FC bit is not set and my charge process stops after a short while. I am doing the charge process with BQ25895. (this may be stopping the charging process.I'm not sure)

Since the charging process is stopped, it stays in charge mode and I get a warning that I need to connect the charger. I unplug the charger and plug it in again and the voltage comes to 4193mV, again the chage process is interrupted.This cycle continues continuously.

Q2) I cannot go to the next step without setting the FC bit. how can I do that and the next question here might be related to my first question?

The moment the charge process goes up to 4193mV and the charging process is disabled

4812.test.logBatteryManagementStudio.rar

PX-18650_2500mAh_datasheet-REV001.pdf

I am using 1200-1300 mA while charging. 

I've been dealing with this for a week, and sometimes I follow it before I sleep because the tests take a long time. How can I solve it? Can you help me? I need to learn chemID and start using it as I want.

Regards,

Mehmet

  • Hi User,

    Can you try reuploading the images, refer to this post: 

    https://e2e.ti.com/support/site-support/f/1024/t/761613

    Thanks,

  • Hi Nick,

    I am sorry that I did not see that you did not upload pictures.

    Pic1) The first time I see a warning, bottom left, I did not physically interfere with the system.

    Pic2) The moment the charge process goes up to 4193mV and the charging process is disabled

    Are there any other files missing or something you don't understand when I ask?

    Thanks,

    Mehmet

  • Hi Mehmet,

    You may need to lower the termination voltage slightly on the gauge side. What is the STAT pin on charger showing.

    Best regards,

  • Hi Nick,

    I could not understand the termination voltage relevance?

    I am posting a picture of the charger BQ25895.

    When I look in detail, I think that step 2 of these 3 steps regarding the FC bit is not suitable. I will try to make the taper current to 400mA.

    1. Voltage() ≥ Charging Voltage – Taper Voltage AND

    2. During two consecutive periods of Current Taper Window, the AverageCurrent() is < Taper Current AND

    3. During two consecutive periods of Current Taper Window, the accumulated change in capacity > 0.25 mAh.

    I am waiting for my answers about your questions.

    Regards,

    Mehmet

  • Hello Mehmet,

    Are you able to edit other DF parameters?

    The firmware will not write specific data to flash because only the firmware is expected to update it. That is when you will see this error.

    It can also happen in case of PF where firmware will not NACK but does not update the flash either.

    The error message is shown every time the data that was read back does not match the data written regardless of the cause.

    Sincerely,

    Wyatt Keller

  • Hi Wyatt,

    Before starting the learning cycle, I make the necessary arrangements according to the characteristics of the battery and write all in the data Memory tab. Is this what you mean by DF parameters?

    Yes the error is never resolved after starting. For example, I start with update status 0x04 and it is never updated, it should be update status 0x05 and 0x06 respectively but I cannot see it. I upgraded bq studio to test version (1.3.102) and tried result still unsuccessful, I am sharing relevant images.

    Is the update status not being updated due to this error?

    The moment I see the first error, it coincides with 23:22:28 in the logs.

    test1.log

    Learning cycle is completed. the error still exists at the bottom left.

    Can you look at the logs and make any comments? I really don't know where to look and look for a solution. it feels like I'm doing everything right.

    Regards,

    Mehmet

  • Hello Mehmet,

    You got a successful learning cycle but the gauge is still showing 0x04? Can you share your .gg file?

    Sometimes failures or the update voltage ok parameter will prevent DF writes.

    Sincerely,

    Wyatt Keller

  • Hi Wyatt,

    Yes, unfortunately update status has not been updated it still shows 0x04.

    .gg file is what you want, can this be?

    1207.BatteryManagementStudio.rar

    Regards,

    Mehmet

  • Hello Mehmet,

    You cannot learn the battery until the correct chemistry ID has been programmed to the gauge, use the GPCCHEM tool to submit a relax-discharge-relax log to find your chemistry ID then perform the learning cycle.

    Sincerely,

    Wyatt Keller

  • Hi Wyatt,

    I'm confused, the learning cycle is successful, but can we consider it fully successful because the update status is not updated? And assuming I got a chem Id, I would like to ask. Should I do a learning cycle again? Until update status succeeds and no errors in bqstudio.

    I am aware that I have to use GPCCHEM tool for Chem ID. But, I have 2 different documents that I have sent to you:
    1) test.log
    2) (BatteryManagementStudio) test.gg.csv

    How can I get a Chem ID using these? Can you open it up a bit?

    Regards,

    Mehmet

  • Hi Memet,

    Follow the instruction from GPCCHEM tool.

    Thanks,

  • Mehmet,

    Please follow the steps describen in GPC selection tool manual to submit the data for chem ID release.

    The manual location is here:

    After you prepared the zip file you need to submit, you can submit it from the GPC web-site:

    Regards,
    Yevgen

  • Hi Yevgen,

    I sent the GPCCHEM zip file considering what you said. I had some problems, for example my status value was not update. Will it be a problem? or will I have to think after coming from GPCCHEM?

    How long will it take me to get a reply from GPCCHEM?

    Thanks,

    Mehmet

  • Hi,

    Are there any updates on this issue?

    2330.roomtemp_rel_dis_rel.csv

    7041.config.txt
    ProcessingType=2
    NumCellSeries=1
    ElapsedTimeColumn=0
    VoltageColumn=1
    CurrentColumn=2
    TemperatureColumn=3
    

    Regards,

    Mehmet

  • Hi Mehmet,

    Please follow the instruction here: 

    Best regards,

  • Hi Nick,

    I zipped my files in accordance with the document you shared and sent them to GPCCHEM. But I could not get any return.

    You can see the documents I sent in my previous answer.

    Regards,

    Mehmet

  • Hi,

    I got a report, but it says there is an error in my .csv file.

    The following errors were reported by the calculation engine:
    Error: Wrong data format make sure file has coma or tab separated values. Name: roomtemp_rel_dis_rel.csv

    Final3.zip

     

    Final3-report.zip

    I don't understand why this is messing up. can you help me?

    Regards,

    Mehmet

  • As in  most cases  you have to fix the problem indicated in the message.

    The required by the tool data format needs to be coma separated values, 4 columns, but your data is semi-colon separated, so
    tool can not process it:

    Also you seem to have some additional column, showing number 7 in it, but it is starting only with row 2.
    All columns need to have entries in all rows.

    ElapsedTime;Voltage;AvgCurrent;Temperature
    4 002;3121;0;22 7

    Regards,
    Yevgen

  • Hi Yevgen,

    I realized it was what you said but I managed to fix it. I was able to get a successful Chem ID. I'm adding the GPC report here. Should I do a charge cycle again after this. For example, my status value was not updated.

    1263.GPC_report.txt
    Chemistry ID selection tool, rev=2.5		
    		
    Configuration used in present fit:		
    ProcessingType=2		
    NumCellSeries=1		
    ElapsedTimeColumn=0		
    VoltageColumn=1		
    CurrentColumn=2		
    TemperatureColumn=3		
    		
    Best chemical ID : 1280	Best chemical ID max. deviation, % : 1.39	
    		
    		
    		
    Summary of all IDs with max. DOD deviation below 3%		
    		
    Chem ID	max DOD error, %	Max R deviation, ratio
    1280	1.39	0.28
    2023	1.44	0.29
    264	1.95	0.18
    247	2.16	0.4
    289	2.66	0.46
    1594	2.66	0.24
    1268	2.67	0.28
    2090	2.75	0.23
    3385	2.81	0.37
    2682	2.88	0.38
    212	2.98	0.53
    2041	2.98	0.84
    		
    Max. deviations for best ID is within recommended range. Chosen best chemical ID is suitable for programming the gauge.		
    		
    		
    Selection of best generic ID for ROM based devices like bq274xx		
    		
    		
    Device / Family #1		
    Generic Chem ID	Device/ Voltage/ Chemistry	max DOD error, %
    3142	bq27421-G1D: 4.4V LiCoO2	17.35
    354	bq27411-G1C: 4.35V LiCoO2	17.66
    128	bq27421-G1A: 4.2V LiCoO2	37.12
    312	bq27421-G1B: 4.3V LiCoO2	46.4
    Best generic ID 3142		
    Warning: Generic ID Deviation is so high that it is most likely due to anomaly in the data. Please check that data files have recomended format, units and test schedule		
    		
    		
    Device / Family #2		
    Generic Chem ID	Device/ Voltage/ Chemistry	max DOD error, %
    354	bq27621:  (ALT_CHEM2) 4.35V LiCoO2	17.66
    1210	bq27621:  (ALT_CHEM1) 4.3V LiCoO2	22.6
    1202	bq27621: (default) 4.2V LiCoO2	22.94
    Best generic ID 354		
    Warning: Generic ID Deviation is so high that it is most likely due to anomaly in the data. Please check that data files have recomended format, units and test schedule		
    		
    		
    Device / Family #3		
    Generic Chem ID	Device/ Voltage/ Chemistry	max DOD error, %
    3230	bq27426: (default) 4.35V LiCoO2	16.84
    3142	bq27426: (ALT-CHEM2) 4.4V LiCoO2	17.35
    1202	bq27426: (ALT_CHEM1) 4.2V LiCoO2	22.94
    Best generic ID 3230		
    Warning: Generic ID Deviation is so high that it is most likely due to anomaly in the data. Please check that data files have recomended format, units and test schedule		
    		
    		
    

    I think I'm a little better off. Can you help me solve it?

    Regards,

    Mehmet

  • The report does not indicate any problems. You can use chem ID selected in the report.

    Regarding learning cycle, make sure to have full charge to below DF setting of the taper current (so that FC bit is set)/ relaxation 2 hrs / full discharge at C/5 rate / relaxation 5 hrs to have status bits change.

    Regards,

    Yevgen

  • Hi Yevgen,

    First of all thank you for your help.

    I want to ask the last 1 issue stuck in my mind. This is about programming BQ27542 in my final products.

    1) Is it enough if I program an original never used BQ27542 from the Programming tab in bqStudio for the battery whose chemical ID I found out?

    2) I need to change some things in the data memory(golden image file) part in bqStudio. Should I programming my chemical ID after these changes?

    or

    3) Should I make the changes I want in the data memory(golden image file) and also programming the chemical ID?

    Can you get me out of this mess?

    Regards,

    Mehmet

  • Mehmet,

    first I would like to clarify that there are two kinds of files use to program parameters,

    -1) plain text *.gg file which is normally exported from bqstudio, can be opened in text editor and contans all open parameters

    -2)binary golden image file, binary file exported by production tools, can NOT be opened in text editor and contains all open and hidden parameters including chem ID data


    So depending on what you mean under golden image file, the answers are different. If you have exported a binary golden image file 2), then this is the only

    thing you need to program in production, as it contains all open and hidden data.

    However, if you exported plain text *.gg file using bqstudio, you need to follow these steps:

    - program chem ID

    - program plain text *.gg file

    - export binary golden image file using production tool - now you are ready for production

    - use product line grade multi-channel production tool to program golden image into all PCBs

    Regards,

    Yevgen

  • Hi Yevgen,

    I understood how the order is.

    I want to ask a few more short things with .gg file. this is what I want to ask the 2nd step:

     - program plain text *.gg file

    To do this, is it enough to complete the learning cycle and make a Goldenize Device from the goldenizing tab in bqStudio?

    If this is true what I asked, will it be the 3rd step you said from now on?

    - export binary golden image file using production tool 

    Regards,

    Mehmet

     

  • Hi Mehmet,

    The .gg contains your configuration of the gauge. Yes, you must complete a learning cycle, once this is completed you can flash the golden image to the rest of your devices using the production tool.

    Best regards,