Other Parts Discussed in Thread: BQSTUDIO
Status returned by OperationStatus() command has CALMD. Status returned by ManufacturingStatus subcommand has CAL_EN. The latter is mentioned in the EVM manual.
For some reason, while I was coding and testing my code to writing and reading back data from the DF, I noticed bqStudio sometimes showed these two bits with different levels after toggling the Calibration mode. When I used CALMD to check if the calibration mode was active, I could successfully write to the DF, whereas CAL_EN did not work.
So, which one is safer to use. What could cause both bits to diverge?
When the microcontroller is accessing the fuel gauge, I disconnect the EVM-2400 pod, to avoid contention. When I connect the pod, I stop the processor with the debugger. BTW, is there a configuration to force bqStudio to not access the FG?
FWIW, the sequence I am following to write to the DF is:
Unseal-> wait 4s -> Unseal full access -> Enable Cal mode -> Write a low value to Flash Update OK -> Write the intialization data to the DF -> Disable Cal mode->Unseal.
Is this sequence OK? Sometimes I do not Unseal, as I am testing and do not want to wait for the Unseal delay. Could this cause any problem? Should I reset the FG after the calibration process?