Q1. I generate a df.fs file for BQ27542 from BQStudio 1.3.101.
Then, I modified only one data memory content: Configuration -> Manufacturer Data -> Hardware revision from 0x030b to 0x030c
I generate a new df.f.s file.
The diff between the two files gives the following:
--- 1.df.fs 2021-08-08 16:08:16.000000000 -0700 +++ 2.df.fs 2021-08-08 16:10:02.000000000 -0700 @@ -110,8 +110,8 @@ W: 16 64 FF 0A X: 2 C: 16 66 00 -W: 16 00 0A 11 00 00 3C 02 26 05 01 F4 02 58 05 02 26 00 00 00 00 00 00 03 0B 00 00 00 00 1E 00 FF 04 6F 16 00 00 6A -W: 16 64 1E 04 +W: 16 00 0A 11 00 00 3C 02 26 05 01 F4 02 58 05 02 26 00 00 00 00 00 00 03 0C 00 00 00 00 1F 00 FF 04 6F 16 00 00 6A +W: 16 64 20 04 X: 2 C: 16 66 00 W: 16 00 0A 12 00 00 58 00 00 0E 74 00 31 00 00 00 01 00 00 03 84 0B B8 2B 5C FE 70 50 00 0A 7F 07 01 00 96 00 AF 00 @@ -158,11 +158,11 @@ W: 16 64 0B 0B X: 2 C: 16 66 00 -W: 16 00 0A 1D 00 00 3C 02 26 05 01 F4 02 58 05 02 26 00 00 00 00 00 00 03 0B 00 00 00 00 1E 00 FF 04 6F 16 00 00 6A -W: 16 64 2A 04 +W: 16 00 0A 1D 00 00 3C 02 26 05 01 F4 02 58 05 02 26 00 00 00 00 00 00 03 0C 00 00 00 00 1F 00 FF 04 6F 16 00 00 6A +W: 16 64 2C 04 X: 2 C: 16 66 00 -W: 16 00 0A 1E 00 00 FF FF FF FF 00 00 01 1E FF FF FE E0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF +W: 16 00 0A 1E 00 00 FF FF FF FF 00 00 01 20 FF FF FE DE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF W: 16 64 0B 1C X: 2 C: 16 66 00 @@ -174,7 +174,7 @@ W: 16 64 08 00 X: 2 C: 16 66 00 -C: 16 04 4F 6D +C: 16 04 53 6D W: 16 00 05 W: 16 64 05 00 X: 170
As you can see, there are two identical modified lines. I understand tha the checksum line is different but the line with this specific content is outputted twice in the df.fs file so it appears twice in the diff file. There is duplicate information in the df.fs file
Can you explain?
Q2. There is a delay of 4s at the end of the df.fs file when executing the code. That's pretty long. Is it really necessary? Why is the delay so long? Wouldn't it better to do a reset (0x41) of the chip?