Index: output/flash.dat
===================================================================
--- /branch/mouse_project/ZJL_Project/ZJL_1059/YFK_PM1_BLE&BT/output/flash.dat	(revision 3784)
+++ /branch/mouse_project/ZJL_Project/ZJL_1059/YFK_PM1_BLE&BT/output/flash.dat	(working copy)
@@ -46,8 +46,8 @@
 ca
 20
 40
-02
-ec
+03
+3d
 20
 40
 07
@@ -63,7 +63,7 @@
 20
 20
 03
-14
+08
 58
 00
 03
@@ -99,7 +99,7 @@
 58
 00
 02
-8c
+80
 60
 01
 41
@@ -155,11 +155,11 @@
 20
 40
 02
-ee
+e2
 20
 40
 03
-11
+05
 68
 00
 c7
@@ -335,7 +335,7 @@
 c0
 62
 02
-af
+a3
 c0
 73
 05
@@ -679,7 +679,7 @@
 20
 40
 02
-93
+87
 58
 00
 e0
@@ -691,7 +691,7 @@
 20
 40
 02
-6c
+60
 24
 74
 00
@@ -875,7 +875,7 @@
 20
 20
 02
-96
+8a
 70
 4c
 36
@@ -1487,7 +1487,7 @@
 20
 40
 02
-4b
+3f
 18
 00
 2a
@@ -1514,12 +1514,12 @@
 24
 20
 40
-02
-0b
+01
+ff
 20
 57
 82
-44
+38
 20
 60
 00
@@ -2044,58 +2044,10 @@
 00
 cc
 14
-1f
-ed
-84
-00
-79
 20
-04
-01
-18
-43
-1c
-00
 20
-60
-00
-00
-20
-40
 53
-c4
-68
-02
-4c
-32
-98
-00
-12
-00
-20
-40
-29
-18
-68
-08
-cc
-14
-20
-40
-29
-1f
-58
-00
-05
-00
-20
-40
-2a
-8f
-20
-40
-29
-24
+da
 20
 40
 01
@@ -2135,7 +2087,7 @@
 24
 2c
 02
-44
+38
 78
 46
 fc
@@ -2155,7 +2107,7 @@
 20
 40
 02
-41
+35
 60
 00
 cc
@@ -2171,11 +2123,11 @@
 24
 22
 82
-44
+38
 20
 40
 02
-41
+35
 60
 00
 cb
@@ -2195,11 +2147,11 @@
 24
 20
 82
-44
+38
 20
 40
 02
-41
+35
 e0
 a0
 80
@@ -2215,11 +2167,11 @@
 20
 22
 82
-2c
+20
 20
 40
 02
-41
+35
 e0
 a0
 80
@@ -2227,7 +2179,7 @@
 c2
 00
 02
-29
+1d
 18
 a2
 22
@@ -2235,7 +2187,7 @@
 20
 40
 02
-41
+35
 60
 00
 cd
@@ -2275,7 +2227,7 @@
 20
 23
 02
-44
+38
 78
 37
 fc
@@ -2371,7 +2323,7 @@
 20
 40
 02
-48
+3c
 79
 20
 2a
@@ -2451,7 +2403,7 @@
 c2
 00
 02
-61
+55
 78
 24
 7c
@@ -2567,7 +2519,7 @@
 c2
 00
 02
-7e
+72
 18
 49
 7e
@@ -2623,7 +2575,7 @@
 20
 40
 02
-96
+8a
 68
 00
 c0
@@ -2631,7 +2583,7 @@
 c3
 00
 02
-93
+87
 68
 00
 80
@@ -2655,11 +2607,11 @@
 20
 40
 02
-ac
+a0
 20
 40
 02
-93
+87
 20
 40
 3e
@@ -2667,7 +2619,7 @@
 20
 40
 03
-16
+0a
 68
 12
 00
@@ -2775,7 +2727,15 @@
 20
 35
 82
-c4
+ba
+68
+03
+44
+a0
+60
+03
+4b
+7e
 20
 40
 00
@@ -2811,7 +2771,7 @@
 20
 40
 02
-c5
+bb
 20
 40
 05
@@ -2827,19 +2787,19 @@
 c0
 19
 82
-ce
+c4
 c0
 1a
 02
-d2
+c8
 20
 60
 00
 00
 20
 20
-02
-ec
+03
+3d
 68
 00
 c7
@@ -2847,7 +2807,7 @@
 c0
 01
 02
-c9
+bf
 68
 00
 cb
@@ -2855,7 +2815,7 @@
 c0
 7f
 82
-cc
+c2
 68
 00
 cc
@@ -2911,7 +2871,7 @@
 24
 22
 82
-d8
+ce
 58
 00
 02
@@ -2939,7 +2899,7 @@
 20
 40
 02
-e3
+d9
 58
 00
 00
@@ -2987,7 +2947,7 @@
 20
 20
 02
-e4
+da
 70
 11
 c5
@@ -2996,18 +2956,10 @@
 20
 07
 77
-70
-42
-12
-76
-20
-20
-3d
-36
 20
 40
-02
-ec
+03
+3d
 20
 40
 40
@@ -3019,11 +2971,11 @@
 c0
 18
 02
-fa
+ee
 c0
 18
 82
-fd
+f1
 20
 40
 40
@@ -3035,7 +2987,7 @@
 20
 20
 02
-f0
+e4
 70
 4a
 fe
@@ -3047,15 +2999,15 @@
 20
 40
 02
-ee
+e2
 20
 20
 64
 11
 20
 40
-03
-0a
+02
+fe
 68
 00
 c6
@@ -3066,8 +3018,8 @@
 e1
 20
 40
-03
-0a
+02
+fe
 68
 00
 c6
@@ -3118,8 +3070,8 @@
 9b
 20
 40
-02
-ec
+03
+3d
 58
 00
 80
@@ -3146,8 +3098,8 @@
 80
 20
 40
-02
-ec
+03
+3d
 58
 00
 08
@@ -3251,7 +3203,7 @@
 20
 22
 83
-63
+66
 60
 09
 47
@@ -3283,7 +3235,27 @@
 20
 40
 03
-7a
+7e
+20
+40
+05
+14
+68
+01
+47
+0f
+20
+3a
+03
+28
+68
+00
+c2
+31
+c2
+80
+b4
+0a
 20
 40
 03
@@ -3291,19 +3263,31 @@
 20
 40
 03
-42
+3f
 20
 40
 03
-5a
+4e
 20
 40
 03
-46
+5d
 20
 40
 03
-51
+52
+20
+40
+03
+43
+20
+40
+03
+0c
+20
+40
+03
+4e
 d8
 40
 00
@@ -3327,19 +3311,23 @@
 20
 40
 03
-46
+52
 20
 40
 03
-51
+43
 20
 40
 03
-81
+83
+70
+42
+12
+76
 20
 20
-02
-ec
+3d
+36
 68
 01
 c7
@@ -3350,12 +3338,72 @@
 32
 20
 40
+03
+4e
+20
+40
 65
-2a
+2b
+20
+40
+03
+46
+c2
+80
+03
+43
+20
+60
+00
+00
+58
+00
+01
+fa
+60
+11
+00
+8c
+18
+00
+04
+01
+58
+00
+00
+05
+60
+00
+81
+f5
+58
+00
+01
+f5
+60
+11
+00
+8a
+20
+20
+64
+f6
 20
+40
+65
+0b
 20
+40
 03
-51
+46
+c3
+00
+83
+4e
+20
+60
+00
+00
 1f
 e2
 26
@@ -3401,42 +3449,6 @@
 00
 00
 58
-01
-86
-a0
-20
-40
-2a
-8f
-20
-40
-65
-0b
-58
-00
-01
-fa
-60
-11
-00
-8c
-58
-00
-00
-05
-20
-40
-64
-f3
-c2
-80
-03
-51
-20
-60
-00
-00
-58
 00
 47
 7f
@@ -3467,7 +3479,7 @@
 20
 40
 03
-5a
+5d
 20
 20
 65
@@ -3479,7 +3491,7 @@
 20
 40
 03
-60
+63
 20
 40
 03
@@ -3499,15 +3511,15 @@
 20
 40
 03
-71
+75
 24
 34
 03
-6f
+72
 20
 40
 03
-7a
+7e
 68
 02
 47
@@ -3520,6 +3532,10 @@
 60
 00
 00
+20
+40
+03
+7c
 70
 4b
 7d
@@ -3551,7 +3567,7 @@
 c2
 00
 03
-73
+77
 20
 60
 00
@@ -3564,14 +3580,6 @@
 60
 00
 00
-68
-03
-44
-a0
-60
-03
-4b
-7e
 70
 4b
 63
@@ -3599,15 +3607,11 @@
 20
 40
 03
-18
-20
-00
-00
-64
+0c
 20
 40
-65
-0b
+69
+ac
 da
 20
 4b
@@ -3621,13 +3625,9 @@
 65
 56
 20
-00
-00
-64
 20
-60
-00
-00
+69
+ac
 70
 0a
 a2
@@ -3635,7 +3635,7 @@
 20
 20
 03
-82
+84
 20
 40
 03
@@ -4046,8 +4046,8 @@
 00
 20
 40
-03
 02
+f6
 20
 40
 04
@@ -4226,8 +4226,8 @@
 00
 20
 40
-03
 02
+f6
 20
 40
 04
@@ -4331,7 +4331,7 @@
 20
 20
 02
-f6
+ea
 20
 40
 7e
@@ -4415,7 +4415,7 @@
 20
 20
 03
-34
+28
 1a
 62
 7e
@@ -4487,7 +4487,7 @@
 20
 40
 02
-f6
+ea
 70
 11
 c5
@@ -4567,7 +4567,7 @@
 20
 40
 02
-f6
+ea
 20
 20
 42
@@ -4595,7 +4595,7 @@
 20
 40
 02
-f6
+ea
 70
 11
 c5
@@ -4623,7 +4623,7 @@
 20
 40
 02
-f6
+ea
 20
 20
 3f
@@ -4655,7 +4655,7 @@
 20
 20
 03
-11
+05
 20
 40
 05
@@ -4887,7 +4887,7 @@
 24
 3a
 02
-c0
+b6
 20
 20
 05
@@ -5786,8 +5786,8 @@
 c5
 20
 40
-03
-0a
+02
+fe
 20
 20
 42
@@ -7207,7 +7207,7 @@
 20
 20
 03
-34
+28
 70
 4d
 46
@@ -7299,7 +7299,7 @@
 20
 40
 02
-7b
+6f
 60
 08
 cd
@@ -7746,8 +7746,8 @@
 87
 20
 40
-02
-ec
+03
+3d
 58
 00
 1f
@@ -8184,8 +8184,8 @@
 20
 07
 f8
-96
-8f
+f3
+90
 aa
 55
 08
@@ -9281,15 +9281,9 @@
 00
 70
 4b
-52
+4c
 30
 00
-55
-aa
-aa
-55
-c7
-13
 ff
 20
 20
@@ -9338,7 +9332,7 @@
 24
 42
 83
-78
+7c
 20
 40
 03
@@ -9714,11 +9708,11 @@
 20
 40
 02
-98
+8c
 20
 40
 03
-81
+83
 68
 10
 80
@@ -10034,7 +10028,7 @@
 20
 40
 02
-c5
+bb
 68
 02
 4c
