Other Parts Discussed in Thread: EV2400
Hi,
I tried to update flash design capacity, design voltage parameters of respective subclass 48 as said in bq27742 technical datasheet. But, when I want to update only these too, I'm seeing that remaining values also getting changed. Here is my sample code, I'm working on. How to change only those values I want to change. Any help is appreciated.
uint8_t block[32];
//Update Design Voltage
block[0] = (uint8_t)( designVoltage >> 8 );
block[1] = (uint8_t)( designVoltage & 0x00FF );
// Update design capacity
block[12] = (uint8_t)( designCapacity_mAh >> 8 );
block[13] = (uint8_t)( designCapacity_mAh & 0x00FF );
// Write data bytes:
for (i = 0; i < 32; i++)
{
// Write to offset, mod 32 if offset is greater than 32
// The blockDataOffset above sets the 32-bit block
writeBlockData((0 % 32)+i , block[i]);
}
Thanks u in advance,
Kavya.