Tool/software:
hello I'm luis.
I have a question read/write about BQ34Z100-R2's data flash.
I wanna read Manufacture Date(CLASS: Configuration, SubClass: Data, SubClass ID : 48(decimal), Offset: 2, Type: U2)
I read Battery info using HDQ, so I programmed liked below.
My battery is unsealed state.
//read menufacture date
HDQ_write(device, 0x61, 0x00); //enable block data flash control
HDQ_write(device, 0x3E, 0x30); //access the Registers subclass
HDQ_write(device, 0x3f, 0x00); //access data located at offset 0 to31, use offset = 0x00
tempH = HDQ_read(device, 0x32);
tempL = HDQ_read(device, 0x33);
printf("[device:%d] battery menufacturer date: 0x%x, 0x%x\r\n", device, tempH, tempL);
but this valus is wrong.
to compare I tried to read Pack Configuration
//read Pack Configuration
HDQ_write(device, 0x61, 0x00); //enable block data flash control
HDQ_write(device, 0x3E, 0x40); //access the Registers subclass
HDQ_write(device, 0x3f, 0x00); //access data located at offset 0 to31, use offset = 0x00
tempH = HDQ_read(device, 0x40);
tempL = HDQ_read(device, 0x41);
printf("[device:%d] battery Pack Configuration: 0x%x, 0x%x\r\n", device, tempH, tempL);
then pack configuration value is ok(check TI program).
how can I read battery menufacturer date?