How to edit FCC on bq208xx, bq304xx, sn803xx chips
One option would be to read the EEPROM, save it to a file and edit it with a hex view by searching for the FCC value.
Also, you can upload it here the dump file.
Please paste the EEPROM file here, will fix FCC there so you could reflash it.
Please find attached corrected dump. FCC was set to 4000mAh because there was no information whether cells are renewed or left used.
Anyway you will need to make relearning cycle to let the chip calculate the proper capacity.
But I would like to know which program to edit it, so as not to bother you in the future.
You can use any HEX EDITOR software. But i don't recommend that you do it by yourself if you don't have experience. If you write wrong values you can brick the chip, and the battery can never be used again.
But I would like to know which program to edit it
Well, below is instruction how to do it.
You could use your favorite hex editor, for example 010 Editor or WinHex or another you like.
We will use 010 Editor in the example, you could download it here.
Open Windows Calculator and Change its mode to Programmer's view.
Open EEP file in the 010 Editor, press CNTRL-F and enter the value to search "FFEA".
Press Enter. It will find and stop on the first instance of value found. Press F3 to search Next instance. Confirm only one instance of FCC value is available in the file. If there are several instances available, use only the very first instance.
On the screenshot above it's shown that only one occurrence found at the offset 0x43 (67 in Dec). This is Ok so we proceed further.
Enter the required value of the FCC in Windows Calculator in Decimal format, then convert it to Hexadecimal.
In this example we will use FCC = 4000mAh = 0x0FA0.
Change 0xFFEA to 0x0FA0 in the 010 Editor pane, then Save the file.
You have now the dump ready to reflash the chip.
Many thanks . You helped a lot and taught me something new. Many thanks!
Tutorial is made so customers could edit the FCC by themselves.
It is well described how to do it.