@@ -10046,7 +10040,7 @@
 20
 20
 03
-34
+28
 00
 00
 00
@@ -10162,7 +10156,7 @@
 20
 20
 03
-26
+1a
 20
 40
 74
@@ -10370,7 +10364,7 @@
 20
 40
 02
-c5
+bb
 68
 02
 4c
@@ -10682,7 +10676,7 @@
 20
 40
 02
-c5
+bb
 68
 02
 47
@@ -10854,11 +10848,11 @@
 20
 40
 03
-78
+7c
 20
 40
 02
-c5
+bb
 70
 47
 9c
@@ -10894,7 +10888,7 @@
 20
 40
 03
-39
+33
 18
 0a
 7e
@@ -10994,7 +10988,7 @@
 20
 40
 02
-e3
+d9
 58
 00
 00
@@ -11038,7 +11032,7 @@
 20
 40
 02
-c5
+bb
 20
 40
 01
@@ -11050,7 +11044,7 @@
 20
 40
 02
-98
+8c
 20
 20
 34
@@ -11738,7 +11732,7 @@
 20
 20
 03
-11
+05
 18
 00
 7e
@@ -12367,5 +12361,5 @@
 55
 00
 00
-9f
-3a
+4d
+78
Index: output/program.lis
===================================================================
--- /branch/mouse_project/ZJL_Project/ZJL_1059/YFK_PM1_BLE&BT/output/program.lis	(revision 3784)
+++ /branch/mouse_project/ZJL_Project/ZJL_1059/YFK_PM1_BLE&BT/output/program.lis	(working copy)
@@ -16,11 +16,11 @@
 0007 6800cb30 fetch 1 ,mem_bt_ui_button_timeout 
 0008 6000cb31 store 1 ,mem_bt_ui_button_count 
 0009 204043ca call mouse_bt_discovery_button_down_disable 
-000a 204002ec call p_mouse_spi_init 
+000a 2040033d call p_mouse_spi_init 
 000b 20400798 call p_drawing_optima_init 
 000c 2040000f call p_mouse_cb_fuction 
 000d 20400022 call p_mouse_wakeup_from_power 
-000e 20200314 branch p_mouse_setting_config 
+000e 20200308 branch p_mouse_setting_config 
 
 p_mouse_cb_fuction:
 000f 580003cb setarg p_mouse_g24_package_data 
@@ -31,7 +31,7 @@
 0014 600141f9 store 2 ,mem_cb_att_write 
 0015 58000413 setarg p_mouse_bt 
 0016 600141f1 store 2 ,mem_cb_bt_process 
-0017 5800028c setarg p_mouse_before_lpm 
+0017 58000280 setarg p_mouse_before_lpm 
 0018 600141ed store 2 ,mem_cb_before_lpm 
 0019 5800044f setarg p_mouse_priority_bb_event 
 001a 600141f5 store 2 ,mem_cb_bb_event_process 
@@ -47,8 +47,8 @@
 0022 58000019 setarg 25 
 0023 60014d4d store 2 ,mem_24g_transmit_by_interrupt_exit_count_init 
 0024 2455802a ncall p_mouse_24g_transmit_by_interrupt_exit_count_max ,wake 
-0025 204002ee call p_mouse_init_sunt 
-0026 20400311 call p_mouse_sensor_powerdown 
+0025 204002e2 call p_mouse_init_sunt 
+0026 20400305 call p_mouse_sensor_powerdown 
 
 p_mouse_wakeup_no_from_power:
 0027 6800c71f fetch 1 ,mem_reconn_times_init 
@@ -98,7 +98,7 @@
 004f c0508088 beq patch14_1 ,p_init_param 
 0050 c058808d beq patch16_1 ,p_lpm_check_wake_lock 
 0051 c0590097 beq patch16_2 ,p_g24_dispatch 
-0052 c06202af beq patch18_4 ,p_device_init 
+0052 c06202a3 beq patch18_4 ,p_device_init 
 0053 c0730570 beq patch1c_6 ,p_mouse_motion 
 0054 c0750591 beq patch1d_2 ,p_mouse_bb_event_discovery_btn 
 0055 c0758597 beq patch1d_3 ,p_mouse_start_discovery 
@@ -206,12 +206,12 @@
 p_g24_short_sleep:
 00a6 204000d1 call p_g24_lpm_wait 
 00a7 24740000 nrtn user 
-00a8 20400293 call p_clear_wake 
+00a8 20400287 call p_clear_wake 
 00a9 5800e09c setarg 57500 
 00aa 20202b93 branch lpm_dispatch_sleep 
 
 p_g24_transmit_by_interrupt:
-00ab 2040026c call p_g24_timer_check 
+00ab 20400260 call p_g24_timer_check 
 00ac 24740000 nrtn user 
 00ad 204000c0 call p_g24_interval_calibrate 
 00ae 68014d4b fetch 2 ,mem_24g_transmit_by_interrupt_exit_count 
@@ -273,7 +273,7 @@
 00d6 203a7fe9 branch disable_user ,blank 
 00d7 6800cd4a fetch 1 ,mem_24g_transmit_by_interrupt 
 00d8 c000ffe9 beq g24_tx_timer_int_enable ,disable_user 
-00d9 20200296 branch p_mouse_setgpio_lpm 
+00d9 2020028a branch p_mouse_setgpio_lpm 
 
 p_g24_send_abort_packet:
 00da 704c3601 jam 1 ,mem_24g_abort_pac 
@@ -486,15 +486,15 @@
 
 p_g24_transmit_receive_ack:
 0171 7857fc00 disable user3 
-0172 2040024b call p_g24_transmit 
+0172 2040023f call p_g24_transmit 
 0173 18002a00 force 0 ,radio_ctrl 
 0174 68024c32 fetch 4 ,mem_24g_addr 
 0175 98001200 iforce access 
 0176 68088017 fetcht 1 ,mem_last_freq 
 0177 2040291f call set_freq_rx 
 0178 20402924 call rf_rx_enable 
-0179 2040020b call p_g24_receive_rxon 
-017a 20578244 call p_g24_end_of_packet ,user3 
+0179 204001ff call p_g24_receive_rxon 
+017a 20578238 call p_g24_end_of_packet ,user3 
 017b 20600000 rtn 
 
 p_g24_retransmit:
@@ -674,532 +674,534 @@
 01fb 58555555 setarg 0x555555 
 01fc 98001e00 iforce crc24_init 
 01fd 6800cc14 fetch 1 ,mem_24g_ch 
-01fe 1fed8400 reverse pdata ,temp 
-01ff 79200401 set1 1 ,temp 
-0200 18431c00 rshift temp ,white_init 
-0201 20600000 rtn 
-
-p_g24_receive_packet:
-0202 204053c4 call le_enable 
-0203 68024c32 fetch 4 ,mem_24g_addr 
-0204 98001200 iforce access 
-0205 20402918 call set_sync_on 
-0206 6808cc14 fetcht 1 ,mem_24g_ch 
-0207 2040291f call set_freq_rx 
-0208 58000500 setarg param_pll_setup 
-0209 20402a8f call sleep 
-020a 20402924 call rf_rx_enable 
+01fe 202053da branch le_prep2 
 
 p_g24_receive_rxon:
-020b 204001f9 call p_g24_prep 
-020c 7857fc00 disable user3 
-020d 7826fc00 enable decode_fec0 
-020e 7830fc00 enable is_rx 
-020f 78507c00 disable is_tx 
-0210 78287c00 enable swfine 
-0211 68014c0d fetch 2 ,mem_24g_rx_window 
-0212 98003600 iforce stop_watch 
-0213 37c18400 correlate null ,timeout 
-0214 242c0244 nbranch p_g24_sync_timeout ,sync 
-0215 7846fc00 disable decode_fec0 
-0216 7825fc00 enable decode_fec1 
-0217 7823fc00 enable enable_white 
-0218 7824fc00 enable enable_crc 
-0219 20400241 call p_g24_receive_byte 
-021a 6000ccbe store 1 ,mem_24g_get_syncword_crc8 
-021b 6808ccbd fetcht 1 ,mem_24g_syncword_crc8 
-021c 98467c00 isub temp ,null 
-021d 24228244 nbranch p_g24_end_of_packet ,zero 
-021e 20400241 call p_g24_receive_byte 
-021f 6000cb84 store 1 ,mem_24g_rxbuf 
-0220 6800cb84 fetch 1 ,mem_24g_rxbuf 
-0221 6808cc0b fetcht 1 ,mem_24g_data_type 
-0222 a8400e00 icompare bits_data ,temp 
-0223 24208244 nbranch p_g24_end_of_packet ,true 
+01ff 204001f9 call p_g24_prep 
+0200 7857fc00 disable user3 
+0201 7826fc00 enable decode_fec0 
+0202 7830fc00 enable is_rx 
+0203 78507c00 disable is_tx 
+0204 78287c00 enable swfine 
+0205 68014c0d fetch 2 ,mem_24g_rx_window 
+0206 98003600 iforce stop_watch 
+0207 37c18400 correlate null ,timeout 
+0208 242c0238 nbranch p_g24_sync_timeout ,sync 
+0209 7846fc00 disable decode_fec0 
+020a 7825fc00 enable decode_fec1 
+020b 7823fc00 enable enable_white 
+020c 7824fc00 enable enable_crc 
+020d 20400235 call p_g24_receive_byte 
+020e 6000ccbe store 1 ,mem_24g_get_syncword_crc8 
+020f 6808ccbd fetcht 1 ,mem_24g_syncword_crc8 
+0210 98467c00 isub temp ,null 
+0211 24228238 nbranch p_g24_end_of_packet ,zero 
+0212 20400235 call p_g24_receive_byte 
+0213 6000cb84 store 1 ,mem_24g_rxbuf 
+0214 6800cb84 fetch 1 ,mem_24g_rxbuf 
+0215 6808cc0b fetcht 1 ,mem_24g_data_type 
+0216 a8400e00 icompare bits_data ,temp 
+0217 24208238 nbranch p_g24_end_of_packet ,true 
 
 p_g24_receive_skip:
-0224 20400241 call p_g24_receive_byte 
-0225 e0a08000 istore 1 ,contw 
-0226 1fe97e00 rshift3 pdata ,pdata 
-0227 1fe1721f and pdata ,0x1f ,loopcnt 
-0228 2022822c branch p_g24rx_nopayload ,zero 
+0218 20400235 call p_g24_receive_byte 
+0219 e0a08000 istore 1 ,contw 
+021a 1fe97e00 rshift3 pdata ,pdata 
+021b 1fe1721f and pdata ,0x1f ,loopcnt 
+021c 20228220 branch p_g24rx_nopayload ,zero 
 
 p_g24rx_loop:
-0229 20400241 call p_g24_receive_byte 
-022a e0a08000 istore 1 ,contw 
-022b c2000229 loop p_g24rx_loop 
+021d 20400235 call p_g24_receive_byte 
+021e e0a08000 istore 1 ,contw 
+021f c200021d loop p_g24rx_loop 
 
 p_g24rx_nopayload:
