Other Parts Discussed in Thread: TPS65982
I'm trying to write a patch bundle to the TPS25750 using the PBMs function. I have a few questions regarding implementation and also side effects.
When looking at the data payload description for this command I can see that it takes a four byte size. If my bundle were 24,000 bytes, would the order be Device Addr. -> Len (6) -> 0x00 -> 0x00 -> 0x5D -> 0xC0 -> Slave Addr. -> Timeout?
I understand the the slave address is a user specified address, but to be clear this address refers to itself (the TPS25750)? And it can be anything other than 0x00 and the defined ADCINx addresses, correct?
When sending the patch bundle to the I2C slave address mentioned above, should the data be sent raw (Slave Addr. -> data bytes), or should I be including a length before the data as well (Slave Addr. -> Length of patch segment -> data bytes)? Adding a byte diagram for this in the documentation would be very useful, unless I'm overlooking something that should be obvious.
Would looping, say 128 bytes of this raw data, until I'm finished be a reasonable way to accomplish this? (Slave Addr. -> data byte 1 -> data byte n -> data byte 128)
Can I write the entire 32k bin file that is intended for the EEPROM for this PBMs command, or is there anything extra I have to include/filter out? Presumably the 32k EEPROM file contains both high and low region patch bundle.
And finally, as a side effect does the patch also get written to the EEPROM? My guess is not.