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.

BQ40Z80: BQ40Z80 not able to communicate with BQ40Z80EVM-020

Part Number: BQ40Z80
Other Parts Discussed in Thread: BQSTUDIO, EV2400

Tool/software:

Dear Sir,

We have developed our custom BMS board using the BQ40Z80 chip. We are doing communication with our custom board BMS chip using the BQ40Z80-EVM20 module. In one of my custom BMS board communications, I am facing an issue. Actually, the board in which I am facing the communication issue was previously working fine but yesterday it was showing an error like "Not able to find a free communication adapter." First, I thought it may be a problem with Eval, as our custom board was working fine previously. But then I removed my custom BMS board and connected the other BMS board to the eval module, and it was working fine. As I was able to open the BQstudio and see the register status. Then I tried to check the reading registers of my custom BMS board, which was not working previously by connecting its I2C lines to STM controller and try to read registers through that.It was surprising; it was working fine it means that both the boards, i.e my custom BMS and BQeval which was not communicating with each other, now doing communication when some different device is connected to them. So, the question arises: how this issue occurred?  May be due to doing communication for a long time with the local board...
Please help me out in this.I am attaching the image for your reference; please have a look into it and let me know what can be done in order to solve this issue.I have also attached the srec file for your reference. Not able to export gg.csv file as communication was not working properly.

 16 jul (1).zip

Waiting for your response,

Thanks & Regards,
Shubham

  • Hi Shubham,

    When communication is attempted to be established with bqStudio, is the DA Configuration properly configured to represent the amount of cells in use?

    When EV2400 is attached, is the other controller (if on the board) potentially still communicating to the bq40z80?

    Regards,

    Anthony

  • Dear sir,

    Yes, it has been properly configured for 6 cells. As I have verified it with other BMS also. Let me know, if any further things to be checked.

    Regards,
    Shubham

  • Dear sir,

    Can you tell me what are the potential reasons due to which these " No free adapter for communication" issue shows. So, that I can verify it my end.

    Regards,

    Shubham

  • Hi Shubham,

    First, I thought it may be a problem with Eval, as our custom board was working fine previously. But then I removed my custom BMS board and connected the other BMS board to the eval module, and it was working fine. As I was able to open the BQstudio and see the register status. Then I tried to check the reading registers of my custom BMS board, which was not working previously by connecting its I2C lines to STM controller and try to read registers through that.It was surprising; it was working fine it means that both the boards, i.e my custom BMS and BQeval which was not communicating with each other, now doing communication when some different device is connected to them

    Can you please clarify the different boards that have bq40z80 and how these boards are being communicated with (EV2400, on board bq40z80EVM EV2400, etc)? I am unclear on the setup here.

    Regards,

    Anthony 

  • Dear sir,

    Previous issue has been resolved one issue has been occurring with one of our systems; please guide us to resolve it. Actually, sir yesterday our BMS board was communicating with our MSP430 eval controller but today after connecting with the eval, it was constantly showing below issue and even I was not able to communicate with my BMS

    1) "No acknowledgement from device"

    2) "Parity checksum mismatch"

    3) "Program srec: TImeout or unexpected respond communicating with the device".

    Irrespective of the issue, I was able to flash my BMS, but after flashing it was showing the same issue and communication breaks down. I am attaching the image for your reference, please have a look in to it.

    Also, sir one more issue which I want to know from you why this occurs. Actually, while flashing one of my BMS it was showing error like "YOUR DEVICE IS NOT IN ROM MODE MANUALLY ENTER IN ROME MODE BEFORE PROGRAMMING" why this issue occured & how to recover the device from this error.


    Waiting for your reply,

    Thanks & Regards,
    Shubham

  • Hi Shubham,

    When programming the device, it needs to be in ROM mode for it to accomplish the programming. However, the programming functionality in bqStudio should automatically put the device in ROM mode before attempting to do this. Has this been reproduced with a different device, and does this issue still appear if a different .srec is used?

    Regards,

    Anthony

  • Dear sir,

    This has not been produced on other devices, but still when I am using some device for a longer time and flashing different srec files on it for testing the different configurations on it. After some days, this issue has been seen on some of the devices. When I referred to the command section of my device and tried to reset my board, it was showing that my device is sealed. Then, I referred to the BQ40Z80 TRM related to this and found that when the device is sealed to unseal it, we have to provide some key numbers to it. When I clicked two times on the unseal command shown in the command section, then the command prompt got opened, showing the default unseal key as 0x1234. After clicking OK, it was not showing any improvement. So, I have changed the unseal to 0x5678 as mentioned in BQ40Z80 TRM, and after doing this, my device was able to flash and is not showing the ROM mode error. Now I am able to open my BQ studio and be able to reflash my board and change its configuration but am not able to read its parameters by another controller. Actually, MY BQ40Z80 I2C line, MSP430F eval I2C line, and STM I2C line are connected together. Earlier, I was able to read that by my STM controller, but as my device was showing an error and after unsealing the key, my BQ studio was opening, but my STM was not able to read this. So, is unsealigning the device creating any issue? How can I read my BMS parameters with the STM controller also? After unsealing the device, will my BMS also be able to perform all its operations?
    Please let me know. I have attached my TRM image section from where I have taken the reference.



    Waiting for your response,

    Thanks & Regards,
    Shubham

  • Hi Shubham,

    Actually, MY BQ40Z80 I2C line, MSP430F eval I2C line, and STM I2C line are connected together. Earlier, I was able to read that by my STM controller, but as my device was showing an error and after unsealing the key, my BQ studio was opening, but my STM was not able to read this.

    I do not believe that unsealing the gauge would cause this type of issue. When you are attempting to read using the STM, is the MSP430 and bqStudio still running? If they are on at the same time, there could be conflictions on the communication line that could potentially cause errors.

    Regards,

    Anthony