Index: ModuleDemo/25_OTA/bt_demo/BT/patch/patch.prog
===================================================================
--- /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/BT/patch/patch.prog	(revision 4386)
+++ /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/BT/patch/patch.prog	(working copy)
@@ -3199,9 +3199,9 @@
 	// l2cap
 	bmark1 mark_old_packet,ack_payload
 p_process_dmh_common_packet1:
-	fetch 2,mem_len
 	fetcht 2,mem_l2cap_rx_max_lenth
 	increase -3,temp
+	fetch 2,mem_len	
 	isub temp,null
 	branch error_payload,positive
 	
Index: ModuleDemo/25_OTA/bt_demo/BT/sched/user.dat
===================================================================
--- /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/BT/sched/user.dat	(revision 4386)
+++ /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/BT/sched/user.dat	(working copy)
@@ -278,9 +278,9 @@
 mem_inquiry_mode:00
 
 
-mem_param_alloc_normal_buffer_start_address:00 20
+mem_param_alloc_normal_buffer_start_address:00 18
 mem_param_alloc_normal_buffer_max_length:83 00
-mem_param_alloc_big_buffer_start_address:20 25
+mem_param_alloc_big_buffer_start_address:00 20
 mem_param_alloc_big_buffer_max_length:b0 02
 mem_l2cap_rx_max_lenth:b0 02
 
Index: ModuleDemo/25_OTA/bt_demo/CM0/Prj/MDK/yc11xx.uvoptx
===================================================================
--- /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/CM0/Prj/MDK/yc11xx.uvoptx	(revision 4386)
+++ /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/CM0/Prj/MDK/yc11xx.uvoptx	(working copy)
@@ -274,7 +274,7 @@
       <GroupNumber>1</GroupNumber>
       <FileNumber>1</FileNumber>
       <FileType>1</FileType>
-      <tvExp>1</tvExp>
+      <tvExp>0</tvExp>
       <tvExpOptDlg>0</tvExpOptDlg>
       <bDave2>0</bDave2>
       <PathWithFileName>..\..\User\main.c</PathWithFileName>
Index: ModuleDemo/25_OTA/bt_demo/CM0/respin/ramcode.rom
===================================================================
--- /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/CM0/respin/ramcode.rom	(revision 4386)
+++ /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/CM0/respin/ramcode.rom	(working copy)
@@ -76,8 +76,8 @@
 c020825b
 c0220293
 c02c06fb
-c02e0716
-c02e871c
+c02e0717
+c02e871d
 c0350228
 c035824c
 c04080bf
@@ -85,8 +85,8 @@
 c04300a2
 c04f00a6
 c0500161
-c0520794
-c0540773
+c0520795
+c0540774
 c05c812d
 c05d0626
 c0700158
@@ -97,17 +97,17 @@
 c00985cf
 c00a05ae
 c01185c2
-c012871e
-c0130722
-c0138724
-c0140726
-c0148727
-c015072c
+c012871f
+c0130723
+c0138725
+c0140727
+c0148728
+c015072d
 c01d84d8
 c01f04e1
 c01f844e
 c0208536
-c021076a
+c021076b
 c025853a
 c027851a
 c0290645
@@ -116,14 +116,14 @@
 c02e84ce
 c0300663
 c032065f
-c0370742
+c0370743
 c03802b1
-c03887a1
+c03887a2
 c03902c1
 c03a0163
 c0440110
 c0448116
-c049072d
+c049072e
 c0528672
 c0530678
 c1590000
@@ -157,7 +157,7 @@
 18423600
 202023b7
 204045b4
-204007a3
+204007a4
 20404909
 202045b8
 6fe24013
@@ -306,7 +306,7 @@
 67e24bce
 6fe24bef
 67e206ab
-245587a5
+245587a6
 20407988
 5800062b
 67e4431d
@@ -314,9 +314,9 @@
 67e4431f
 5800012c
 67e4431b
