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.

BQ27220: Getting timeout error while clearing the cfgupdate flag

Part Number: BQ27220
Other Parts Discussed in Thread: BQSTUDIO, EV2400

Hi TI,

I am trying to edit the driver code for  changing the Design capacity to  9000mAh as mentioned in page no 65 of  BQ27220 technical reference manual but not able to clear bit 2 as mentioned in Step 15 of the reference manual. I am getting the time out error while clearing the cfgupdate flag. 

               I saw this post https://e2e.ti.com/support/power-management-group/power-management/f/power-management-forum/585243/bq27220-can-not-update-data-memory-parameter saying that the steps mentioned in the tech. ref manual are incorrect. Can you please guide me how can I resolve this error & proceed further.



Thanks & Regards,
Monica

  • Hello Monica, 

    Are you following the steps exactly as listed in the TRM? The E2E post you have linked describes repeating steps 5 and 6 after step 8, have you tried this as well? 

    Regards, 

    Jonny. 

  • Hi Jonny,
       
            I have resloved the issue as there was a small silly mistake in writing the value to operation status reg, I successfully completed all the 16 steps mentioned in the Ref manual, But how do I cross verify that my Design capacity value is upgraded to 9000mAh.

  • Hello Monica, 

    To ensure that the value you have written for the Design Capacity has been updated correctly, you can either read the value for the Design capacity using a host controller, or you can use the EV2400 and bqStudio to read off the value for Design Capacity. 

    Regards, 

    Jonny. 

  • Hi Jonny,
         Tried reading the Design capacity after Step 10 but didn't seems to be updated. So, tried reading the operation status 0x3a which shows that my device is in unseal mode but not in the full access mode even after performing write operation for the full access mode, My device still remains in the unseal mode.
          Please guide how can to get the full access of bq27220. I don't have the EVM board so can not cross verify through BQStudio.

    Thanks & Regards,
    Monica

  • Hello Monica, 

    Please see the following screenshot taken from the TRM for how to send the gauge into Full Access mode. 

    Regards, 

    Jonny. 

  • Hi Jonny,
            I have attached a screenshot of the print statement added in my driver code. Showing the i2c write operation on the control reg.

    My unseal write sequence updated my operation flag 0x3a to 0xa4 in hex i.e setting bit sec[1:0] - 10  in Unseal mode. 

    Bellow is my Full access write sequence: but my operation flag is still in the Unseal mode. sec[1:0] - 10

    I also tried adding delays between Unseal and full access write operations, but can not proceed from unseal to full access. 

  • Hello Monica, 

    I recommend referring to the following e2e post as I believe this is a similar thread to what you are experiencing. 

    Regards, 

    Jonny.