The battery can't be charged for DA14683.

Learn MoreFAQsTutorials

2 posts / 0 new
Last post
xuguodong
Offline
Last seen:1 month 3 weeks ago
加入:2020-06-04 13:34
The battery can't be charged for DA14683.

Hi Dialog,

At the beginning, the battery can be charged. After using it for a period of time, the battery can't be charged, so we are finding the reason why it can't be charged.

The battery is good. But the battery can't be charged.

Please help me to explain the following macro definitions.

bool hw_charger_check_vbus(void)
{
uint16_t status = CRG_TOP->ANA_STATUS_REG;
uint16_t mask = CRG_TOP_ANA_STATUS_REG_VBUS_AVAILABLE_Msk |
CRG_TOP_ANA_STATUS_REG_COMP_VBUS_LOW_Msk |
CRG_TOP_ANA_STATUS_REG_COMP_VBUS_HIGH_Msk |
CRG_TOP_ANA_STATUS_REG_LDO_SUPPLY_USB_OK_Msk;
//printf("hw_charger_check_vbus status 0x%x \n", status);
return ( ((status & mask) == mask) && !(status & CRG_TOP_ANA_STATUS_REG_LDO_SUPPLY_VBAT_OK_Msk));
}

Device:
PM_Dialog
Offline
Last seen:54 min 42 sec ago
Staff
加入:2018-02-08 11:03
Hi xuguodong,

Hi xuguodong,

The hw_charger_check_vbus() function checks if the VBAT power is available. It also checks the values of the ANA_STATUS_REG. Please refer to the datasheet for more info. Please run it in debug mode, what is the value of this register? Does the code run properly, or is freezes into an assertion etc. ?

Additionally, do you have a custom firmware, or you are using any of the SDK example?

You could also read the following document:

//www.wsdof.com/sites/default/files/um-b-075_da1468x_state_of_charge_functionality_v1.2_0.pdf

Thanks, PM_Dialog