-5800077b
+5800077c
 67e44315
-5800077e
+5800077f
 67e44313
 20558153
 24358146
@@ -326,7 +326,7 @@
 20203f28
 58001171
 67e44f5d
-204007a7
+204007a8
 204057bf
 6fec4140
 67ec4340
@@ -361,10 +361,10 @@
 68420048
 20407a08
 6fe20048
-c28387a9
+c28387aa
 c0188188
 c0060197
-c0038760
+c0038761
 c0058171
 20204f6c
 6fe20b9c
@@ -429,7 +429,7 @@
 20600000
 c6908000
 793f8021
-204007ab
+204007ac
 202002f4
 6fe20183
 203a2378
@@ -501,14 +501,14 @@
 704c9b00
 704ca100
 704c9f00
-202007ad
+202007ae
 6fe24c9a
-203a07af
+203a07b0
 6fe24c99
 203a0221
 1fe0ffff
 67e24c99
-202007af
+202007b0
 6fe20018
 1ff18400
 184f840a
@@ -600,7 +600,7 @@
 98467c00
 20628000
 2020037f
-202007b1
+202007b2
 20402337
 202c0263
 204024ca
@@ -736,7 +736,7 @@
 202002fc
 6fe20739
 67e206a4
-20400765
+20400766
 20204d51
 20404f51
 7006ae01
@@ -753,7 +753,7 @@
 67e2004b
 204021e1
 c6108000
-202007ab
+202007ac
 704c8803
 704c8706
 204003e5
@@ -874,7 +874,7 @@
 18007e06
 67e243e2
 20203f1a
-204007b3
+204007b4
 6a464dd8
 20200359
 6a464dd8
@@ -928,10 +928,10 @@
 c4020000
 6fe20639
 67e24e18
-202007b5
+202007b6
 6fe20046
 67e24e18
-202007b5
+202007b6
 6fe20624
 d8400000
 c1018000
@@ -1119,7 +1119,7 @@
 7042a700
 70065b00
 204047d2
-202007b7
+202007b8
 6fe204dd
 c001049c
 c0040490
@@ -1154,7 +1154,7 @@
 6844495b
 20400476
 60444957
-202007b9
+202007ba
 2040047a
 da200009
 d8200003
@@ -1177,7 +1177,7 @@
 20600000
 eff00006
 67f04c0a
-202007bb
+202007bc
 efe20006
 67e206a4
 20204890
@@ -1237,7 +1237,7 @@
 98467c00
 24628000
 2040493a
-202007b7
+202007b8
 20404536
 70100001
 70100100
@@ -1256,7 +1256,7 @@
 202005a6
 7834fc00
 204048fd
-20210770
+20210771
 204045fc
 204003ff
 7856fc00
@@ -1296,7 +1296,7 @@
 c28184f5
 6fe24e17
 1fe67c06
-24210770
+24210771
 1fe0fe01
 67e24e17
 202004f5
@@ -1331,7 +1331,7 @@
 67e40124
 24610000
 2040473e
-202007bd
+202007be
 20404972
 2040475a
 2040052d
@@ -1451,7 +1451,7 @@
 d9601388
 2020053f
 2040010e
-202007bf
+202007c0
 1a208409
 efe20002
 203a2baf
@@ -1582,7 +1582,7 @@
 20203168
 704c8c00
 704c1700
-204007c1
+204007c2
 2040039e
 202031c3
 6842063a
@@ -1600,7 +1600,7 @@
 6fe245b5
 c0014794
 6fe21002
-c0010770
+c0010771
 c002c790
 20600000
 20404906
@@ -1628,7 +1628,7 @@
 79400402
 6042063a
 20600000
-202007c3
+202007c4
 2040066f
 18227e00
 c1018000
@@ -1773,7 +1773,7 @@
 242106f0
 60424170
 20404d51
-202007c5
+202007c6
 70007c04
 20600000
 20404edd
