Telink TLSR8232 BLE SDK Developer Handbook
AN-19112700-E1 7 Ver.1.0.0
4.1.3 Low Power Mode Entry and Wakeup ...................................................... 117
4.2 BLE Low Power Management ............................................................................ 119
4.2.1 PM In Idle State ........................................................................................ 119
4.2.2 PM in BLE Adv State & Conn State ......................................................... 120
4.3 BLE PM Configuration ........................................................................................ 120
4.3.1 PM Module Initialization ........................................................................... 120
4.3.2 Set Low Power Modes via “bls_pm_setSuspendMask” .......................... 121
4.3.3 bls_pm_setWakeupSource ...................................................................... 121
4.3.4 Working Mechanism of Low Power Managment ..................................... 122
4.4 “latency_use” Configuration and Calculation ..................................................... 125
4.5 Other APIs .......................................................................................................... 125
4.5.1 bls_pm_getSystemWakeupTick............................................................... 126
4.5.2 bls_pm_enableAdvMcuStall ..................................................................... 127
4.6 Notes about GPIO Wakeup ................................................................................ 127
4.6.1 Fail to Enter Suspend/Deepsleep When Wakeup Level is Valid ............. 127
4.7 BLE System PM Reference................................................................................ 128
4.8 Timer Wakeup of APP Layer .............................................................................. 129
5. Low Battery Detect ...................................................................................................... 131
5.1 Significance of Low Battery Detect .................................................................... 131
5.2 Implementation of Low Battery Detect ............................................................... 131
5.2.1 Cautions of Low Battery Detect ............................................................... 131
5.2.1.1 MUST Use GPIO Input Channel .................................................... 132
5.2.1.2 MUST Use ADC Differential Mode ................................................ 133
5.2.1.3 MUST Use DFIFO for ADC Sampling Valu ................................... 133
5.2.2 Dedicated Low Battery Detect Demo ....................................................... 133
5.2.2.1 Initialization of Low Battery Detect ................................................ 134
5.2.2.2 Low Battery Detect Processing ..................................................... 134
5.2.2.3 Low Battery Voltage Alarm ............................................................ 135
6. OTA .............................................................................................................................. 137
6.1 Flash Architecture and OTA Procedure ............................................................. 137
6.1.1 Flash Storage Architecture ...................................................................... 137
6.1.2 OTA Update Procedure ........................................................................... 138
6.1.3 Modify Firmware Size and Boot Address................................................. 139
6.2 RF Data Proceesing in OTA Mode ..................................................................... 141