-022c 18a22200 copy contw ,rega 
-022d 20400241 call p_g24_receive_byte 
-022e 6000cd45 store 1 ,mem_rssi_hex_received 
-022f 1a220a00 copy rega ,contw 
-0230 09800018 parse demod ,bucket ,24 
-0231 78287c00 enable swfine 
-0232 db600664 arg param_sifs ,stop_watch 
-0233 1fef7e00 rshift32 pdata ,pdata 
-0234 1ff17e00 rshift16 pdata ,pdata 
-0235 e0a18000 istore 3 ,contw 
-0236 7845fc00 disable decode_fec1 
-0237 20230244 branch p_g24_end_of_packet ,crc_failed 
-0238 7837fc00 enable user3 
-0239 68008017 fetch 1 ,mem_last_freq 
-023a 1fe0a200 add pdata ,0 ,rega 
-023b 20402981 call rf_write_freq 
-023c 7846fc00 disable decode_fec0 
-023d 20402918 call set_sync_on 
-023e 6800cd45 fetch 1 ,mem_rssi_hex_received 
-023f 2040006b call p_rssi_signal 
-0240 20600000 rtn 
+0220 18a22200 copy contw ,rega 
+0221 20400235 call p_g24_receive_byte 
+0222 6000cd45 store 1 ,mem_rssi_hex_received 
+0223 1a220a00 copy rega ,contw 
+0224 09800018 parse demod ,bucket ,24 
+0225 78287c00 enable swfine 
+0226 db600664 arg param_sifs ,stop_watch 
+0227 1fef7e00 rshift32 pdata ,pdata 
+0228 1ff17e00 rshift16 pdata ,pdata 
+0229 e0a18000 istore 3 ,contw 
+022a 7845fc00 disable decode_fec1 
+022b 20230238 branch p_g24_end_of_packet ,crc_failed 
+022c 7837fc00 enable user3 
+022d 68008017 fetch 1 ,mem_last_freq 
+022e 1fe0a200 add pdata ,0 ,rega 
+022f 20402981 call rf_write_freq 
+0230 7846fc00 disable decode_fec0 
+0231 20402918 call set_sync_on 
+0232 6800cd45 fetch 1 ,mem_rssi_hex_received 
+0233 2040006b call p_rssi_signal 
+0234 20600000 rtn 
 
 p_g24_receive_byte:
-0241 09800008 parse demod ,bucket ,8 
-0242 19897e00 rshift3 pwindow ,pdata 
-0243 20600000 rtn 
+0235 09800008 parse demod ,bucket ,8 
+0236 19897e00 rshift3 pwindow ,pdata 
+0237 20600000 rtn 
 
 p_g24_sync_timeout:
 
 p_g24_end_of_packet:
-0244 784dfc00 disable encode_fec1 
-0245 7845fc00 disable decode_fec1 
-0246 2040264d call end_of_packet 
-0247 20600000 rtn 
+0238 784dfc00 disable encode_fec1 
+0239 7845fc00 disable decode_fec1 
+023a 2040264d call end_of_packet 
+023b 20600000 rtn 
 
 p_g24_set_freq_tx:
-0248 20402918 call set_sync_on 
-0249 6808cc14 fetcht 1 ,mem_24g_ch 
-024a 20202933 branch set_freq_tx 
+023c 20402918 call set_sync_on 
+023d 6808cc14 fetcht 1 ,mem_24g_ch 
+023e 20202933 branch set_freq_tx 
 
 p_g24_transmit:
-024b 204053c4 call le_enable 
-024c 68024c32 fetch 4 ,mem_24g_addr 
-024d 98001200 iforce access 
-024e 204001f9 call p_g24_prep 
-024f 20400248 call p_g24_set_freq_tx 
-0250 79202a00 set1 txgfsk ,radio_ctrl 
-0251 782efc00 enable encode_fec0 
-0252 78307c00 enable is_tx 
-0253 7850fc00 disable is_rx 
-0254 19317e00 rshift16 access ,pdata 
-0255 1fecfe00 rshift8 pdata ,pdata 
-0256 1ff1fe00 rshift4 pdata ,pdata 
-0257 08008628 inject mod ,40 
-0258 784efc00 disable encode_fec0 
-0259 782dfc00 enable encode_fec1 
-025a 7823fc00 enable enable_white 
-025b 7824fc00 enable enable_crc 
-025c 6800ccbd fetch 1 ,mem_24g_syncword_crc8 
-025d 08008608 inject mod ,8 
-025e 6800cc0c fetch 1 ,mem_24g_txlen 
-025f 98007200 iforce loopcnt 
-0260 d8c04bc6 arg mem_24g_txpayload ,contr 
+023f 204053c4 call le_enable 
+0240 68024c32 fetch 4 ,mem_24g_addr 
+0241 98001200 iforce access 
+0242 204001f9 call p_g24_prep 
+0243 2040023c call p_g24_set_freq_tx 
+0244 79202a00 set1 txgfsk ,radio_ctrl 
+0245 782efc00 enable encode_fec0 
+0246 78307c00 enable is_tx 
+0247 7850fc00 disable is_rx 
+0248 19317e00 rshift16 access ,pdata 
+0249 1fecfe00 rshift8 pdata ,pdata 
+024a 1ff1fe00 rshift4 pdata ,pdata 
+024b 08008628 inject mod ,40 
+024c 784efc00 disable encode_fec0 
+024d 782dfc00 enable encode_fec1 
+024e 7823fc00 enable enable_white 
+024f 7824fc00 enable enable_crc 
+0250 6800ccbd fetch 1 ,mem_24g_syncword_crc8 
+0251 08008608 inject mod ,8 
+0252 6800cc0c fetch 1 ,mem_24g_txlen 
+0253 98007200 iforce loopcnt 
+0254 d8c04bc6 arg mem_24g_txpayload ,contr 
 
 p_g24tr_loop:
-0261 e8c08000 ifetch 1 ,contr 
-0262 08008608 inject mod ,8 
-0263 c2000261 loop p_g24tr_loop 
-0264 78247c00 enable enable_parity 
-0265 08008618 inject mod ,24 
-0266 78447c00 disable enable_parity 
-0267 37d38200 until null ,tx_clear 
-0268 20000064 nop 100 
-0269 784efc00 disable encode_fec0 
-026a 784dfc00 disable encode_fec1 
-026b 20600000 rtn 
+0255 e8c08000 ifetch 1 ,contr 
+0256 08008608 inject mod ,8 
+0257 c2000255 loop p_g24tr_loop 
+0258 78247c00 enable enable_parity 
+0259 08008618 inject mod ,24 
+025a 78447c00 disable enable_parity 
+025b 37d38200 until null ,tx_clear 
+025c 20000064 nop 100 
+025d 784efc00 disable encode_fec0 
+025e 784dfc00 disable encode_fec1 
+025f 20600000 rtn 
 
 p_g24_timer_check:
-026c 20407fe9 call disable_user 
-026d 680a4c2b fetcht 4 ,mem_24g_tx_btclk 
-026e 1c427e00 copy clkn_bt ,pdata 
-026f 98467c00 isub temp ,null 
-0270 24412d18 ncall g24_timer_timeout ,positive 
-0271 1fe22400 copy pdata ,regb 
-0272 68024c2b fetch 4 ,mem_24g_tx_btclk 
-0273 6808cc2f fetcht 1 ,mem_24g_interval 
-0274 98408400 iadd temp ,temp 
-0275 1a427e00 copy regb ,pdata 
-0276 98467c00 isub temp ,null 
-0277 24610000 nrtn positive 
-0278 793ffe1c set0 28 ,pdata 
-0279 60024c2b store 4 ,mem_24g_tx_btclk 
-027a 20207fe7 branch enable_user 
+0260 20407fe9 call disable_user 
+0261 680a4c2b fetcht 4 ,mem_24g_tx_btclk 
+0262 1c427e00 copy clkn_bt ,pdata 
+0263 98467c00 isub temp ,null 
+0264 24412d18 ncall g24_timer_timeout ,positive 
+0265 1fe22400 copy pdata ,regb 
+0266 68024c2b fetch 4 ,mem_24g_tx_btclk 
+0267 6808cc2f fetcht 1 ,mem_24g_interval 
+0268 98408400 iadd temp ,temp 
+0269 1a427e00 copy regb ,pdata 
+026a 98467c00 isub temp ,null 
+026b 24610000 nrtn positive 
+026c 793ffe1c set0 28 ,pdata 
+026d 60024c2b store 4 ,mem_24g_tx_btclk 
+026e 20207fe7 branch enable_user 
 
 p_rssi_average:
-027b d8400000 arg 0 ,temp 
-027c df200008 arg rssi_buf_len_signal + 1 ,loopcnt 
-027d 1a220c00 copy rega ,contr 
+026f d8400000 arg 0 ,temp 
+0270 df200008 arg rssi_buf_len_signal + 1 ,loopcnt 
+0271 1a220c00 copy rega ,contr 
 
 p_rssi_average_loop:
-027e e8c08000 ifetch 1 ,contr 
-027f 98408400 iadd temp ,temp 
-0280 c200027e loop p_rssi_average_loop 
-0281 18497e00 rshift3 temp ,pdata 
-0282 1fe20400 copy pdata ,temp 
-0283 c6930000 rtnmark0 mark_24g 
-0284 1fe6fc0a div pdata ,10 
-0285 20407f86 call wait_div_end 
-0286 1807fe00 quotient pdata 
-0287 1ff27e00 lshift4 pdata ,pdata 
-0288 18070400 remainder temp 
-0289 98418400 ior temp ,temp 
-028a 20600000 rtn 
-028b 20600000 rtn 
+0272 e8c08000 ifetch 1 ,contr 
+0273 98408400 iadd temp ,temp 
+0274 c2000272 loop p_rssi_average_loop 
+0275 18497e00 rshift3 temp ,pdata 
+0276 1fe20400 copy pdata ,temp 
+0277 c6930000 rtnmark0 mark_24g 
+0278 1fe6fc0a div pdata ,10 
+0279 20407f86 call wait_div_end 
+027a 1807fe00 quotient pdata 
+027b 1ff27e00 lshift4 pdata ,pdata 
+027c 18070400 remainder temp 
+027d 98418400 ior temp ,temp 
+027e 20600000 rtn 
+027f 20600000 rtn 
 
 p_mouse_before_lpm:
-028c c6130000 rtnmark1 mark_24g 
-028d 204003d2 call p_mouse_le_txbuff_save 
-028e 20400296 call p_mouse_setgpio_lpm 
-028f 6800c040 fetch 1 ,mem_context 
-0290 c3000293 bbit0 state_inconn ,p_clear_wake 
-0291 680080a0 fetch 1 ,mem_lpm_current_mult 
-0292 247a0000 nrtn blank 
+0280 c6130000 rtnmark1 mark_24g 
+0281 204003d2 call p_mouse_le_txbuff_save 
+0282 2040028a call p_mouse_setgpio_lpm 
+0283 6800c040 fetch 1 ,mem_context 
+0284 c3000287 bbit0 state_inconn ,p_clear_wake 
+0285 680080a0 fetch 1 ,mem_lpm_current_mult 
+0286 247a0000 nrtn blank 
 
 p_clear_wake:
-0293 58000000 setarg 0 
-0294 600400a1 store 8 ,mem_gpio_wakeup_low 
-0295 20600000 rtn 
+0287 58000000 setarg 0 
+0288 600400a1 store 8 ,mem_gpio_wakeup_low 
+0289 20600000 rtn 
 
 p_mouse_setgpio_lpm:
