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.

BQ40Z60: programming BQ40Z60

Part Number: BQ40Z60


Dear 

Faced a problem when programming BQ40Z60. We want programming BQ40Z60 for Mass Production without EV2300. We write through our microcontroller. 

We need to write a complete srec file (if we program only the flash data memory (0x4000-0x5FFF) we have errors).

There are no recommendations in the technical documentation on how to write a srec file. The topic has already been raised. We are still waiting for a decision.

  • Hi,
    Unfortunately the ROM commands for entire srec programming are proprietary.
    Also, even though the data flash spans 0x4000 to 0x5fff, not all these locations can be written to.
    Please refer to www.ti.com/.../slua743 which is also applicable to bq40z60.
    This document will help you export the data flash locations that are needed for production, and then you can write your microcontroller code to write this data to the gauge for production.
    Regards,
    Swami
  • Hi Swami
    Please read the topics: BQ40Z60 What data is recorded at 0010x0000 (e2e.ti.com/.../713857) and BQ40Z60: Flash Records (e2e.ti.com/.../2725958
    We studied this and other documents, wrote flash data in the entire range of 0x4000-0x5FFF and only in the range of a hex file (0x4000-0x4c78) ... We tried different options. There are no stable positive results. If it should work, then where is our mistake?
    We are waiting for your recommendations for recording data without using EV2300.
    Best regards
    Anatoly
  • Hi Anatoly,
    I would recommend a tool like total phase Ardvark or beagle to record the data for programming data flash and then reproduce it on your micro.
    Unfortunately I am only familiar with the tools available in the gauge group, and this is the best guidance I can provide.
    Regards,
    Swami
  • Thanks for the answer.
    We update our software via an SD card.
    We do the same with BQ. The srec file with our settings is written to SD. From it are taken and recorded data in the specified range.
    But if you record only part of the data flash, then errors occur in the operation of the microcircuit (you made the experiment, I described it before). Errors occur while writing (for a very long time there is no answer from BQ).
    But if we write through the EV2300, then everything works fine. Therefore, there was a need for information on how to write a complete srec file.
  • Unfortunately I am not able to provide this proprietary information to you.
    Apart from the recommendations given earlier , there is nothing further to add in this case.
    Regards,
    Swami
  • Dear Swami, I understand that you cannot provide confidential information.
    I do not understand why it is confidential.
    We have implemented your recommendations for writing data flash. But did not get a positive result.
    I do not consider sniffing the data (as recommended in the previous topic). Programmer fears mistakes.
    Recording via EV2300 on a stream is not very convenient. It is necessary to transfer the modules to another workplace. This is a waste of time and productivity. I see that someone on the forum succeeded.
    I do not know what might change and cause a failure other than data in the flash (0x4000-0x5FFF). Can I send you our srec file? It may be that you do not need to disclose "confidential information", or maybe we need to change the settings or something else.
    Regards,
    Anatoly