Other Parts Discussed in Thread: BQSTUDIO, EV2400
I am using bq27542-g1 fuel guage. I need to update the firmware with .bqfs and .dffs file, which client has provided me. We use a custom code for programming, since we dont have a EVM 2400 and bqstudio.
The logic used is as :
Read from .dffs file -> Write to i2c depending on the W, C, X instruction.
If C instruction is failed , multiple recheck is done , then execution will stop after exiting from ROM mode.
The issue i have is , I can read from file and write to i2c upto line 21 in .dffs file without any errors.
Line 21 shows an i2c failure. Also next C command result is not satisfactory(0x02 is obtained instead of 0x00)
What am i supposed to do overcome this issue?
Question:
1. What is the minimum delay between successive write command ?
2. Since some write command is greater than 32 bytes, it is splitted into chunks of 32 bytes. Will it create any impact on firmware update?
3. Should i use i2c stop after each write ?? // read in some e2e post like that
4. is there any source code available for this?