firmware corruption

Bluetooth BLE devices, Bluetooth MESH devices, Bluetooth Beacon devices, Sub-G devices, etc.


User avatar
joey_nobug
Posts: 143

percy(unwired) 2024年 Nov 14日 18:03

sdk version currently in use is 3.8

it worked able to build without errors with Batt_check_enabled. how do we debug and check if the macro is working and what are the currently set voltage levels at which the macro will be triggered.

You can modify the macro definition #define VBAT_ALARM_THRES_MV (2200) to change the low voltage detection threshold, which is currently set to 2200mV by default. After dropping below 2200mV, the device needs to return to 2400mV to resume normal operation. You can refer to the code logic in the function

Code: Select all

 _attribute_no_inline_ void app_battery_power_check_and_sleep_handle(int loop_flag) function
Talk is cheap, show me the code.
Post Reply