-0296 204002ac call p_mouse_set_sdio_high 
-0297 20400293 call p_clear_wake 
+028a 204002a0 call p_mouse_set_sdio_high 
+028b 20400287 call p_clear_wake 
 
 p_mouse_setgpio_hibernate:
-0298 20403ebf call mouse_lpm_before_common 
-0299 20400316 call p_flash_ncs_disable 
-029a 68120070 hfetch 4 ,core_gpio_oe0 
-029b 681a0078 hfetcht 4 ,core_gpio_pu0 
-029c 98418400 ior temp ,temp 
-029d 18440400 invert temp ,temp 
-029e 601a007c hstoret 4 ,core_gpio_pd0 
-029f 6810807c hfetch 1 ,core_gpio_pd0 
-02a0 793ffe06 set0 6 ,pdata 
-02a1 6010807c hstore 1 ,core_gpio_pd0 
-02a2 6810807c hfetch 1 ,core_gpio_pd0 
-02a3 79207e05 set1 5 ,pdata 
-02a4 6010807c hstore 1 ,core_gpio_pd0 
-02a5 6810807d hfetch 1 ,core_gpio_pd1 
-02a6 793ffe02 set0 2 ,pdata 
-02a7 6010807d hstore 1 ,core_gpio_pd1 
-02a8 6810807e hfetch 1 ,core_gpio_pd2 
-02a9 793ffe06 set0 6 ,pdata 
-02aa 6010807e hstore 1 ,core_gpio_pd2 
-02ab 20600000 rtn 
+028c 20403ebf call mouse_lpm_before_common 
+028d 2040030a call p_flash_ncs_disable 
+028e 68120070 hfetch 4 ,core_gpio_oe0 
+028f 681a0078 hfetcht 4 ,core_gpio_pu0 
+0290 98418400 ior temp ,temp 
+0291 18440400 invert temp ,temp 
+0292 601a007c hstoret 4 ,core_gpio_pd0 
+0293 6810807c hfetch 1 ,core_gpio_pd0 
+0294 793ffe06 set0 6 ,pdata 
+0295 6010807c hstore 1 ,core_gpio_pd0 
+0296 6810807c hfetch 1 ,core_gpio_pd0 
+0297 79207e05 set1 5 ,pdata 
+0298 6010807c hstore 1 ,core_gpio_pd0 
+0299 6810807d hfetch 1 ,core_gpio_pd1 
+029a 793ffe02 set0 2 ,pdata 
+029b 6010807d hstore 1 ,core_gpio_pd1 
+029c 6810807e hfetch 1 ,core_gpio_pd2 
+029d 793ffe06 set0 6 ,pdata 
+029e 6010807e hstore 1 ,core_gpio_pd2 
+029f 20600000 rtn 
 
 p_mouse_set_sdio_high:
-02ac 6800cafe fetch 1 ,mem_mouse_init_sensor_reset_flag 
-02ad 207a0000 rtn blank 
-02ae 20203d80 branch mouse_seting_dpi + 2 
+02a0 6800cafe fetch 1 ,mem_mouse_init_sensor_reset_flag 
+02a1 207a0000 rtn blank 
+02a2 20203d80 branch mouse_seting_dpi + 2 
 
 p_device_init:
-02af 70895b86 jam 0x86 ,0x895b 
-02b0 70895ca0 jam 0xa0 ,0x895c 
-02b1 2040296c call initialize_radio 
-02b2 20403416 call app_lpm_mult_enable 
-02b3 204074b9 call enable_authrom 
-02b4 203582c4 branch p_device_wake_from_lpm ,wake 
+02a3 70895b86 jam 0x86 ,0x895b 
+02a4 70895ca0 jam 0xa0 ,0x895c 
+02a5 2040296c call initialize_radio 
+02a6 20403416 call app_lpm_mult_enable 
+02a7 204074b9 call enable_authrom 
+02a8 203582ba branch p_device_wake_from_lpm ,wake 
 
 p_device_wake_from_power:
-02b5 20400001 call p_wake_from_power 
-02b6 20400509 call p_mouse_wakeup_check_shutdown 
-02b7 6800c231 fetch 1 ,mem_adc_power_flag 
-02b8 c280b40a bbit1 1 ,app_enter_hibernate 
-02b9 d8400258 arg 600 ,temp 
-02ba 680146aa fetch 2 ,mem_mouse_no_data_timeout 
-02bb 98460400 isub temp ,temp 
-02bc 60094b5b storet 2 ,mem_mouse_no_data_led_timeout 
+02a9 680344a0 fetch 6 ,mem_le_lap 
+02aa 60034b7e store 6 ,mem_le_lap_store 
+02ab 20400001 call p_wake_from_power 
+02ac 20400509 call p_mouse_wakeup_check_shutdown 
+02ad 6800c231 fetch 1 ,mem_adc_power_flag 
+02ae c280b40a bbit1 1 ,app_enter_hibernate 
+02af d8400258 arg 600 ,temp 
+02b0 680146aa fetch 2 ,mem_mouse_no_data_timeout 
+02b1 98460400 isub temp ,temp 
+02b2 60094b5b storet 2 ,mem_mouse_no_data_led_timeout 
 
 p_mouse_check_reconn_target:
-02bd 204002c5 call p_mouse_tx_power_init 
-02be 20400520 call p_mouse_adc_read_gpio5 
-02bf 2040050a call p_mouse_check_once 
+02b3 204002bb call p_mouse_tx_power_init 
+02b4 20400520 call p_mouse_adc_read_gpio5 
+02b5 2040050a call p_mouse_check_once 
 
 p_mouse_check_bt_reconn_target:
-02c0 6800c210 fetch 1 ,mem_xrecord_mode 
-02c1 c01982ce beq rec_3_mode ,p_mouse3_0_check_reconn_target 
-02c2 c01a02d2 beq rec_4_mode ,p_mouse4_0_check_reconn_target 
-02c3 20600000 rtn 
+02b6 6800c210 fetch 1 ,mem_xrecord_mode 
+02b7 c01982c4 beq rec_3_mode ,p_mouse3_0_check_reconn_target 
+02b8 c01a02c8 beq rec_4_mode ,p_mouse4_0_check_reconn_target 
+02b9 20600000 rtn 
 
 p_device_wake_from_lpm:
-02c4 202002ec branch p_mouse_spi_init 
+02ba 2020033d branch p_mouse_spi_init 
 
 p_mouse_tx_power_init:
-02c5 6800c720 fetch 1 ,mem_device_flag 
-02c6 c00102c9 beq mode_24g_device ,p_mouse_tx_power_init_next 
-02c7 6800cb63 fetch 1 ,mem_mouse_fast_conn_flag 
-02c8 c07f82cc beq 0xff ,p_mouse_le_fast_conn_txpower_set 
+02bb 6800c720 fetch 1 ,mem_device_flag 
+02bc c00102bf beq mode_24g_device ,p_mouse_tx_power_init_next 
+02bd 6800cb63 fetch 1 ,mem_mouse_fast_conn_flag 
+02be c07f82c2 beq 0xff ,p_mouse_le_fast_conn_txpower_set 
 
 p_mouse_tx_power_init_next:
-02c9 6800ccc1 fetch 1 ,mem_tx_power_temp 
-02ca 6000c1de store 1 ,mem_tx_power 
-02cb 20600000 rtn 
+02bf 6800ccc1 fetch 1 ,mem_tx_power_temp 
+02c0 6000c1de store 1 ,mem_tx_power 
+02c1 20600000 rtn 
 
 p_mouse_le_fast_conn_txpower_set:
-02cc 7041de20 jam tx_power_pair ,mem_tx_power 
-02cd 20600000 rtn 
+02c2 7041de20 jam tx_power_pair ,mem_tx_power 
+02c3 20600000 rtn 
 
 p_mouse3_0_check_reconn_target:
-02ce 704b5701 jam 1 ,mem_mouse_bt_reconnect_flag 
-02cf 680341d0 fetch 6 ,mem_hci_plap 
-02d0 203a33eb branch app_bt_start_discovery_short ,blank 
-02d1 20204274 branch mouse3_0_check_reconn_target + 3 
+02c4 704b5701 jam 1 ,mem_mouse_bt_reconnect_flag 
+02c5 680341d0 fetch 6 ,mem_hci_plap 
+02c6 203a33eb branch app_bt_start_discovery_short ,blank 
+02c7 20204274 branch mouse3_0_check_reconn_target + 3 
 
 p_mouse4_0_check_reconn_target:
-02d2 70479f01 jam 1 ,mem_mouse_le_reconnect_flag 
-02d3 680146a8 fetch 2 ,mem_mouse_direct_timeout 
-02d4 6808cb63 fetcht 1 ,mem_mouse_fast_conn_flag 
-02d5 18467cff sub temp ,0xff ,null 
-02d6 242282d8 nbranch p_mouse4_0_check_reconn_target_next ,zero 
-02d7 58000258 setarg 0x0258 
+02c8 70479f01 jam 1 ,mem_mouse_le_reconnect_flag 
+02c9 680146a8 fetch 2 ,mem_mouse_direct_timeout 
+02ca 6808cb63 fetcht 1 ,mem_mouse_fast_conn_flag 
+02cb 18467cff sub temp ,0xff ,null 
+02cc 242282ce nbranch p_mouse4_0_check_reconn_target_next ,zero 
+02cd 58000258 setarg 0x0258 
 
 p_mouse4_0_check_reconn_target_next:
-02d8 70479f01 jam 1 ,mem_mouse_le_reconnect_flag 
-02d9 600146ae store 2 ,mem_mouse_direct_timer 
-02da 20403418 call app_lpm_mult_disable 
-02db 6801cb67 fetch 3 ,mem_le_adv_direct_ind 
-02dc 6001c374 store 3 ,mem_le_adv_data + 4 
-02dd 204002e3 call p_le_check_adv_flag 
-02de 58000004 setarg adv_flag_bredr_not_supported 
-02df e0c08000 istore 1 ,contr 
-02e0 d8c04390 arg mem_le_scan_data ,contr 
-02e1 2040059a call p_le_adv_data_update 
-02e2 20207df4 branch check_51cmd_adv 
+02ce 70479f01 jam 1 ,mem_mouse_le_reconnect_flag 
+02cf 600146ae store 2 ,mem_mouse_direct_timer 
+02d0 20403418 call app_lpm_mult_disable 
+02d1 6801cb67 fetch 3 ,mem_le_adv_direct_ind 
+02d2 6001c374 store 3 ,mem_le_adv_data + 4 
+02d3 204002d9 call p_le_check_adv_flag 
+02d4 58000004 setarg adv_flag_bredr_not_supported 
+02d5 e0c08000 istore 1 ,contr 
+02d6 d8c04390 arg mem_le_scan_data ,contr 
+02d7 2040059a call p_le_adv_data_update 
+02d8 20207df4 branch check_51cmd_adv 
 
 p_le_check_adv_flag:
-02e3 da204370 arg mem_le_adv_data ,rega 
+02d9 da204370 arg mem_le_adv_data ,rega 
 
 p_le_check_adv_flag_loop:
