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.

BQ76940EVM: Simulation issue| Debugging Methods

Part Number: BQ76940EVM
Other Parts Discussed in Thread: BQSTUDIO
Hello Team
I am having the following problem. I am not sure about how to debug

The bms is Texas instruments bq76940evm. I have not connected any battery to the terminals running in simulation.it is fed with power supply voltage 45V DC but across the sixth cell the voltage in  bqstudio is 61mv but when I physically measure the voltage across each cell it is as a pack 45VDC and reducing by 3V as I keep measuring by reducing the series terminal of cells. Bqstudio is showing TDA  (terminate discharge alarm) XDSG( terminate discharge) SS ( safety status mode)

Is there a Firstout log available?

In such case how can I debug? Is there a way to bypass or mask the bits which are high
The communication with the bqstudio is ending within a minute
Please suggest!
  • Hi Dripta,
    Did you configure the number of cells for your gauge correctly? pls follow the instructions in the user guide for the EVM on configuring the number of cells.
    thanks
    Onyx
  • Hi onyx

    The AFE cell Map is 0x7FFF as per the instruction manual for BQ76940EVM. This is the error message I am receiving. Do you think reinstalling bqstudio is a good option? I could not find the log fileanywhere inside the Texas Instruments folder.

  • Fri Aug 04 10:54:08 CEST 2017
    
    Device Name = bq78350_R1
    Firmware Version = 1_03
    
    Design Capacity = ERROR : Please check C:\ti\bqstudio.log.err
    Design Voltage = ERROR : Please check C:\ti\bqstudio.log.err
    Specification Info = ERROR : Please check C:\ti\bqstudio.log.err
    Manufacturer Date = ERROR : Please check C:\ti\bqstudio.log.err
    Serial Number = ERROR : Please check C:\ti\bqstudio.log.err
    Manufacturer Name = ERROR : Please check C:\ti\bqstudio.log.err
    Device Name = ERROR : Please check C:\ti\bqstudio.log.err
    Device Chemistry = ERROR : Please check C:\ti\bqstudio.log.err
    
    Sample,DateTime,ElapsedTime,ManufAccess,RemCapAlarm,RemTimeAlarm,BattMode,@Rate(@),@TimeFull,@TimeEmpty,@RateOK,Temperature,Voltage,Current,AvgCurr,MaxErr,RSOC,ASOC,RemCap,FullChgCap,RunTimeEmty,RunTimeEmty,AvgTimeFull,ChgCurr,ChgVolt,BattStat,CycleCnt,PendingEdv,SoH,OpStatA,OpStatB,TempRange,ChgStat,GaugeStat,MfgStat,SafetyAlertAB,SafetyStatAB,SafetyAlertCD,SafetyStatCD,PFAlertAB,PFStatAB,PFStatAB,CellVolt1,CellVolt2,CellVolt3,CellVolt4,CellVolt5,CellVolt6,CellVolt7,CellVolt8,CellVolt9,CellVolt10,CellVolt11,CellVolt12,CellVolt13,CellVolt14,CellVolt15,ExtAvgCellVolt,TS1 Temp,TS2 Temp,TS3 Temp,CellTemp,FetTemp,GaugeInternalTemp,LogRowTime(ms),LogStatus
    1,2017-08-04 10:54:12,4.002,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,2113,ERROR : Please check C:\ti\bqstudio.log.err
    2,2017-08-04 10:54:16,8.001,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,2559,ERROR : Please check C:\ti\bqstudio.log.err
    3,2017-08-04 10:54:20,12.002,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,3022,ERROR : Please check C:\ti\bqstudio.log.err
    4,2017-08-04 10:54:24,16.001,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,3003,ERROR : Please check C:\ti\bqstudio.log.err
    5,2017-08-04 10:54:28,20.001,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,3386,ERROR : Please check C:\ti\bqstudio.log.err
    6,2017-08-04 10:54:32,24.002,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,3885,ERROR : Please check C:\ti\bqstudio.log.err
    7,2017-08-04 10:54:36,28.347,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,4047,ERROR : Please check C:\ti\bqstudio.log.err
    8,2017-08-04 10:54:41,32.879,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,4760,ERROR : Please check C:\ti\bqstudio.log.err
    9,2017-08-04 10:54:46,38.128,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,4876,ERROR : Please check C:\ti\bqstudio.log.err
    10,2017-08-04 10:54:51,43.517,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,5503,ERROR : Please check C:\ti\bqstudio.log.err
    11,2017-08-04 10:54:57,49.563,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,5998,ERROR : Please check C:\ti\bqstudio.log.err
    12,2017-08-04 10:55:04,56.083,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,6203,ERROR : Please check C:\ti\bqstudio.log.err
    13,2017-08-04 10:55:11,62.802,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,6675,ERROR : Please check C:\ti\bqstudio.log.err
    14,2017-08-04 10:55:18,70.000,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,7897,ERROR : Please check C:\ti\bqstudio.log.err
    15,2017-08-04 10:55:26,78.503,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,7947,ERROR : Please check C:\ti\bqstudio.log.err
    16,2017-08-04 10:55:35,86.973,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,7645,ERROR : Please check C:\ti\bqstudio.log.err
    17,2017-08-04 10:55:43,95.144,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,7792,ERROR : Please check C:\ti\bqstudio.log.err
    18,2017-08-04 10:55:51,103.486,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,8588,ERROR : Please check C:\ti\bqstudio.log.err
    19,2017-08-04 10:56:00,112.611,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,8511,ERROR : Please check C:\ti\bqstudio.log.err
    20,2017-08-04 10:56:10,121.692,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,9323,ERROR : Please check C:\ti\bqstudio.log.err
    21,2017-08-04 10:56:19,131.562,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,10599,ERROR : Please check C:\ti\bqstudio.log.err
    22,2017-08-04 10:56:31,142.722,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,9658,ERROR : Please check C:\ti\bqstudio.log.err
    23,2017-08-04 10:56:41,152.956,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,10136,ERROR : Please check C:\ti\bqstudio.log.err
    24,2017-08-04 10:56:52,163.675,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,10739,ERROR : Please check C:\ti\bqstudio.log.err
    25,2017-08-04 10:57:03,175.065,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,10836,ERROR : Please check C:\ti\bqstudio.log.err
    26,2017-08-04 10:57:14,186.488,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,11014,ERROR : Please check C:\ti\bqstudio.log.err
    27,2017-08-04 10:57:26,198.113,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,12283,ERROR : Please check C:\ti\bqstudio.log.err
    28,2017-08-04 10:57:39,210.990,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,11616,ERROR : Please check C:\ti\bqstudio.log.err
    29,2017-08-04 10:57:51,223.207,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,11869,ERROR : Please check C:\ti\bqstudio.log.err
    30,2017-08-04 10:58:04,235.692,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,12303,ERROR : Please check C:\ti\bqstudio.log.err
    31,2017-08-04 10:58:16,248.611,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,12691,ERROR : Please check C:\ti\bqstudio.log.err
    32,2017-08-04 10:58:30,261.939,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,12953,ERROR : Please check C:\ti\bqstudio.log.err
    33,2017-08-04 10:58:43,275.517,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,13404,ERROR : Please check C:\ti\bqstudio.log.err
    34,2017-08-04 10:58:57,289.552,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,13768,ERROR : Please check C:\ti\bqstudio.log.err
    35,2017-08-04 10:59:12,303.973,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,14700,ERROR : Please check C:\ti\bqstudio.log.err
    36,2017-08-04 10:59:27,319.315,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,14412,ERROR : Please check C:\ti\bqstudio.log.err
    37,2017-08-04 10:59:42,334.379,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,14771,ERROR : Please check C:\ti\bqstudio.log.err
    38,2017-08-04 10:59:58,349.816,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,15118,ERROR : Please check C:\ti\bqstudio.log.err
    39,2017-08-04 11:00:13,365.613,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,15413,ERROR : Please check C:\ti\bqstudio.log.err
    40,2017-08-04 11:00:30,381.692,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,15796,ERROR : Please check C:\ti\bqstudio.log.err
    41,2017-08-04 11:00:46,398.174,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,16129,ERROR : Please check C:\ti\bqstudio.log.err
    42,2017-08-04 11:01:03,415.004,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,16489,ERROR : Please check C:\ti\bqstudio.log.err
    43,2017-08-04 11:01:20,432.175,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,16806,ERROR : Please check C:\ti\bqstudio.log.err
    44,2017-08-04 11:01:38,449.673,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,18511,ERROR : Please check C:\ti\bqstudio.log.err
    45,2017-08-04 11:01:57,468.911,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,18641,ERROR : Please check C:\ti\bqstudio.log.err
    
    Hi Onyx

    The log attached herewith. I tried reinstalling bqstudio but that didn't help. To update you about the case history the 15cell configuration was running fine but  it has happened all of a sudden. after I started to read data from I2C bus. When I connect my raspberry pi to the EVM i2c port after 12 sec(approx) it loses communication and to regain it i need to reset the evm but that keeps repeating.