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: Programming SREC File Using customer Tools trough the SMBus

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

Hello,

I'm now looking for the information. We whant to program the TI chip with our one microcontroller. We have the SREC file and would like to send the file trourgh the SMbus(I2C) interface.
Can you provide me extra information on how to do this ?

0x44 ManufacturerBlockAccess( I think this is the yellow part for the 16bit address of the Block access command)

How to tell the BQ78350 the red circle address in the SREC file(the higher bits of the address marked in RED circle in the SREC)?

Kind regards
Rens

  • Hello Rens,

    The SREC file is in standard Motorola SREC format. It does not have any commands. I am not sure what question is being asked.

  • Hello Shirish,

    I look for information on how to program our devices for mass-production This for R2 and R3. I whant to know how to transfer data to the BQ78350 Regarding the Program file that is in the format SREC.   We will programm it trough the SMbus of the controller.

    We are already have full control to program the register data flash acces registers. This torugh ManufacturerBlockAccess.

    Now we will like to program the software releases R2 and R3 with our controller if i look at the E2E suport I see the link:

    https://e2e.ti.com/support/power-management-group/power-management/f/power-management-forum/975597/bq78350-programming-options-for-mass-production-automation

    I have seen other similar questions on the forum (link), and see that some information was sent in a private message... Would it be possible to get this information? I have already read the other documentation etc. linked in this post.

    So can you provide me this information and is it telling me the operation on how to program the BQ78350?

  • Hello Rens,

    This is the link to the guide for programming in mass production

    https://www.ti.com/lit/an/slua742/slua742.pdf

  • Hello Shirish,

     thanks for the document. but this does not clarify everything for me. Let me explain where I get stuck in the information I have until now.

     
    I have created A SREC file with BQ-studio. If I look at the file with an editor I see that the Header record is there Type S0 and that the rest of the file is Type S3 this is according to  Motorola SREC standard A format with an 32bits address.

     

     
    If i look at the document slua742.pdf  I see that the system is 16bits adress.
    In Figure 1 the starting address for a block read has been written to block command 0x44 using the Write
    Block button. Note the little endian notation where the address 0x4000 is written as 00 then 40.

     

    If i now look again in the begin of the file.SREC I see for example 00004000 that is the address 0x4000 and can be written to the TI with an Write-block-command and the following blocks looks the similar but if i look down in the file.SREC  I see for example 001043F3 this is more than the 16 bits used in the begin of the SREC and More then the 16 bits with the block write command of the document slua742.pdf

     

     Shirish, can you explain how to handele this en send this 32bits adress format to the Ti device BQ78350?

     

    Below parts off File.SREC that was generated by Bqstudio(read SREC from device):

    S01C000054494338313620737265636F7264000077000000344B8D2B4064
    .........
    S328000043D4FF4EFF3EFF36FE34FF76FEF3FB40F7D1E5C3FFC2FFB4FF9EFF84FFBBFFC1FFBBFFC5FF33
    S328000043F7C6FFDEFFA7FF9AFFCFFFE9FFD8FF18FF12FF15FF5CFF1CFF12FF1FFEE9FEE5FEE3FF267D
    S3280000441AFF19FEE0FF4FFF9C0000000000000000000000000000000000000000000000000000009A
    .........
    S328001043D0003AFD2F000EABFD003AB328003AF6CA000EABFD003AB323003AFBAA003ACD6D0016A9B1
    S328001043F3010016A8010023FFFF000378FF000379FF000CBBCB003AB31D003AB3180016A901001644
    S32800104416A8010023FFFF000EACFE0033EEF5000DAFCC000DBFBB000E1B000032EEF6000EA1BB001D
    ...........
    S32800117FC53FFFFF003FFFFF003FFFFF003FFFFF003FFFFF003FFFFF003FFFFF003FFFFF003FFFFF5D
    S31D00117FE8003FFFFF003FFFFF003FFFFF003FFFFF003FFFFF003FFFFFFC



    Kind regards
    Rens

  • Hello Rens,

    I think what Matt was referring to is that the SREC contains Instruction flash (the longer addresses) which is not needed if you are just uploading the data flash (the address range in the 4000s). If the SREC from your golden image is for the same firmware on the gauge you are trying to upload to, you do not need to modify the instruction flash.

    Sincerely,

    Wyatt Keller

  • Hello Wyatt,

    We not only plane to update the data flash but also the instruction flash. We have devices with R1A but also R2 and now we are migrating to R3 firmware.Therefore we need also have to program the instruction flash. Can you  explain how to do this?

    Kind regards

    Rens

  • Hello Rens,

    I think Shirish will have a better explanation for programming the SREC and it's formatting, he is back in office tomorrow and will be able to help then.

    Sincerely,

    Wyatt Keller

  • Hi Rens,

    How are you programming the R2 firmware today? I think the process should be the same for programming the R3 firmware. Or are you using a special tool that is only for programming R2 firmware?

    Regards,

    Matt

  • Hello Matt,

    We are now programming the device with the EV2400. For production it is to difficult.

    We are going to use our one interface from USB to I2C and want to have dedicated PC C software to program the R3 and also fill in production data. This should done with a PC software that we are writing to transfer the R3 version an production data to the device. We have to program  our USB to I2C  translator with the correct software that it can handle the 32 bit address from the SREC file(from the PC) in to correct information for the I2C interface.

    Can you can give me the information how the Program data (the data flash but also the instruction flash) is transferred to the BQ78350 trough the i2C interface?

     

    Kind regards

    Rens

  • Hello Rens,

    The 32 bit address in the srec indicates instruction flash which is not writeable using the commands that are used to write data flash. There is no published data on instruction flash programming.

  • Hello Shirish,

     

    That's a pity to hear BQ studio is programming the program memory so it must be possible to program.

     

    If I follow some other conversations in the past you I see in "BQ78350: ROM Mode Exit and writing DataFlash "the next info:

    Since you are asking about ROM Mode, I assume you are trying to write the R2 firmware to the device? I have a firmware updater program that can be used along with an EV2400 and I also have some Python example code for loading an srec to the device. I will send you the links to both in a private message.

    This message is coming from Matt.

     

    I think this is also the question where  the program memory is  programmed. So is it possible get this information?

     

    kind regrads

    Rens

  • Hello Shirish,

    Is it still possble to get contact about this issue?

    Kind regards
    Rens

  • Hello Rens,

    I will send you a private message for contacts.