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.

BQ27Z561EVM-011: Issues connecting to EVM with BQ Studio

Part Number: BQ27Z561EVM-011
Other Parts Discussed in Thread: EV2400, BQSTUDIO

Tool/software:

I have two EVM boards.  The original version with embedded EV2400 module, and the smaller version that requires a separate EV2400 interface.  The issue I am having is the same foe both versions.

The first issue is that BQ Studio does not Auto Detect the device, so I have to manually select the "Gauge" type, then select the correct fuel gauge part.  It does not matter if I select 1561_0_04-bq27z561 or 1561_2_01-bq27z561R2, when I click OK, I get the following warning message:

If I click OK, then the connection to the device on the EVM is unreliable.  I am unable to successfully write a golden image (srec or bq.fs).  Unseal commands work occasionally, and the device randomly disconnects.

Can I get some guidance on how to make this setup work?  I am stuck until I can resolve this issue.

Cheers

Jason

  • Hello Jason, 

    Can you send me a picture of what shows up for the auto detect section when you load bqStudio, does it say "NONE"? 

    Regards, 

    Robert. 

  • Hi Robert,

    Something changed since yesterday.  I intended to open up BQ Studio to take a screenshot of the issue you asked about, but this time, the EVM was recognized correctly and it started straight up.  I wouldn't say it is 100%, but it is certainly 10x better than it was before.  I can unseal, & programming in working most of the time now.  

    I am puzzled as to what might be different today that would cause such a dramatic change.

    Cheers

    Jason

  • Hey Jason, 

    Perhaps there was a loose connection. Nonetheless, thank you for the update, and feel free to update this thread if you see this again. 

    Regards, 

    Robert. 

  • Hi Robert,

    Definitely not a loose connection.  I have been struggling with this for weeks, and I even had a colleague set it all up on his PC.  I lost count of the number of times I had pulled it apart and put it back together trying to get it to work.  

    Cheers

    Jason

  • HI Robert,

    I am now trying to change some data memory settings for "Advanced Charge Algorithm" to set the charging voltage and current for each temperature range.

    Here is one example for Low temp charging voltage. The default value is 4263 & I want to change it to 4256:

    Double click cell and enter 4256

    Press enter, value goes back to default

    double click, and value shows as 4256

    press enter again, and value stays at 4256

    Click on Write all, I don't see any confirmation or error. then click on read all and value goes back to default:

    If I export the settings, then use a text editor to modify the values, then import the gg.csv file i see all of the registers update with the new values.  However, if I click on Write All i get the following error:

    Parameter not written. Classname Advanced Charge Algorithm, Subclass name Termination Config, Parameter name Charge Term Voltage written to data memory failed readback verification.

    If I try to write again, the error goes away, but a read all returns all of the default values.

    Am I doing something wrong?  Why wont the registers write to the dataflash?

    Cheers

    Jason

  • Hello Jason, 

    Please make sure that you have Auto Refresh Turned off and Scan turned off when communicating. Additionally, please make sure there is nothing else on the comms bus and that you are using the correct .bqz file for the FW on the gauge. Something else you can try is to manually write the values to the gauge using the Advanced Comm tab in bqStudio. 

    Regards, 

    Robert. 

  • Robert,

    I do have auto refresh and scan turned off.  This is on the BQ27Z561EVM, so there should not be anything else on the comm bus.

    The EVM is auto detected by BQ Studio, so does that mean it has loaded the correct bqz file? 

    I do not know how to access the data flash using the advanced comm tab. Can you provide instructions please?

    Cheers

    Jason

  • I think I worked out how to access the data flash.  I read the following register

    and the value returned is 0x10A7 = 4263mV

    I then wrote 0x10A0 (4256mV), but reading back, I still get 0x10A7

    here are the commands I sent

  • Hello, 

    I recommend referring to this E2E thread for how to write to the gauge using Advanced Comms. From what I can tell here, you are not writing the checksum and length to start address 0x60. 

    Regards, 

    Robert. 

  • I calculated the checksum as FF-(e7+44+A0+10) = 22

    that didn't work, but I remembered in the TRM, it says to include the length byte in the checksum calculation  FF-(e7+44+A0+10+06) = 1E

    that didn't work either. Did I calculate the checksum correctly?

  • Hello, 

    I do not believe that you calculated the checksum correctly, in this case the checksum is as follows: 

    0xE7 + 0x44 + 0xA0 + 0x10 = 0x1DB

    BITWISE NOT(0x1DB) = 0xFE24 = 0x24

    You should be using 0x24 as the checksum for this particular example. 

    Regards, 

    Robert. 

  • Hi Robert,

    Thank you for checking, and I don't know how I managed to calculate the checksum incorrectly!

    I used 0x24 this time, but I still cannot update the register:

  • Hello, 

    Can you share the whole screen from bqStudio? 

    Regards, 

    Robert. 

  • Just the Advanced Comm tab?


  • Hey Jason, 

    This looks good. I just want to clarify, what parameter are you trying to write to the gauge? 

    Regards, 

    Robert. 

  • Hey Robert,

    what do you mean by "This looks good"?  The last register read shows that the new value did not get written.  

    For this test, I am trying to write to this register:

    I have more registers I need to change, but this exercise we have worked through using Advanced comms to send the specific I2C commands has proved that there is an issue here.

    BQstudio is not allowing me to modify the registers in the Fuel gauge.

    What is the next step to try to get this resolved?

  • Hello Jason, 

    Please make sure that the gauge is unsealed, if the gauge is sealed you would not be able to write to the data flash. Are you experiencing this on other devices? Additionally, please try to power cycle the gauge.

    Regards,

    Robert. 

  • IF the gauge is sealed I would not even be able to read the data flash. I have tried this on the two EVM boards I have with the same issue.  I have tried many power cycles too.

  • Hello Jason, 

    Are you able to update the FW on the gauge to a newer version on ti.com? I am wondering if this will help resolve this behavior. 

    Regards, 

    Robert. 

  • Robert, this worked.  I wish we had tried this first!

    Cheers

    Jason