This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
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.
Hello Kavya,
You can use the drivers here as a reference: https://www.bing.com/ck/a?!&&p=66c50bb6ebf2afdcf366a2dc0e9ba515b1ea3f6f08882bce3816dc6a7612ae1fJmltdHM9MTY1MjE5NzcyNSZpZ3VpZD1hOTgzYzAyMS02MTNmLTQyNDUtODk5ZS0zNjE4YzY4N2YyYTAmaW5zaWQ9NTE2OA&ptn=3&fclid=ac3867de-d078-11ec-b8e1-2501918db4df&u=a1aHR0cHM6Ly93d3cudGkuY29tL3Rvb2wvQlEyN1hYWFNXLUxJTlVYP21zY2xraWQ9YWMzODY3ZGVkMDc4MTFlY2I4ZTEyNTAxOTE4ZGI0ZGY&ntb=1
I'm not sure what is meant by the remaining values also get changed. When you update the design capacity it may cause changes in the reported gauging parameters which is expected.
I would recommend using a logic analyzer to debug your code, or use a EV2400 with logic analyzer to see the correct sequence for changing the DF.
Sincerely,
Wyatt Keller