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.

Oddities in the Battery Management Studio menu

Other Parts Discussed in Thread: BQ40Z60, BQ27541, BQSTUDIO, BQPRODUCTION

Good afternoon.

We have some problem. There is a need to convert the file srec to flashstream. We installed on different computers the same Battery Management Studio version, but on one computer there was such a possibility on the menu (as 4 paragraph "Calibration"!), and on the other two machines this possibility has not appeared.

With what it can be connected? Also, on all machines by changing on chip (BQ40Z60) the firmware from version 13 to version 15 (and vice versa), the program has crash.

We want to convert srec file to flashstream file for BQ40Z60 chip. We met a mention that it is possible for the BQ2741. Maybe for BQ40Z60 simply it does not have such an possibility? Or is there?

  • My mistake: not BQ2741. Correctly BQ27541
  • The FlashStream tool and df.fs and bq.fs file formats only support I2C interface devices. They are not current configured to support SMBus interface devices such as the bq40z60. Are you trying to develop tools to program devices in production? You also mentioned that bqStudio crashes after you change the firmware in the device. At what point does it crash?
  • Yes, we developed tools to program devices in production. We looked SMBus signals at logic analyzer, and saw that before writing srec and after a lot of logic signals. We can transform srec in flashstream, but we need to know the protocol and its signals.
    As for the bqStudio crash: it happens after a successful completion of the firmware. After writing message about the successful completion firmware, the program stops responding.
  • I apologize. A little bit wrong. Based on your response, I realized that is not suitable for FlashStream bq40z60. But the details srec recording protocol on the bus we need for our tools in production
  • Our options for programming the srec to the device without using bqStudio or bqProduction are limited. I need to discuss this with our tools team to see what we can offer.
  • We would recommend that you use the srec file and program just the data flash portion of the file into the device. The srec file is a text file in the Motorola SREC format and the data flash is in the 8k x 8 starting at address 4000H.
  • As I understand it, in sreg-file address 4000...5FFF contain "Data flash", and address 100000 ... 10DFFF - firmware (and we do not need to touch it). We also assume that in the range of 140000...1401FF contains data for the security of the chip. Can you say, chemical data contained in these addresses (4000...5FFF)? BQ-studio's Data Memory menu have not this information, and we would like to clarify: memory programming in this range (4000...5FFF) will change the chemistry data which we need?

  • Yes, the chemistry data and other user defined parameters are located in the data flash memory space.
  • Good afternoon. Thank you for your explanation, we did everything as you said. We programm chip at addresses 4000...5FFF, but data at addresses 5F80 ... 5FCA is different from written when we read it back. Is this normal?

  • The end part of the Data flash addresses are reserved for use as scratch pad by the firmware, the read back on these address will not be the same every time. On this device the useful data flash should end at 0x4C92, after that till 0x5F80 it should be all FF.
  • Thank you!

    Please also advise me on another subject. In my design with BQ40Z60 I can’t manage to turn on GAUGE_EN in the orderly manner, i.e. with relaxed and undisturbed battery connected.

    Now I can only see the following options of setting GAUGE_EN on:

    -          BEFORE the battery is connected

    -          With battery connected, but under typical LOAD

    How can I minimize drawbacks?