Other Parts Discussed in Thread: BQSTUDIO
Tool/software:
Hi,
We got a problem when try to set CHEM_ID with 0x0008 on BQ27426.
The problem is occured when running the following line after finishing "Seal" process:
ret = bq27426_write(di, BQ27426_DM_CLASS, buf->class, true);
And the ret is equal to 0x8202.
So, we assumed "Seal" process isn't work well.
And then printing some messages to have a investigation:
00> <info> app: [BQ27426] [bq27426_battery_unseal]: SEAL STATE: 0x208C
00> <info> app: [BQ27426] [bq27426_battery_unseal]: SEAL STATE: 0x200C
00> <info> app: [BQ27426] [bq27426_battery_seal]: SEAL STATE: 0x200C
00> <info> app: [BQ27426] [bq27426_battery_unseal]: SEAL STATE: 0x200C
00> <info> app: [BQ27426] [bq27426_battery_seal]: SEAL STATE: 0x200C
00> <info> app: [BQ27426] [bq27426_battery_unseal]: SEAL STATE: 0x208C
00> <info> app: [BQ27426] [bq27426_battery_seal]: SEAL STATE: 0x208C
The state is changed after seconds later.
Could you please help to provide a solution to ensure the state can be changed immediately?
Thanks a lot!