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: Error during programming

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

Hi E2E,

We are using BQ27220 in one of our projects for battery percentage calculation. We have generated the golden image using EV2300, software version 3.1m. When we open smart flash to program the OTP a pop comes with error "unhandled exception is occurred in your application". Image for the same is attached below-

After clicking on tab continue a window opens but there is no version or gauge name (attaching the image for the same)-

please assist on above issue.

  • Hi Aditya,
    Are you able to communicate with the gauge using bqstudio and the ev2300. If so, did you set up your system as described in section B3.2 of the trm?
    www.ti.com/.../sluubd4.pdf. If you are unable to initially communicate with bqstudio, then you should check to make sure your board is functional.
    thanks
    Onyx
  • Hi Onyx,

    Yes, I am able to communicate with gauge using bqstudio and the EV2300. Our board is fully functional i.e. we are able to read data from gauge resistors through the onboard CC2640 microcontroller.
  • I have also tried to install the latest version of .Net, still same error is coming.
    Please assist on the same.
  • pls describe the steps you are following to set up your board and then to program the OTP.

    thanks
    Onyx
  • Hi Onyx,

    Now I am using EV2400 instead of EV2300. SmartFlash is detecting the gauge but when I tried to flash, it failed.

    Logs are showing NAK after I2C write operation (attaching the SmartFlash logs for reference).

    We have made electrical connection to target board and EV2400 according to TRM only and following every step defined in TRM for flashing .OTFS file.

    15-11-2017 13:03:58 >> SmartFlash v0.9.3
    15-11-2017 13:04:22 >> Open FS File: D:\New folder\HHIU_SHSC\Golden image\0220_0_03-bq27220.ot.fs
    15-11-2017 13:04:22 >> FileTarget: 220 v0.03
    15-11-2017 13:04:29 >> Target Gauge: 220 v0.03
    15-11-2017 13:04:29 >> Programming Gauge...
    15-11-2017 13:04:30 >> ERROR: Received NAK 14 - NAK received on I2C Write.
    15-11-2017 13:04:30 >> ERROR: Received NAK 15 - NAK received on I2C Write.
    15-11-2017 13:04:30 >> ERROR: Received NAK 17 - NAK received.
    15-11-2017 13:04:30 >> ERROR: Cannot parse FS data in line 18 - Destination array was not long enough. Check destIndex and length, and the array's lower bounds.
    15-11-2017 13:04:30 >> ERROR: Received NAK 19 - NAK received on I2C Write.
    15-11-2017 13:04:30 >> ERROR: Received NAK 21 - NAK received.
    15-11-2017 13:04:30 >> ERROR: Received NAK 22 - NAK received on I2C Write.
    15-11-2017 13:04:30 >> ERROR: Received NAK 23 - NAK received on I2C Write.
    15-11-2017 13:04:30 >> ERROR: Received NAK 25 - NAK received.
    15-11-2017 13:04:30 >> ERROR: Received NAK 26 - NAK received on I2C Write.
    15-11-2017 13:04:30 >> ERROR: Received NAK 27 - NAK received on I2C Write.
    15-11-2017 13:04:30 >> ERROR: Received NAK 29 - NAK received.
    15-11-2017 13:04:30 >> ERROR: Received NAK 30 - NAK received on I2C Write.
    15-11-2017 13:04:30 >> ERROR: Received NAK 31 - NAK received on I2C Write.
    15-11-2017 13:04:30 >> ERROR: Received NAK 33 - NAK received.
    15-11-2017 13:04:30 >> ERROR: Received NAK 34 - NAK received on I2C Write.
    15-11-2017 13:04:30 >> ERROR: Received NAK 35 - NAK received on I2C Write.
    15-11-2017 13:04:30 >> ERROR: Received NAK 37 - NAK received.
    15-11-2017 13:04:37 >> ERROR: Received NAK 44 - NAK received on I2C Write.
    15-11-2017 13:04:37 >> ERROR: Received NAK 45 - NAK received on I2C Write.
    15-11-2017 13:04:43 >> ERROR: Received NAK 51 - NAK received.
    15-11-2017 13:04:43 >> ERROR: Received NAK 52 - NAK received on I2C Write.
    15-11-2017 13:04:43 >> ERROR: Received NAK 53 - NAK received on I2C Write.
    15-11-2017 13:04:43 >> ERROR: Received NAK 55 - NAK received.
    15-11-2017 13:04:43 >> ERROR: Received NAK 59 - NAK received on I2C Write.
    15-11-2017 13:04:43 >> ERROR: Received NAK 60 - NAK received on I2C Write.
    15-11-2017 13:04:47 >> ERROR: Programming failed!
    

  • Hi Onyx,

    Now we are able to flash in OTP of the gauge.
    Problem was that SmartFlash is not running the command to unseal OTP.
    First I have unsealed the OTP using BqStudio, after that flashed .OTFS file by SmartFlash.
    So, either mention this step in TRM or add provison for the same in SmartFlash itself.