-02e4 ea208000 ifetch 1 ,rega 
-02e5 207a0000 rtn blank 
-02e6 98c0a200 iadd contr ,rega 
-02e7 e8c08000 ifetch 1 ,contr 
-02e8 c1008000 rtneq 0x01 
-02e9 202002e4 branch p_le_check_adv_flag_loop 
+02da ea208000 ifetch 1 ,rega 
+02db 207a0000 rtn blank 
+02dc 98c0a200 iadd contr ,rega 
+02dd e8c08000 ifetch 1 ,contr 
+02de c1008000 rtneq 0x01 
+02df 202002da branch p_le_check_adv_flag_loop 
 
 p_mouse_24g_pairing_button:
-02ea 7011c561 jam zcode_61 ,mem_zcode_temp_param0 
-02eb 20200777 branch p_zcode_entrance 
-
-p_mouse_spi_init:
-02ec 70421276 jam 0x76 ,mem_spi_init_clk 
-02ed 20203d36 branch mouse_spi_init 
+02e0 7011c561 jam zcode_61 ,mem_zcode_temp_param0 
+02e1 20200777 branch p_zcode_entrance 
 
 p_mouse_init_sunt:
-02ee 204002ec call p_mouse_spi_init 
-02ef 204040c0 call mouse_spi_sdio_gpio_pollup 
+02e2 2040033d call p_mouse_spi_init 
+02e3 204040c0 call mouse_spi_sdio_gpio_pollup 
 
 p_mouse_init_sensor:
-02f0 204040d9 call mouse_read_sensor_id 
-02f1 c01802fa beq p32xx_id1 ,p_mouse_init_p32xx_id2_judge 
-02f2 c01882fd beq p3065_id1 ,p_mouse_p3065_init_param 
-02f3 204040d1 call mouse_twspi_reset 
-02f4 200003e8 nop 1000 
-02f5 202002f0 branch p_mouse_init_sensor 
+02e4 204040d9 call mouse_read_sensor_id 
+02e5 c01802ee beq p32xx_id1 ,p_mouse_init_p32xx_id2_judge 
+02e6 c01882f1 beq p3065_id1 ,p_mouse_p3065_init_param 
+02e7 204040d1 call mouse_twspi_reset 
+02e8 200003e8 nop 1000 
+02e9 202002e4 branch p_mouse_init_sensor 
 
 p_mouse_init_sensor_reset:
-02f6 704afe01 jam 1 ,mem_mouse_init_sensor_reset_flag 
-02f7 2040640f call spi_ncs_enable 
-02f8 204002ee call p_mouse_init_sunt 
-02f9 20206411 branch spi_ncs_disable 
+02ea 704afe01 jam 1 ,mem_mouse_init_sensor_reset_flag 
+02eb 2040640f call spi_ncs_enable 
+02ec 204002e2 call p_mouse_init_sunt 
+02ed 20206411 branch spi_ncs_disable 
 
 p_mouse_init_p32xx_id2_judge:
-02fa 2040030a call p_mouse_sensor_poweron 
-02fb 6800c6de fetch 1 ,mem_sensor_id2 
-02fc 202040e1 branch mouse_init_p32xx_id2_judge + 1 
+02ee 204002fe call p_mouse_sensor_poweron 
+02ef 6800c6de fetch 1 ,mem_sensor_id2 
+02f0 202040e1 branch mouse_init_p32xx_id2_judge + 1 
 
 p_mouse_p3065_init_param:
-02fd 2040030a call p_mouse_sensor_poweron 
-02fe 6800c6de fetch 1 ,mem_sensor_id2 
-02ff c03840e8 beq p3065_xy_id2 ,mouse_p3065xy_init_param 
-0300 7046e001 jam p3065 ,mem_config_sensor_type 
-0301 20600000 rtn 
+02f1 204002fe call p_mouse_sensor_poweron 
+02f2 6800c6de fetch 1 ,mem_sensor_id2 
+02f3 c03840e8 beq p3065_xy_id2 ,mouse_p3065xy_init_param 
+02f4 7046e001 jam p3065 ,mem_config_sensor_type 
+02f5 20600000 rtn 
 
 p_mouse_current_mult_update:
-0302 70417200 jam 0 ,mem_lpm_mult 
-0303 704b6d1e jam 30 ,mem_mouse_current_mult_timer 
-0304 20600000 rtn 
+02f6 70417200 jam 0 ,mem_lpm_mult 
+02f7 704b6d1e jam 30 ,mem_mouse_current_mult_timer 
+02f8 20600000 rtn 
 
 p_mouse_data_xy_release:
-0305 6800cb6c fetch 1 ,mem_mouse_long_mult_flag 
-0306 c1808000 rtnne 1 
-0307 58000000 setarg 0 
-0308 6000cb6c store 1 ,mem_mouse_long_mult_flag 
-0309 6002469b store 4 ,mem_mouse_x 
+02f9 6800cb6c fetch 1 ,mem_mouse_long_mult_flag 
+02fa c1808000 rtnne 1 
+02fb 58000000 setarg 0 
+02fc 6000cb6c store 1 ,mem_mouse_long_mult_flag 
+02fd 6002469b store 4 ,mem_mouse_x 
 
 p_mouse_sensor_poweron:
-030a 204002ec call p_mouse_spi_init 
-030b 58008006 setarg 0x8006 
-030c 20406413 call twspi_write 
-030d 20002ee0 nop 12000 
+02fe 2040033d call p_mouse_spi_init 
+02ff 58008006 setarg 0x8006 
+0300 20406413 call twspi_write 
+0301 20002ee0 nop 12000 
 
 p_mouse_dpi_config:
-030e 6800c77a fetch 1 ,mem_mouse_dpi 
-030f c07fbd66 beq 0xff ,mouse_dpi_config 
-0310 20203d80 branch mouse_seting_dpi + 2 
+0302 6800c77a fetch 1 ,mem_mouse_dpi 
+0303 c07fbd66 beq 0xff ,mouse_dpi_config 
+0304 20203d80 branch mouse_seting_dpi + 2 
 
 p_mouse_sensor_powerdown:
-0311 204002ec call p_mouse_spi_init 
-0312 58000806 setarg 0x0806 
-0313 20206413 branch twspi_write 
+0305 2040033d call p_mouse_spi_init 
+0306 58000806 setarg 0x0806 
+0307 20206413 branch twspi_write 
 
 p_mouse_setting_config:
-0314 7011c580 jam zcode_80 ,mem_zcode_temp_param0 
-0315 20200777 branch p_zcode_entrance 
+0308 7011c580 jam zcode_80 ,mem_zcode_temp_param0 
+0309 20200777 branch p_zcode_entrance 
 
 p_flash_ncs_disable:
-0316 6808cb43 fetcht 1 ,mem_flash_ncs_gpio 
-0317 20206825 branch gpio_out_inactive 
+030a 6808cb43 fetcht 1 ,mem_flash_ncs_gpio 
+030b 20206825 branch gpio_out_inactive 
 
 p_spid_init_flash:
-0318 70808640 jam 0x40 ,core_spid_ctrl 
-0319 70808700 jam 0x0 ,core_spid_delay 
-031a 68108081 hfetch 1 ,core_gpio_sel1 
-031b 793ffe00 set0 0 ,pdata 
-031c 793ffe01 set0 1 ,pdata 
-031d 79207e03 set1 3 ,pdata 
-031e 793ffe04 set0 4 ,pdata 
-031f 60108081 hstore 1 ,core_gpio_sel1 
-0320 58000000 setarg 0 
-0321 600201f5 store 4 ,mem_spid_tbuf 
-0322 6810807f hfetch 1 ,core_gpio_pd3 
-0323 793ffe00 set0 0 ,pdata 
-0324 6010807f hstore 1 ,core_gpio_pd3 
-0325 20600000 rtn 
+030c 70808640 jam 0x40 ,core_spid_ctrl 
+030d 70808700 jam 0x0 ,core_spid_delay 
+030e 68108081 hfetch 1 ,core_gpio_sel1 
+030f 793ffe00 set0 0 ,pdata 
+0310 793ffe01 set0 1 ,pdata 
+0311 79207e03 set1 3 ,pdata 
+0312 793ffe04 set0 4 ,pdata 
+0313 60108081 hstore 1 ,core_gpio_sel1 
+0314 58000000 setarg 0 
+0315 600201f5 store 4 ,mem_spid_tbuf 
+0316 6810807f hfetch 1 ,core_gpio_pd3 
+0317 793ffe00 set0 0 ,pdata 
+0318 6010807f hstore 1 ,core_gpio_pd3 
+0319 20600000 rtn 
 
 p_mouse_load_flash_info_check:
-0326 2040038a call p_flash_release_deep_power_down 
-0327 20404423 call mouse_load_flash_flag 
-0328 68014778 fetch 2 ,mem_store_flag 
-0329 d840aa55 arg eeprom_init_flag ,temp 
-032a 98467c00 isub temp ,null 
-032b 20228363 branch p_mouse_load_flash_device_info ,zero 
-032c 60094778 storet 2 ,mem_store_flag 
-032d 2040441c call mouse_ble_init_address 
-032e 6800c6e1 fetch 1 ,mem_config_sensor_motion 
-032f 6000c77a store 1 ,mem_mouse_dpi 
-0330 68024b51 fetch 4 ,mem_mouse_24g_addr_init 
-0331 6002477b store 4 ,mem_mouse_24g_addr 
-0332 60024c32 store 4 ,mem_24g_addr 
-0333 2040037a call p_mouse_fast_conn_init 
+031a 2040038a call p_flash_release_deep_power_down 
+031b 20404423 call mouse_load_flash_flag 
+031c 68014778 fetch 2 ,mem_store_flag 
+031d d840aa55 arg eeprom_init_flag ,temp 
+031e 98467c00 isub temp ,null 
+031f 20228366 branch p_mouse_load_flash_device_info ,zero 
+0320 60094778 storet 2 ,mem_store_flag 
+0321 2040441c call mouse_ble_init_address 
+0322 6800c6e1 fetch 1 ,mem_config_sensor_motion 
+0323 6000c77a store 1 ,mem_mouse_dpi 
+0324 68024b51 fetch 4 ,mem_mouse_24g_addr_init 
+0325 6002477b store 4 ,mem_mouse_24g_addr 
+0326 60024c32 store 4 ,mem_24g_addr 
+0327 2040037e call p_mouse_fast_conn_init 
 
 p_mouse_store_flash_device_info:
-0334 2040038a call p_flash_release_deep_power_down 
-0335 20400342 call p_flash_erase_sector 
-0336 2040035a call p_mouse_information_flash_parameters 
-0337 20400346 call p_spid_write_flash 
-0338 20400351 call p_wait_flash_done 
+0328 20400514 call p_mouse_adc_read_once 
+0329 6801470f fetch 2 ,mem_mouse_vdd_now_vol 
+032a 203a0328 branch p_mouse_store_flash_device_info ,blank 
+032b 6800c231 fetch 1 ,mem_adc_power_flag 
+032c c280b40a bbit1 1 ,app_enter_hibernate 
+032d 2040038a call p_flash_release_deep_power_down 
+032e 2040033f call p_flash_erase_sector 
+032f 2040034e call p_flash_write_enable 
+0330 2040035d call p_mouse_information_flash_parameters 
+0331 20400352 call p_spid_write_flash 
+0332 20400343 call p_wait_flash_done 
 
 p_mouse_store_random_addr_increase_count:
-0339 d8400002 arg 2 ,temp 
-033a da2047c2 arg mem_random_addr_increase_count ,rega 
-033b da40005f arg mouse_random_addr_count_eeprom_offset ,regb 
-033c 6801c700 fetch 3 ,mem_flash_base 
-033d 9a40fe00 iadd regb ,pdata 
-033e 20400346 call p_spid_write_flash 
-033f 20400351 call p_wait_flash_done 
-0340 20400381 call p_flash_deep_power_down 
-0341 202002ec branch p_mouse_spi_init 
+0333 2040030c call p_spid_init_flash 
+0334 2040034e call p_flash_write_enable 
+0335 d8400002 arg 2 ,temp 
+0336 da2047c2 arg mem_random_addr_increase_count ,rega 
+0337 da40005f arg mouse_random_addr_count_eeprom_offset ,regb 
+0338 6801c700 fetch 3 ,mem_flash_base 
+0339 9a40fe00 iadd regb ,pdata 
+033a 20400352 call p_spid_write_flash 
+033b 20400343 call p_wait_flash_done 
+033c 20400383 call p_flash_deep_power_down 
 
-p_flash_erase_sector:
-0342 6801c700 fetch 3 ,mem_flash_base 
-0343 6001c232 store 3 ,mem_spi_write_addr 
-0344 2040652a call flash_erase_sector + 2 
-0345 20200351 branch p_wait_flash_done 
+p_mouse_spi_init:
+033d 70421276 jam 0x76 ,mem_spi_init_clk 
+033e 20203d36 branch mouse_spi_init 
 
-p_spid_write_flash:
-0346 1fe22600 copy pdata ,regc 
-0347 1a227e00 copy rega ,pdata 
-0348 1fe0fffc increase -4 ,pdata 
-0349 1fe22400 copy pdata ,regb 
-034a ea420000 ifetch 4 ,regb 
-034b 60024b4c store 4 ,mem_write_flash_head_temp 
-034c 1a627e00 copy regc ,pdata 
-034d 20406552 call spid_write_flash 
-034e 68024b4c fetch 4 ,mem_write_flash_head_temp 
-034f e2420000 istore 4 ,regb 
-0350 20600000 rtn 
+p_flash_erase_sector:
+033f 6801c700 fetch 3 ,mem_flash_base 
+0340 6001c232 store 3 ,mem_spi_write_addr 
+0341 2040034e call p_flash_write_enable 
+0342 2040652b call flash_erase_sector + 3 
 
 p_wait_flash_done:
-0351 580186a0 setarg 100000 
-0352 20402a8f call sleep 
-0353 2040650b call spid_unlock_flash 
-0354 580001fa setarg mem_spid_rbuf 
-0355 6011008c hstore 2 ,core_spid_rxaddr 
-0356 58000005 setarg flash_read_satus 
-0357 204064f3 call spid_read_reg 
-0358 c2800351 bbit1 flash_status_wip ,p_wait_flash_done 
-0359 20600000 rtn 
+0343 20400346 call p_flash_read_status 
+0344 c2800343 bbit1 flash_status_wip ,p_wait_flash_done 
+0345 20600000 rtn 
+
+p_flash_read_status:
+0346 580001fa setarg mem_spid_rbuf 
+0347 6011008c hstore 2 ,core_spid_rxaddr 
+0348 18000401 force 1 ,temp 
+0349 58000005 setarg flash_read_satus 
+034a 600081f5 store 1 ,mem_spid_tbuf 
+034b 580001f5 setarg mem_spid_tbuf 
+034c 6011008a hstore 2 ,core_spid_txaddr 
+034d 202064f6 branch spid_read_regs + 2 
+
+p_flash_write_enable:
+034e 2040650b call spid_unlock_flash 
+034f 20400346 call p_flash_read_status 
+0350 c300834e bbit0 flash_status_wel ,p_flash_write_enable 
+0351 20600000 rtn 
+
+p_spid_write_flash:
+0352 1fe22600 copy pdata ,regc 
+0353 1a227e00 copy rega ,pdata 
+0354 1fe0fffc increase -4 ,pdata 
+0355 1fe22400 copy pdata ,regb 
+0356 ea420000 ifetch 4 ,regb 
+0357 60024b4c store 4 ,mem_write_flash_head_temp 
+0358 1a627e00 copy regc ,pdata 
+0359 20406552 call spid_write_flash 
+035a 68024b4c fetch 4 ,mem_write_flash_head_temp 
+035b e2420000 istore 4 ,regb 
+035c 20600000 rtn 
 
 p_mouse_information_flash_parameters:
-035a 5800477f setarg mem_mouse_information_end 
-035b d8404720 arg mem_mouse_information_start ,temp 
-035c 98460400 isub temp ,temp 
-035d 6801c700 fetch 3 ,mem_flash_base 
-035e da204720 arg mem_mouse_information_start ,rega 
-035f 20600000 rtn 
+035d 5800477f setarg mem_mouse_information_end 
+035e d8404720 arg mem_mouse_information_start ,temp 
+035f 98460400 isub temp ,temp 
+0360 6801c700 fetch 3 ,mem_flash_base 
+0361 da204720 arg mem_mouse_information_start ,rega 
+0362 20600000 rtn 
 
 p_mouse_read_flash:
-0360 2040038a call p_flash_release_deep_power_down 
-0361 2040035a call p_mouse_information_flash_parameters 
-0362 20206562 branch spid_read_flash 
+0363 2040038a call p_flash_release_deep_power_down 
+0364 2040035d call p_mouse_information_flash_parameters 
+0365 20206562 branch spid_read_flash 
 
 p_mouse_load_flash_device_info:
-0363 704b7d00 jam 0x00 ,mem_mouse_le_goto_reconn 
-0364 20400360 call p_mouse_read_flash 
-0365 2040038c call p_mouse_load_random_addr_increase_count 
-0366 2040431a call mouse_select_reconn_device 
-0367 df200003 arg 3 ,loopcnt 
-0368 d8c04722 arg mem_device1_addr ,contr 
-0369 20400371 call p_pdata_0xff_check 
-036a 2434036f nbranch p_mouse_le_goto_reconn ,user 
-036b 2040037a call p_mouse_fast_conn_init 
-036c 6802477b fetch 4 ,mem_mouse_24g_addr 
-036d 60024c32 store 4 ,mem_24g_addr 
-036e 20600000 rtn 
+0366 704b7d00 jam 0x00 ,mem_mouse_le_goto_reconn 
+0367 20400363 call p_mouse_read_flash 
+0368 2040038c call p_mouse_load_random_addr_increase_count 
+0369 2040431a call mouse_select_reconn_device 
+036a df200003 arg 3 ,loopcnt 
+036b d8c04722 arg mem_device1_addr ,contr 
+036c 20400375 call p_pdata_0xff_check 
+036d 24340372 nbranch p_mouse_le_goto_reconn ,user 
+036e 2040037e call p_mouse_fast_conn_init 
+036f 6802477b fetch 4 ,mem_mouse_24g_addr 
+0370 60024c32 store 4 ,mem_24g_addr 
+0371 20600000 rtn 
 
 p_mouse_le_goto_reconn:
-036f 704b7d01 jam 0x01 ,mem_mouse_le_goto_reconn 
-0370 20600000 rtn 
+0372 2040037c call p_mouse_le_fast_conn_disable 
+0373 704b7d01 jam 0x01 ,mem_mouse_le_goto_reconn 
+0374 20600000 rtn 
 
 p_pdata_0xff_check:
-0371 20407fe7 call enable_user 
-0372 5800ffff setarg 0xffff 
+0375 20407fe7 call enable_user 
+0376 5800ffff setarg 0xffff 
 
 p_pdata_0xff_check_loop:
-0373 e8c90000 ifetcht 2 ,contr 
-0374 98467c00 isub temp ,null 
-0375 2442ffe9 ncall disable_user ,zero 
-0376 c2000373 loop p_pdata_0xff_check_loop 
-0377 20600000 rtn 
+0377 e8c90000 ifetcht 2 ,contr 
+0378 98467c00 isub temp ,null 
+0379 2442ffe9 ncall disable_user ,zero 
+037a c2000377 loop p_pdata_0xff_check_loop 
+037b 20600000 rtn 
 
 p_mouse_le_fast_conn_disable:
-0378 704b635a jam 0x5a ,mem_mouse_fast_conn_flag 
-0379 20600000 rtn 
+037c 704b635a jam 0x5a ,mem_mouse_fast_conn_flag 
+037d 20600000 rtn 
 
 p_mouse_fast_conn_init:
-037a 680344a0 fetch 6 ,mem_le_lap 
-037b 60034b7e store 6 ,mem_le_lap_store 
-037c 704b63ff jam 0xff ,mem_mouse_fast_conn_flag 
-037d 70421034 jam 0x34 ,mem_xrecord_mode 
-037e 68034b51 fetch 6 ,mem_mouse_24g_addr_init 
-037f 600344a0 store 6 ,mem_le_lap 
-0380 20600000 rtn 
+037e 704b63ff jam 0xff ,mem_mouse_fast_conn_flag 
+037f 70421034 jam 0x34 ,mem_xrecord_mode 
+0380 68034b51 fetch 6 ,mem_mouse_24g_addr_init 
+0381 600344a0 store 6 ,mem_le_lap 
+0382 20600000 rtn 
 
 p_flash_deep_power_down:
-0381 700aa2b9 jam flash_command_deep_power_down ,mem_temp 
+0383 700aa2b9 jam flash_command_deep_power_down ,mem_temp 
 
 p_spid_write_flash_cmd:
-0382 20400318 call p_spid_init_flash 
-0383 20000064 nop 100 
-0384 2040650b call spid_unlock_flash 
-0385 da204b4c arg mem_write_flash_head_temp ,rega 
-0386 68088aa2 fetcht 1 ,mem_temp 
-0387 20406556 call spid_write_flash_common 
-0388 20000064 nop 100 
-0389 20600000 rtn 
+0384 2040030c call p_spid_init_flash 
+0385 204069ac call delay_nop100 
+0386 da204b4c arg mem_write_flash_head_temp ,rega 
+0387 68088aa2 fetcht 1 ,mem_temp 
+0388 20406556 call spid_write_flash_common 
+0389 202069ac branch delay_nop100 
 
 p_flash_release_deep_power_down:
 038a 700aa2ab jam flash_command_release_deep_power_down ,mem_temp 
-038b 20200382 branch p_spid_write_flash_cmd 
+038b 20200384 branch p_spid_write_flash_cmd 
 
 p_mouse_load_random_addr_increase_count:
 038c 2040038a call p_flash_release_deep_power_down 
@@ -1342,7 +1344,7 @@
 03ef c282c179 bbit1 mouse_bt_discovery_button_down_flag ,mouse_le_send_empty_packet 
 03f0 20403f97 call mouse_motion 
 03f1 24740000 nrtn user 
-03f2 20400302 call p_mouse_current_mult_update 
+03f2 204002f6 call p_mouse_current_mult_update 
 03f3 2040040e call p_mouse_wheel_trigger 
 
 p_mouse_data_push:
@@ -1401,7 +1403,7 @@
 041c c284bf8a bbit1 mouse_bt_discovery_button_long_down_flag ,mouse_send_empty_data 
 041d 20403f97 call mouse_motion 
 041e 24740000 nrtn user 