@@ -1796,8 +1796,9 @@
 1fe17e03
 c001a649
 c507a6f0
-6fe4012c
 684444d2
+184085fd
+6fe4012c
 98467c00
 20212729
 da204cca
@@ -1835,7 +1836,7 @@
 da204d34
 202005bf
 20202baf
-2040072a
+2040072b
 207a0000
 6fe2004b
 c3830000
@@ -1848,7 +1849,7 @@
 18c27e00
 67e4013c
 6fe4442c
-203a073c
+203a073d
 20205b2e
 6fe40099
 203a2baf
@@ -1859,7 +1860,7 @@
 70429300
 20204b77
 67e40fb7
-20200746
+20200747
 68440fb7
 18518400
 6fe44881
@@ -1902,45 +1903,45 @@
 2040682b
 700f0d15
 20206b2e
-2040076b
+2040076c
 7854fc00
 20600000
 6fe24040
 c3800000
 c3818000
 6fe247cd
-203a077a
+203a077b
 6fe24724
 207a0000
 20202d53
 6fe206ab
 67e24bef
-20200780
+20200781
 7043dd01
 20403f41
 2040554f
-20400791
+20400792
 df200020
 d8c08080
 18c20a00
 efe20006
-c001878d
-c002078d
-c002878d
-c003878d
-c016078d
-c016878d
-c080078f
+c001878e
+c002078e
+c002878e
+c003878e
+c016078e
+c016878e
+c0800790
 58000080
 e7e20005
-c2000784
+c2000785
 20600000
 df200008
 d8c0812a
-20200784
+20200785
 6fe24131
 207a0000
-2040072a
+2040072b
 247a0000
 da204d5c
 204005bf
@@ -1952,74 +1953,74 @@
 24628000
 20202d15
 580001e0
-20200744
+20200745
 58000240
-20200744
+20200745
 58000250
-20200744
+20200745
 580001f0
-20200744
+20200745
 58000180
-20200744
+20200745
 58000190
-20200744
+20200745
 58000110
-20200744
+20200745
 58000170
-20200744
+20200745
 58000150
-20200744
+20200745
 58000200
-20200744
+20200745
 58000140
-20200744
+20200745
 580001a0
-20200744
+20200745
 580001d0
-20200744
+20200745
 580001c0
-20200744
+20200745
 580001b0
-20200744
+20200745
 580000e0
-20200744
+20200745
 58000220
-20200744
+20200745
 58000230
-20200744
+20200745
 58000130
-20200744
+20200745
 58000080
-20200744
+20200745
 58000070
-20200744
+20200745
 580000c0
-20200744
+20200745
 58000060
-20200744
+20200745
 580000b0
-20200744
+20200745
 58000090
-20200744
+20200745
 580000a0
-20200744
+20200745
 580000d0
-20200744
+20200745
 58000160
-20200744
+20200745
 580000f0
-20200744
+20200745
 58000010
-20200744
+20200745
 58000020
-20200744
+20200745
 58000030
-20200744
+20200745
 58000040
-20200744
+20200745
 58000050
-20200744
+20200745
 58000210
-20200744
+20200745
 58000100
-20200744
+20200745
Index: ModuleDemo/25_OTA/bt_demo/CM0/respin/sched.rom
===================================================================
--- /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/CM0/respin/sched.rom	(revision 4386)
+++ /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/CM0/respin/sched.rom	(working copy)
@@ -255,16 +255,16 @@
 
 # debug log define
 #mem_param_debug_log_mem_block_start_addr
-mem_param_debug_log_func_enable:01
+mem_param_debug_log_func_enable:00
 
