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.

BQ78350-R1: BQ studio 1.3.86 SMBUS adress & Firmware issue

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

Hi all,

I have an issue with BQ studio 1.3.86. I can't "Read srec from device" when gauge is with SMBus adress 0x20. It's with "SMBTAR_ADDR0" selection. Can you solve this one?

I'm using the BQ78350R1

Best regards,

Loïc

  • Hi Loic,

    I tried this. After selecting to use the SMBA pin, bqStudio does lose communication with the device. If I cycle power on the device and push the wakeup button, it is able to reestablish communication and then I am able to read the srec.

    It looks like you are using the most recent version of bqStudio which is good. Have you tried to cycle power to see if this works?

    Best regards,
    Matt
  • Hi Matt,

    Maybe you can communicate for reading .srec because the SMBus address of  your BQ change to 0x17 after POR. Can you confirm that ?

    But in my case, SMBus adress keep to 0x20, then BQstudio miss the communication with the gasgauge

    Best Regards

    Loïc

  • Hi Loic,

    I was able to repeat what you are seeing. There is a way to communicate with the device with the new address that you can try. When you open bqStudio, it will not automatically recognize the device because of the new address. Select 'Gauge' and near the bottom of the window you can select a new SMBus Target address - here you can choose 'Scan All' and bqStudio should be able to find the device.

    Best regards,

    Matt

  • Hi Matt,

    It's not my issue.

    My problem is that I try to Read firmware with the command "Read Srec From device".

    You can see screenshot below :

    Before, I have full unseal the gauge

    Then, when I want Read SREC I have an error. The Gauge has resetting and the BQ studio cannot communicate with the gauge under the 0x20 SMBus address :

    Thank you for your help,

    Best Regards,

    Loïc

  • Hi Loic,

    One thing to try: Click on the green "Auto Refresh is ON" banner at the top of the Dashboard. It is always important to turn the Dashboard off when reading or writing an srec. This prevents any interference on the SMBus. I am not certain that this is causing the problem you are seeing, but I have seen it cause this problem in the past.
    Please try this a few more times. If the problem still will not resolve, you can export the SREC using the default SMBus address, and I can help you to edit the SREC manually. Hopefully this will not be necessary.

    Best regards,
    Matt
  • Hi Matt,
    I tried your solution but it always doesn't work.
    My only possibility is to force SMBA pin to 0 for have the default of the SMBus (ADRESS 0x16).
    Finally, the "Read SREC from device" command on BQ studio doesn't works when the SMBus Adress is different of default SMBus adress.
    Maybe can you contact development team for try to update BQstudio for resolve this issue ?

    Best Regard,
    Loïc
  • Hi Loic,

    Sorry to hear this. I just tried the "Read SREC from Device" and I am seeing the same problem.

    I will pass this issue on to our software team, but I think it will be a long wait before they can provide a solution. It would need to wait until the next BQStudio release and go through software validation testing.

    One way to work around this is to save the SREC file with  SMBConfiguration [FIXED_ADDR] set to 1 and then manually edit the srec file. I will show you an example below. I am using the latest version of the BQ78350-R1 firmware from ti.com (available here: http://www.ti.com/lit/zip/sluc594)

    The SMBConfiguration data flash is located at address 0x4462 as noted in the TRM. The default value is 0xA0 and I want to set this to 0x20 in order to update the FIXED_ADDR bit to zero.

    Here is the modification. For the SREC line I am editing, I also need to calculate a new checksum. The checksum is the lowest byte of the two's complement of the sum of all bytes after the 'S3'. Checksum = 0xFFFF - (0x28 + 0x00 + 0x00 + ...... + 0x32 + 0x01) = 0xF90B  (So, '0B' is the new checksum). If you use Notepad++, it will automatically recognize the Srec format and highlight the checksum in green if it is correct or red if it is incorrect.

    At this point, I am able to load the new Srec into BQStudio with no issue. I still cannot do "Read SREC from device", but I am able to do everything else as long as I 'Scan All' addresses when I open BQStudio.

    Best regards,

    Matt