-041f 20400302 call p_mouse_current_mult_update 
+041f 204002f6 call p_mouse_current_mult_update 
 0420 2040040e call p_mouse_wheel_trigger 
 0421 6800cb03 fetch 1 ,mem_mouse_bt_boot_mode 
 0422 c0008426 beq 1 ,p_mouse_send_data_boot_mode 
@@ -1431,7 +1433,7 @@
 p_mouse_clear_sensor_data:
 0437 70479c01 jam 1 ,mem_mouse_clear_sensor_data_flag 
 0438 20405814 call le_set_config_more_data 
-0439 202002f6 branch p_mouse_init_sensor_reset 
+0439 202002ea branch p_mouse_init_sensor_reset 
 
 p_mouse_idle:
 043a 20407e34 call ui_check_paring_button 
@@ -1464,7 +1466,7 @@
 044d 20403d7e call mouse_seting_dpi 
 
 p_mouse_dpi_no_blink:
-044e 20200334 branch p_mouse_store_flash_device_info 
+044e 20200328 branch p_mouse_store_flash_device_info 
 
 p_mouse_priority_bb_event:
 044f 1a627e00 copy regc ,pdata 
@@ -1486,7 +1488,7 @@
 045f 2020417d branch mouse_priority_bb_event + 1 
 
 p_mouse_le_bb_event_connected:
-0460 204002f6 call p_mouse_init_sensor_reset 
+0460 204002ea call p_mouse_init_sensor_reset 
 0461 7011c5b0 jam zcode_b0 ,mem_zcode_temp_param0 
 0462 20200777 branch p_zcode_entrance 
 
@@ -1526,7 +1528,7 @@
 
 p_mouse_bb_event_connected:
 0473 70480900 jam 0 ,mem_mouse_send_switch_req_timer 
-0474 204002f6 call p_mouse_init_sensor_reset 
+0474 204002ea call p_mouse_init_sensor_reset 
 0475 202042ca branch mouse_stop_discovery 
 
 p_mouse_bb_event_disconnected:
@@ -1539,7 +1541,7 @@
 047a 20200777 branch p_zcode_entrance 
 
 p_mouse_24g_pairing_complete:
-047b 204002f6 call p_mouse_init_sensor_reset 
+047b 204002ea call p_mouse_init_sensor_reset 
 047c 7011c592 jam zcode_92 ,mem_zcode_temp_param0 
 047d 20200777 branch p_zcode_entrance 
 
@@ -1550,7 +1552,7 @@
 0481 20200777 branch p_zcode_entrance 
 
 p_mouse_24g_attempt_success:
-0482 204002f6 call p_mouse_init_sensor_reset 
+0482 204002ea call p_mouse_init_sensor_reset 
 
 p_mouse_24g_no_data_timer_init:
 0483 20203f8d branch mouse_no_data_timer_init 
@@ -1564,7 +1566,7 @@
 0487 6800cafe fetch 1 ,mem_mouse_init_sensor_reset_flag 
 0488 207a0000 rtn blank 
 0489 704afe00 jam 0 ,mem_mouse_init_sensor_reset_flag 
-048a 20200311 branch p_mouse_sensor_powerdown 
+048a 20200305 branch p_mouse_sensor_powerdown 
 
 p_mouse_bb_event_timer:
 048b 2040050e call p_mouse_adc_read 
@@ -1640,7 +1642,7 @@
 p_mouse_le_fast_conn_enable_timeout:
 04c2 7041de00 jam tx_power_0db ,mem_tx_power 
 04c3 6800cb7d fetch 1 ,mem_mouse_le_goto_reconn 
-04c4 243a02c0 nbranch p_mouse_check_bt_reconn_target ,blank 
+04c4 243a02b6 nbranch p_mouse_check_bt_reconn_target ,blank 
 04c5 20200597 branch p_mouse_start_discovery 
 
 p_mouse_wheel_trigger_timer:
@@ -1967,7 +1969,7 @@
 05a2 6000cb5e store 1 ,mem_mouse_discovery_blink_count 
 05a3 704b4705 jam 5 ,mem_mouse_bt_ble_led_timer 
 05a4 204003c5 call p_mouse_bt_led_off 
-05a5 2040030a call p_mouse_sensor_poweron 
+05a5 204002fe call p_mouse_sensor_poweron 
 05a6 202042cb branch mouse_stop_discovery + 1 
 
 p_le_slave_match:
@@ -2458,7 +2460,7 @@
 
 p_mouse_unplug_clean_bdaddr:
 0707 204042fb call mouse_before_store_reconn_info 
-0708 20200334 branch p_mouse_store_flash_device_info 
+0708 20200328 branch p_mouse_store_flash_device_info 
 
 power_ctrl_pac_succ_cnt_init:
 0709 704d4601 jam 1 ,mem_power_ctrl_level 
@@ -2491,7 +2493,7 @@
 071c c3838000 rtnbit1 ui_state_bt_reconnect 
 071d c3830000 rtnbit1 ui_state_bt_discovery 
 071e da204ccc arg mem_rssi_signal_buf ,rega 
-071f 2040027b call p_rssi_average 
+071f 2040026f call p_rssi_average 
 0720 6008cd44 storet 1 ,mem_rssi_avg_received 
 0721 58000082 setarg rssi_dis_max_24g 
 0722 c5130724 bmark1 mark_24g ,power_ctrl_start_next 
@@ -2645,7 +2647,7 @@
 078c 680a4b79 fetcht 4 ,mem_zcode_head 
 078d 98467c00 isub temp ,null 
 078e 24228787 nbranch p_zcode_read_loop ,zero 
-078f 204002ec call p_mouse_spi_init 
+078f 2040033d call p_mouse_spi_init 
 0790 58001f00 setarg mem_zcode_buff 
 0791 60014199 store 2 ,mem_patch_ptr 
 0792 70419b40 jam zcode_code_size ,mem_patch_len 
@@ -20624,6 +20626,8 @@
 53d7 68018467 fetch 3 ,mem_le_crcinit 
 53d8 98001e00 iforce crc24_init 
 53d9 68008016 fetch 1 ,mem_le_ch_mapped 
+
+le_prep2:
 53da 1fed8400 reverse pdata ,temp 
 53db 79200401 set1 1 ,temp 
 53dc 18431c00 rshift temp ,white_init 
@@ -28112,6 +28116,8 @@
 69a9 68110050 hfetch 2 ,core_clkoff 
 69aa 793ffe0d set0 clock_off_pwm ,pdata 
 69ab 60110050 hstore 2 ,core_clkoff 
+
+delay_nop100:
 69ac 20000064 nop 100 
 69ad 20600000 rtn 
 
@@ -35535,7 +35541,7 @@
 30020 6800804b fetch 1 ,mem_op 
 30021 793ffe03 set0 op_disconn ,pdata 
 30022 6000804b store 1 ,mem_op 
-30023 20200311 branch p_mouse_sensor_powerdown 
+30023 20200305 branch p_mouse_sensor_powerdown 
 
 z_send_lmp_accepted:
 30024 18007e02 force 2 ,pdata 
@@ -35676,8 +35682,8 @@
 z_mouse_start_discovery:
 60004 68034b7e fetch 6 ,mem_le_lap_store 
 60005 600344a0 store 6 ,mem_le_lap 
-60006 20400378 call p_mouse_le_fast_conn_disable 
-60007 204002c5 call p_mouse_tx_power_init 
+60006 2040037c call p_mouse_le_fast_conn_disable 
+60007 204002bb call p_mouse_tx_power_init 
 60008 70479c00 jam 0 ,mem_mouse_clear_sensor_data_flag 
 60009 68014682 fetch 2 ,mem_ui_state_map 
 6000a c2858013 bbit1 ui_state_ble_adv ,z_mouse_start_discovery_norandom 
@@ -35686,7 +35692,7 @@
 6000d 18408401 increase 1 ,temp 
 6000e 600947c2 storet 2 ,mem_random_addr_increase_count 
 6000f 600944a1 storet 2 ,mem_le_lap + 1 
-60010 20400339 call p_mouse_store_random_addr_increase_count 
+60010 20400333 call p_mouse_store_random_addr_increase_count 
 60011 180a7e00 random pdata 
 60012 6000c4a0 store 1 ,mem_le_lap 
 
@@ -35715,7 +35721,7 @@
 60026 70479f00 jam 0 ,mem_mouse_le_reconnect_flag 
 60027 6801cb64 fetch 3 ,mem_le_adv_ind 
 60028 6001c374 store 3 ,mem_le_adv_data + 4 
-60029 204002e3 call p_le_check_adv_flag 
+60029 204002d9 call p_le_check_adv_flag 
 6002a 58000005 setarg adv_flag_bredr_not_supported | adv_flag_limited_discoverable 
 6002b e0c08000 istore 1 ,contr 
 6002c d8c04b10 arg mem_le_adv_swift_pair ,contr 
@@ -35728,10 +35734,10 @@
 60031 6800cb59 fetch 1 ,mem_24g_attempt_count 
 60032 243a0039 nbranch z_mouse_24g_attempt_fail_again ,blank 
 60033 704d4a00 jam g24_tx_timer_int_disable ,mem_24g_transmit_by_interrupt 
-60034 204002c5 call p_mouse_tx_power_init 
+60034 204002bb call p_mouse_tx_power_init 
 60035 204001b2 call p_g24_check_51cmd_stop_24g 
 60036 7041bd00 jam 0 ,mem_link_key_exists 
-60037 20400298 call p_mouse_setgpio_hibernate 
+60037 2040028c call p_mouse_setgpio_hibernate 
 60038 2020340a branch app_enter_hibernate 
 
 z_mouse_24g_attempt_fail_again:
@@ -35777,7 +35783,7 @@
 7001a 202003ce branch p_g24_transmit_by_interrupt_enable 
 
 z_g24_normal_connect:
-7001b 204002c5 call p_mouse_tx_power_init 
+7001b 204002bb call p_mouse_tx_power_init 
 7001c 6802477b fetch 4 ,mem_mouse_24g_addr 
 7001d 20200020 branch z6_g24_ch_syncword_crc8_init 
 
@@ -35842,7 +35848,7 @@
 8000a 242c0019 nbranch z_g24_auto_pair_retry ,sync 
 8000b 24378019 nbranch z_g24_auto_pair_retry ,user3 
 8000c 2040019a call p_g24_ackpayload_parse 
-8000d 204002c5 call p_mouse_tx_power_init 
+8000d 204002bb call p_mouse_tx_power_init 
 8000e 68024c32 fetch 4 ,mem_24g_addr 
 8000f 680a4c16 fetcht 4 ,mem_24g_paring_addr 
 80010 98467c00 isub temp ,null 
@@ -35926,7 +35932,7 @@
 90016 2040582c call le_set_fixed_ltk 
 90017 20405818 call le_set_config_read_authentication 
 90018 20400595 call p_le_addr_random_config 
-90019 20200326 branch p_mouse_load_flash_info_check 
+90019 2020031a branch p_mouse_load_flash_info_check 
 
 z_mouse_bt_sdp_update:
 9001a 204074b9 call enable_authrom 
@@ -36037,10 +36043,10 @@
 a0036 6000cb59 store 1 ,mem_24g_attempt_count 
 a0037 7046a700 jam 0 ,mem_mouse_move_flag 
 a0038 2040405d call mouse_read_sensor_common 
