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.

BQ34Z100-G1: program a file srec

Part Number: BQ34Z100-G1
Other Parts Discussed in Thread: BQ78350, , BQ34Z100, BQSTUDIO

I use the EV2300 customer development kit VB software to program an SREC file into fuel gauges such as the BQ78350, how do I get it to work for the BQ34Z100-G1?  Does the ProgramFromSrec function only work on the SMBUS interface?  if so can I connect the BQ34Z100 to this interface and use this function?

Thanks.

  • Hi Glyn,

    With respect to the customer development kit VB software, the following attachment is the support that we can provide:

    e2e.ti.com/.../4331.EV2300-Customer-Kit-_2800_1_2900_.zip

    There are code examples contained within.

    Sincerely,
    Bryan Kahler
  • I'm referring to the ActiveX control function:-

    Function ProgramFromSrec(Filename As String) As Integer
    ProgramFromSrec = Form1.Bq80xRW1.ProgramFromSrec(Filename)
    End Function

    I'd like to use this function to load an SREC file into the BQ34Z100-G1, but does this function only work on the SMBUS interface? if so, will it work if I connect the BQ34Z100-G1 to the EV2300 SMBUS interface? If not, how can I automate the process of loading an SREC file into the BQ34Z100-G1. Thanks.
  • Hi Glyn,

    The above linked documents are all the support that is given for that particular code package.

    A newer method of automating the process of loading an SREC file into the bq34z100-G1 is to use bqStudio and export a DFFS or BQFS file (DFFS includes data memory, BQFS includes both instruction and data memory). When exporting the SREC with bqStudio, also export the DFFS and/or BQFS. The format of the DFFS is mnemonics followed by hex for the necessary I2C commands to program the device.

    A description of the DFFS and BQFS file formats as well as example C code is provided here: www.ti.com/.../slua801.pdf

    Sincerely,
    Bryan Kahler
  • The question is, does the old code only write SREC files to gauges on the SMBUS interface, or will it also work when the gauge is connected to the I2C interface? Please can you take a look at the old code and answer this for me. Does BQstudio have any ActiveX controls that I can access for writing these files? It would be helpful if I could download example software like the old code that I could use instead of having to write drivers myself. Thanks.
  • Hi Glyn,
    Yes, you can use the I2C interface to program .srec files, but we don't have sample code.
    The alternative which Bryan mentioned might be easier. You can use the Golden Image plugin in bqStudio to export a .bq.fs or .df.fs file and then parse that file by following the example in this app note: www.ti.com/.../slua801.pdf