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.

Program DFI File into BQ27541 *not* using TI-Tools

Other Parts Discussed in Thread: BQ27541-G1

Hello, I just want to write a small program to be used for production programming the golden DFI file, instead using TI- Tools for this Task because the Tools are useful for developers but probably not designed to be used in production :-(, ok, as a starting point I've read SLUA504A (Going to production with the bq2754x), starting on Page 9 I've found a nice "howto"- flow chart, but how do I "read 96 bytes from data register ..." or "read register 0x66" ? I did not find any docs according to the ROM- Mode of the device ( I2C Adress 0x16), only "normal" read/writes to/from address 0xaa/0xab ?

So, my questions are:

1) does anybody at TI have a doc regarding the ROM- Mode of the BQ27541-G1 ( commands ? )   or if not applicable

2) what bytes should I send to perform "read register 0x66" ?

Thx for any help, best regards, Enrico

PS: It would be *very* nice if an TI- employee have an answer for me, or at least some hints where to look for some documents ;-) ....

  • Hi Enrico,

    Instead of implementing that flowchart, I would recommend you try to convert your senc file into dffs/bqfs files and use the Flashstream method.  It's detailed here:

    http://www.ti.com/lit/pdf/slua541 

  • Hi dMax,

    thx for the hint- I'll will do it this way ;-),

    Best Regards, Enrico

  • Hi dMax,

    hmm, even with the .dffs File the "Read"- Problem still exists, I understand "R: I2CAddr RegAddr NumBytes" but what does that mean on the I2C- Side ? Looking at the I2C side should I do:

    send I2CAddr as Write,

    send RegAddr as Write, Stop

    do a repeated Start,

    send I2Caddr as Read

    read NumBytes

    ? *OR* is there a command "Read from Register" ? in this case the sequence probably is:

    send I2CAddr as Write,

    send "Read from Addr" ? as Write,

    send RegAddr as Write, Stop

    do a repeated Start,

    send I2Caddr as Read

    read NumBytes

    can You please explain it to me ?

    Thx in advance, Enrico

  • Hi dMax,

    hmm, even with the .dffs File the "Read"/"Write"- Problem still exists, I understand "R: I2CAddr RegAddr NumBytes" but what does that mean on the I2C- Side ? Looking at the I2C side should I do:

    send I2CAddr as Write,

    send RegAddr as Write, Stop

    do a repeated Start,

    send I2Caddr as Read

    read NumBytes

    ? *OR* is there a command "Set Register Pointer to Register" ? in this case the sequence probably is:

    send I2CAddr as Write,

    send "Set Register Pointer to Address" ? as Write,

    send RegAddr as Write, Stop

    Now read as follows:

    send I2Caddr as Read

    read NumBytes

    can You please explain it to me ? I need at least the "Set Register Pointer to Address"  I2C- command

    Thx in advance, Enrico