-a0039 204002c5 call p_mouse_tx_power_init 
+a0039 204002bb call p_mouse_tx_power_init 
 a003a 68024c32 fetch 4 ,mem_24g_addr 
 a003b 6002477b store 4 ,mem_mouse_24g_addr 
-a003c 20200334 branch p_mouse_store_flash_device_info 
+a003c 20200328 branch p_mouse_store_flash_device_info 
               org 0xb0001
 
 z_entrancea:
@@ -36094,8 +36100,8 @@
 b0026 204074bd call disable_authrom 
 b0027 204003c7 call p_mouse_device_led_off 
 b0028 20403e9f call mouse_before_hibernate_wheel_gpio_set 
-b0029 20400298 call p_mouse_setgpio_hibernate 
-b002a 20400381 call p_flash_deep_power_down 
+b0029 2040028c call p_mouse_setgpio_hibernate 
+b002a 20400383 call p_flash_deep_power_down 
 b002b 68108081 hfetch 1 ,core_gpio_sel1 
 b002c 1fe17ef7 and pdata ,0xf7 ,pdata 
 b002d 60108081 hstore 1 ,core_gpio_sel1 
@@ -36122,7 +36128,7 @@
 c0008 68034b51 fetch 6 ,mem_mouse_24g_addr_init 
 c0009 680b44a0 fetcht 6 ,mem_le_lap 
 c000a 98467c00 isub temp ,null 
-c000b 24428378 ncall p_mouse_le_fast_conn_disable ,zero 
+c000b 2442837c ncall p_mouse_le_fast_conn_disable ,zero 
 c000c 204003f8 call p_mouse_data_init 
 c000d 202041c3 branch mouse_le_bb_event_connected 
 
Index: output/romcode.rom
===================================================================
--- /branch/mouse_project/ZJL_Project/ZJL_1059/YFK_PM1_BLE&BT/output/romcode.rom	(revision 3784)
+++ /branch/mouse_project/ZJL_Project/ZJL_1059/YFK_PM1_BLE&BT/output/romcode.rom	(working copy)
@@ -24660,7 +24660,7 @@
 6800804b
 793ffe03
 6000804b
-20200311
+20200305
 18007e02
 20406298
 68008049
@@ -24756,8 +24756,8 @@
 20600000
 68034b7e
 600344a0
-20400378
-204002c5
+2040037c
+204002bb
 70479c00
 68014682
 c2858013
@@ -24766,7 +24766,7 @@
 18408401
 600947c2
 600944a1
-20400339
+20400333
 180a7e00
 6000c4a0
 20403418
@@ -24791,7 +24791,7 @@
 70479f00
 6801cb64
 6001c374
-204002e3
+204002d9
 58000005
 e0c08000
 d8c04b10
@@ -24802,10 +24802,10 @@
 6800cb59
 243a0039
 704d4a00
-204002c5
+204002bb
 204001b2
 7041bd00
-20400298
+2040028c
 2020340a
 1fe0ffff
 6000cb59
@@ -24836,7 +24836,7 @@
 20407d86
 20400169
 202003ce
-204002c5
+204002bb
 6802477b
 20200020
 7041de20
@@ -24880,7 +24880,7 @@
 242c0019
 24378019
 2040019a
-204002c5
+204002bb
 68024c32
 680a4c16
 98467c00
@@ -24939,7 +24939,7 @@
 2040582c
 20405818
 20400595
-20200326
+2020031a
 204074b9
 d8c08c00
 d8a04876
@@ -25023,10 +25023,10 @@
 6000cb59
 7046a700
 2040405d
-204002c5
+204002bb
 68024c32
 6002477b
-20200334
+20200328
 c0508006
 c0510019
 c0518012
@@ -25067,8 +25067,8 @@
 204074bd
 204003c7
 20403e9f
-20400298
-20400381
+2040028c
+20400383
 68108081
 1fe17ef7
 60108081
@@ -25090,7 +25090,7 @@
 68034b51
 680b44a0
 98467c00
-24428378
+2442837c
 204003f8
 202041c3
 6800c808
@@ -25116,4 +25116,4 @@
 704b0100
 704b0a00
 202041d9
-0000c000
+00002741
Index: program/le.prog
===================================================================
--- /branch/mouse_project/ZJL_Project/ZJL_1059/YFK_PM1_BLE&BT/program/le.prog	(revision 3784)
+++ /branch/mouse_project/ZJL_Project/ZJL_1059/YFK_PM1_BLE&BT/program/le.prog	(working copy)
@@ -234,6 +234,7 @@
 	fetch 3,mem_le_crcinit
 	iforce crc24_init
 	fetch 1,mem_le_ch_mapped
+le_prep2:
 	reverse pdata,temp
 	set1 1,temp
 	rshift temp,white_init
Index: program/patch.prog
===================================================================
--- /branch/mouse_project/ZJL_Project/ZJL_1059/YFK_PM1_BLE&BT/program/patch.prog	(revision 3784)
+++ /branch/mouse_project/ZJL_Project/ZJL_1059/YFK_PM1_BLE&BT/program/patch.prog	(working copy)
@@ -786,21 +786,18 @@
 	setarg 0x555555
 	iforce crc24_init
 	fetch 1,mem_24g_ch
-	reverse pdata,temp
-	set1 1,temp
-	rshift temp,white_init
-	rtn
-
-p_g24_receive_packet:
-	call le_enable
-	fetch 4,mem_24g_addr
-	iforce access
-	call set_sync_on
-	fetcht 1,mem_24g_ch
-	call set_freq_rx
-	setarg param_pll_setup
-	call sleep
-	call rf_rx_enable
+	branch le_prep2
+	
+//p_g24_receive_packet:
+//	call le_enable
+//	fetch 4,mem_24g_addr
+//	iforce access
+//	call set_sync_on
+//	fetcht 1,mem_24g_ch
+//	call set_freq_rx
+//	setarg param_pll_setup
+//	call sleep
+//	call rf_rx_enable
 p_g24_receive_rxon:
 
 ifdef RF_DEBUG
@@ -1115,6 +1112,10 @@
 ifdef RF_DEBUG
 	call test_gpio_init
 endif
+ifdef BLE_FAST_CONN_ENABLE
+	fetch 6,mem_le_lap
+	store 6,mem_le_lap_store
+endif
 	call p_wake_from_power
 
 	call p_mouse_wakeup_check_shutdown
@@ -1229,11 +1230,6 @@
 	branch p_zcode_entrance
 endif
 
-
-p_mouse_spi_init:
-	jam 0x76,mem_spi_init_clk
-	branch mouse_spi_init
-	
 p_mouse_init_sunt:
 	call p_mouse_spi_init
 	call mouse_spi_sdio_gpio_pollup
@@ -1346,12 +1342,21 @@
 	call p_mouse_fast_conn_init
 endif	
 p_mouse_store_flash_device_info:
+	call p_mouse_adc_read_once
+	fetch 2,mem_mouse_vdd_now_vol
+	branch p_mouse_store_flash_device_info,blank
+	fetch 1,mem_adc_power_flag
+	bbit1 1,app_enter_hibernate
+
 	call p_flash_release_deep_power_down
 	call p_flash_erase_sector
+	call p_flash_write_enable
 	call p_mouse_information_flash_parameters
 	call p_spid_write_flash
 	call p_wait_flash_done
 p_mouse_store_random_addr_increase_count:
+	call p_spid_init_flash
+	call p_flash_write_enable
 	arg 2,temp
 	arg mem_random_addr_increase_count,rega
 	arg MOUSE_RANDOM_ADDR_COUNT_EEPROM_OFFSET,regb
@@ -1360,13 +1365,35 @@
 	call p_spid_write_flash
 	call p_wait_flash_done
 	call p_flash_deep_power_down
-	branch p_mouse_spi_init
+p_mouse_spi_init:
+	jam 0x76,mem_spi_init_clk
+	branch mouse_spi_init
 	
 p_flash_erase_sector:
 	fetch 3,mem_flash_base
 	store 3,mem_spi_write_addr
-	call flash_erase_sector+2
-	branch p_wait_flash_done
+	call p_flash_write_enable
+	call flash_erase_sector+3
+p_wait_flash_done:
+	call p_flash_read_status
+	bbit1 FLASH_STATUS_WIP,p_wait_flash_done
+	rtn
+
+p_flash_read_status:
+	setarg mem_spid_rbuf
+	hstore 2,core_spid_rxaddr
+	force 1,temp
+	setarg FLASH_READ_SATUS
+	store 1,mem_spid_tbuf
+	setarg mem_spid_tbuf
+	hstore 2,core_spid_txaddr
+	branch spid_read_regs+2
+
+p_flash_write_enable:
+	call spid_unlock_flash	
+	call p_flash_read_status
+	bbit0 FLASH_STATUS_WEL,p_flash_write_enable
+	rtn
 
 p_spid_write_flash:
 	copy pdata,regc
@@ -1381,17 +1408,6 @@
 	istore 4,regb
 	rtn
 
-p_wait_flash_done:
-	setarg 100000	
-	call sleep
-	call spid_unlock_flash
-	setarg mem_spid_rbuf
-	hstore 2,core_spid_rxaddr
-	setarg FLASH_READ_SATUS
-	call spid_read_reg
-	bbit1 FLASH_STATUS_WIP,p_wait_flash_done
-	rtn
-
 p_mouse_information_flash_parameters:
 	setarg mem_mouse_information_end
 	arg mem_mouse_information_start,temp
@@ -1427,6 +1443,7 @@
 	store 4,mem_24g_addr
 	rtn
 p_mouse_le_goto_reconn:
+	call p_mouse_le_fast_conn_disable
 	jam 0x01,mem_mouse_le_goto_reconn
 	rtn
 
@@ -1446,8 +1463,6 @@
 	rtn
 	
 p_mouse_fast_conn_init:
-	fetch 6,mem_le_lap
-	store 6,mem_le_lap_store
 	jam 0xff,mem_mouse_fast_conn_flag
 	jam 0x34,mem_xrecord_mode
 	fetch 6,mem_mouse_24g_addr_init
@@ -1462,13 +1477,11 @@
 	jam FLASH_COMMAND_DEEP_POWER_DOWN,mem_temp
 p_spid_write_flash_cmd:
 	call p_spid_init_flash
-	nop 100					// YC1059
-	call spid_unlock_flash
+	call delay_nop100					// YC1059
 	arg mem_write_flash_head_temp,rega
 	fetcht 1,mem_temp
 	call spid_write_flash_common
-	nop 100					// YC1059
-	rtn
+	branch delay_nop100				// YC1059
 
 p_flash_release_deep_power_down:
 	jam FLASH_COMMAND_RELEASE_DEEP_POWER_DOWN,mem_temp
Index: program/peripherals.prog
===================================================================
--- /branch/mouse_project/ZJL_Project/ZJL_1059/YFK_PM1_BLE&BT/program/peripherals.prog	(revision 3784)
+++ /branch/mouse_project/ZJL_Project/ZJL_1059/YFK_PM1_BLE&BT/program/peripherals.prog	(working copy)
@@ -2303,6 +2303,7 @@
 	hfetch 2,core_clkoff
 	set0 CLOCK_OFF_PWM,pdata
 	hstore 2,core_clkoff
+delay_nop100:
 	nop 100
 	rtn
 