-mem_param_debug_log_initial_flag_addr:10 d3 01
-mem_param_debug_log_lock_flag_cm0_addr:11 d3 01
-mem_param_debug_log_lock_flag_respin_addr:12 d3 01
-mem_param_debug_log_lock_victim_addr:13 d3 01
-mem_param_debug_log_read_index_addr:14 d3 01
-mem_param_debug_log_write_index_addr:16 d3 01
-mem_param_debug_log_buffer_start_addr:18 d3 01
-mem_param_debug_log_buffer_end_addr:50 d3 01
+mem_param_debug_log_initial_flag_addr:10 db 01
+mem_param_debug_log_lock_flag_cm0_addr:11 db 01
+mem_param_debug_log_lock_flag_respin_addr:12 db 01
+mem_param_debug_log_lock_victim_addr:13 db 01
+mem_param_debug_log_read_index_addr:14 db 01
+mem_param_debug_log_write_index_addr:16 db 01
+mem_param_debug_log_buffer_start_addr:18 db 01
+mem_param_debug_log_buffer_end_addr:50 db 01
 #mem_param_debug_log_mem_block_end_addr
 
 # soft dma define
@@ -345,9 +345,9 @@
 mem_inquiry_mode:00
 
 
-mem_param_alloc_normal_buffer_start_address:00 20
+mem_param_alloc_normal_buffer_start_address:00 18
 mem_param_alloc_normal_buffer_max_length:83 00
-mem_param_alloc_big_buffer_start_address:20 25
+mem_param_alloc_big_buffer_start_address:00 20
 mem_param_alloc_big_buffer_max_length:b0 02
 mem_l2cap_rx_max_lenth:b0 02
 
Index: ModuleDemo/25_OTA/bt_demo/CM0/respin/zcode.rom
===================================================================
--- /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/CM0/respin/zcode.rom	(revision 4386)
+++ /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/CM0/respin/zcode.rom	(working copy)
@@ -323,7 +323,7 @@
 2040033e
 2040033b
 c0008007
-c00107e5
+c00107e6
 20202baf
 2040032c
 67e44c94
@@ -335,7 +335,7 @@
 67e24c1a
 2040033b
 67e24c1b
-202007e7
+202007e8
 00000000
 00000000
 00000000
@@ -1353,11 +1353,11 @@
 c004000e
 c01f8012
 2020037d
-202007db
-202007dd
-202007df
-202007e1
-202007e3
+202007dc
+202007de
+202007e0
+202007e2
+202007e4
 2020037d
 2020037d
 6fe24c18
@@ -1472,7 +1472,7 @@
 00000000
 20200040
 6fe24f34
-243a07d9
+243a07da
 704f3401
 20400023
 6f224cd2
@@ -1548,7 +1548,7 @@
 c0078015
 c008001a
 c008801e
-202007d7
+202007d8
 2040033b
 67e244de
 20200381
@@ -1605,7 +1605,7 @@
 c0058012
 c0060025
 c0068029
-202007d5
+202007d6
 2040033b
 67e244df
 1fe27200
@@ -1798,7 +1798,7 @@
 c0070020
 c0088028
 c009802c
-202007d3
+202007d4
 20400332
 67ec42a9
 d8a04297
@@ -1859,7 +1859,7 @@
 c0030006
 c0040018
 c005002b
-202007d1
+202007d2
 2040032c
 67e242a8
 2040033b
@@ -1932,7 +1932,7 @@
 c0230033
 c0238034
 c0288036
-202007cf
+202007d0
 2040032c
 67e44153
 2040032c
@@ -2053,7 +2053,7 @@
 c0058022
 c006002d
 c0068035
-202007cd
+202007ce
 6fe44deb
 c3010393
 6fe44de9
@@ -2117,7 +2117,7 @@
 c0018010
 c0028015
 c003001a
-202007cb
+202007cc
 20400338
 67f04c6c
 20200381
@@ -2249,7 +2249,7 @@
 c00c802b
 c00d0030
 c00d8033
-202007c9
+202007ca
 20400338
 67f04c1c
 20200381
@@ -2308,7 +2308,7 @@
 c0010017
 c0028019
 c0048025
-202007c7
+202007c8
 7920001c
 2040032f
 67e64147
