Index: output/eeprom.dat
===================================================================
--- /branch/usb/usb_public_1M/output/eeprom.dat	(revision 274)
+++ /branch/usb/usb_public_1M/output/eeprom.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-66
+86
 03
 c2
 84
@@ -15,19 +15,19 @@
 c0
 0a
 80
-37
+3f
 c0
 1b
 00
-1d
+25
 c0
 5c
 80
-21
+29
 c0
 6a
 80
-32
+3a
 20
 20
 3a
@@ -39,31 +39,31 @@
 c0
 14
 00
-3d
+45
 c0
 1d
 00
-60
+68
 c0
 1d
 80
-74
+7c
 c0
 1e
 80
-c1
+c9
 c0
 20
 80
-46
+4e
 c0
 22
 00
-b6
+be
 c0
 40
 00
-15
+1d
 20
 20
 3a
@@ -85,9 +85,41 @@
 3c
 49
 20
+40
+4d
+a6
+20
+40
+3a
+0e
+20
+40
+6a
+00
+20
+40
+00
+19
+20
 20
 38
-03
+07
+58
+00
+00
+00
+67
+e4
+00
+00
+e7
+e3
+00
+05
+20
+20
+3a
+c5
 20
 40
 52
@@ -123,7 +155,7 @@
 20
 40
 00
-1f
+27
 20
 20
 52
@@ -211,7 +243,7 @@
 c2
 80
 80
-35
+3d
 20
 20
 3d
@@ -407,7 +439,7 @@
 20
 40
 00
-6c
+74
 20
 40
 4a
@@ -475,19 +507,19 @@
 c0
 55
 00
-7a
+82
 c0
 2a
 80
-84
+8c
 c0
 11
 00
-94
+9c
 c0
 7f
 80
-ac
+b4
 20
 60
 00
@@ -499,11 +531,11 @@
 c0
 00
 80
-7e
+86
 c0
 01
 00
-81
+89
 20
 60
 00
@@ -539,7 +571,7 @@
 20
 3a
 00
-8a
+92
 6f
 e2
 45
@@ -563,11 +595,11 @@
 c0
 00
 80
-8e
+96
 c0
 01
 00
-91
+99
 20
 60
 00
@@ -603,7 +635,7 @@
 20
 3a
 00
-9a
+a2
 6f
 e2
 45
@@ -627,11 +659,11 @@
 c0
 00
 80
-9e
+a6
 c0
 01
 00
-a5
+ad
 20
 60
 00
@@ -651,7 +683,7 @@
 c0
 01
 00
-a3
+ab
 20
 60
 00
@@ -679,7 +711,7 @@
 c0
 80
 00
-aa
+b2
 20
 60
 00
@@ -699,11 +731,11 @@
 c0
 00
 80
-b0
+b8
 c0
 01
 00
-b3
+bb
 20
 60
 00
@@ -743,7 +775,7 @@
 20
 40
 00
-ba
+c2
 20
 20
 4b
@@ -783,7 +815,7 @@
 c0
 00
 80
-c6
+ce
 c0
 01
 4a
@@ -791,7 +823,7 @@
 c0
 7f
 80
-d7
+df
 20
 20
 4a
@@ -827,7 +859,7 @@
 c0
 00
 80
-cf
+d7
 20
 20
 4a
@@ -871,9 +903,9 @@
 20
 20
 00
-ac
-b1
-90
+b4
+a3
+1d
 aa
 55
 40
@@ -1175,5 +1207,5 @@
 55
 8e
 43
-b2
-e6
+f5
+cc
Index: output/program.lis
===================================================================
--- /branch/usb/usb_public_1M/output/program.lis	(revision 274)
+++ /branch/usb/usb_public_1M/output/program.lis	(working copy)
@@ -2,21 +2,21 @@
               org 0x0000
 0000 c2840007 bbit1 8 ,pf_patch_ext 
 0001 c0000010 beq patch00_0 ,p_soft_reset 
-0002 c00a8037 beq patch02_5 ,p_set_freq_tx 
-0003 c01b001d beq patch06_6 ,p_dongle_usb_dispatch 
-0004 c05c8021 beq patch17_1 ,p_usb_init 
-0005 c06a8032 beq patch1a_5 ,p_le_enable_phy_by_pdata 
+0002 c00a803f beq patch02_5 ,p_set_freq_tx 
+0003 c01b0025 beq patch06_6 ,p_dongle_usb_dispatch 
+0004 c05c8029 beq patch17_1 ,p_usb_init 
+0005 c06a803a beq patch1a_5 ,p_le_enable_phy_by_pdata 
 0006 20203aba branch assert 
 
 pf_patch_ext:
 0007 c17f8000 rtneq patch3f_7 
-0008 c014003d beq patch25_0 ,p_g24_receive_skip_end 
-0009 c01d0060 beq patch27_2 ,p_g24_bind_data_process 
-000a c01d8074 beq patch27_3 ,p_g24_bind_data_parse_next 
-000b c01e80c1 beq patch27_5 ,p_g24_receive_packet_start_next 
-000c c0208046 beq patch28_1 ,p_g24_mode_switch_bind_search 
-000d c02200b6 beq patch28_4 ,p_g24_search_mode_auto 
-000e c0400015 beq patch30_0 ,p_dongle_default_init 
+0008 c0140045 beq patch25_0 ,p_g24_receive_skip_end 
+0009 c01d0068 beq patch27_2 ,p_g24_bind_data_process 
+000a c01d807c beq patch27_3 ,p_g24_bind_data_parse_next 
+000b c01e80c9 beq patch27_5 ,p_g24_receive_packet_start_next 
+000c c020804e beq patch28_1 ,p_g24_mode_switch_bind_search 
+000d c02200be beq patch28_4 ,p_g24_search_mode_auto 
+000e c040001d beq patch30_0 ,p_dongle_default_init 
 000f 20203aba branch assert 
 
 p_soft_reset:
@@ -24,271 +24,281 @@
 0011 6fe240cc fetch 4 ,mem_lpm_ctrl3 
 0012 67f2004c store 4 ,core_lpm_reg 
 0013 20403c49 call lpm_write_ctrl3 
-0014 20203803 branch soft_reset + 2 
+0014 20404da6 call app_param_init 
+0015 20403a0e call initialize_radio 
+0016 20406a00 call iic_init_360khz 
+0017 20400019 call p_init_param 
+0018 20203807 branch soft_reset + 6 
+
+p_init_param:
+0019 58000000 setarg 0 
+001a 67e40000 store 8 ,mem_le_adv_transmit 
+001b e7e30005 istore 6 ,contw 
+001c 20203ac5 branch init_param + 2 
 
 p_dongle_default_init:
-0015 20405255 call dongle_default_init + 1 
-0016 70451694 jam tx_power_f20db ,mem_24g_pair_tx_power 
-0017 70451000 jam off ,mem_24g_disable_fec1 
-0018 2040492b call g24_enable_1m 
-0019 6fe0c5ab fetch 1 ,mem_dg_sys_config 
-001a c4000000 rtnbit0 dg_enable_new_revision 
-001b 70451001 jam on ,mem_24g_disable_fec1 
-001c 2020492e branch g24_enable_2m 
+001d 20405255 call dongle_default_init + 1 
+001e 70451694 jam tx_power_f20db ,mem_24g_pair_tx_power 
+001f 70451000 jam off ,mem_24g_disable_fec1 
+0020 2040492b call g24_enable_1m 
+0021 6fe0c5ab fetch 1 ,mem_dg_sys_config 
+0022 c4000000 rtnbit0 dg_enable_new_revision 
+0023 70451001 jam on ,mem_24g_disable_fec1 
+0024 2020492e branch g24_enable_2m 
 
 p_dongle_usb_dispatch:
-001d 2040001f call p_wdt_kick 
-001e 202052ee branch dongle_usb_dispatch + 1 
+0025 20400027 call p_wdt_kick 
+0026 202052ee branch dongle_usb_dispatch + 1 
 
 p_wdt_kick:
-001f 58000010 setarg 16 
-0020 20206de1 branch wdt_init_config 
+0027 58000010 setarg 16 
+0028 20206de1 branch wdt_init_config 
 
 p_usb_init:
-0021 20406fd3 call enable_authrom 
-0022 204071a1 call usb_init_param 
-0023 70061003 jam 0x03 ,mem_devicedesc + 17 
-0024 708c0000 jam 0x00 ,core_usb_config 
-0025 20002710 nop 10000 
-0026 708c1800 jam 0x00 ,core_usb_trig 
-0027 6ff10050 fetch 2 ,core_clkoff 
-0028 793ffe0a set0 clock_off_usb ,pdata 
-0029 67f10050 store 2 ,core_clkoff 
-002a 708c1100 jam 0x0 ,core_usb_hmode 
-002b 708c003c jam 0x3c ,core_usb_config 
-002c 58000bb3 setarg mem_usb_rxbuf_new 
-002d 67f10c03 store 2 ,core_usb_rx_saddr 
-002e 67f10c07 store 2 ,core_usb_rxptr 
-002f 58000bf7 setarg mem_usb_rxbuf_new_end 
-0030 67f10c05 store 2 ,core_usb_rx_eaddr 
-0031 20207192 branch usb_init + 16 
+0029 20406fd3 call enable_authrom 
+002a 204071a1 call usb_init_param 
+002b 70061003 jam 0x03 ,mem_devicedesc + 17 
+002c 708c0000 jam 0x00 ,core_usb_config 
+002d 20002710 nop 10000 
+002e 708c1800 jam 0x00 ,core_usb_trig 
+002f 6ff10050 fetch 2 ,core_clkoff 
+0030 793ffe0a set0 clock_off_usb ,pdata 
+0031 67f10050 store 2 ,core_clkoff 
+0032 708c1100 jam 0x0 ,core_usb_hmode 
+0033 708c003c jam 0x3c ,core_usb_config 
+0034 58000bb3 setarg mem_usb_rxbuf_new 
+0035 67f10c03 store 2 ,core_usb_rx_saddr 
+0036 67f10c07 store 2 ,core_usb_rxptr 
+0037 58000bf7 setarg mem_usb_rxbuf_new_end 
+0038 67f10c05 store 2 ,core_usb_rx_eaddr 
+0039 20207192 branch usb_init + 16 
 
 p_le_enable_phy_by_pdata:
-0032 18427e00 copy temp ,pdata 
-0033 c2808035 bbit1 bit_le_2m_phy ,p_le_enable_2m 
-0034 20203d19 branch le_enable_phy_by_pdata + 3 
+003a 18427e00 copy temp ,pdata 
+003b c280803d bbit1 bit_le_2m_phy ,p_le_enable_2m 
+003c 20203d19 branch le_enable_phy_by_pdata + 3 
 
 p_le_enable_2m:
-0035 708a6d89 jam 0x89 ,core_rx_bq_cfg0 
-0036 20203d1f branch le_enable_2m 
+003d 708a6d89 jam 0x89 ,core_rx_bq_cfg0 
+003e 20203d1f branch le_enable_2m 
 
 p_set_freq_tx:
-0037 708a3d12 jam 0x12 ,core_syn_top_ctrl 
-0038 60488008 storet 1 ,mem_last_freq 
-0039 1840a202 add temp ,2 ,rega 
-003a 2040398e call rf_tx_write_freq 
-003b 200003c0 nop 0x3c0 
-003c 202039cf branch txon 
+003f 708a3d12 jam 0x12 ,core_syn_top_ctrl 
+0040 60488008 storet 1 ,mem_last_freq 
+0041 1840a202 add temp ,2 ,rega 
+0042 2040398e call rf_tx_write_freq 
+0043 200003c0 nop 0x3c0 
+0044 202039cf branch txon 
 
 p_g24_receive_skip_end:
-003d 6fe0c5ab fetch 1 ,mem_dg_sys_config 
-003e c300481c bbit0 dg_enable_new_revision ,g24_receive_skip_end 
-003f 2000012c nop 300 
-0040 6fe0c43e fetch 1 ,mem_24g_rxbuf + 1 
-0041 79207e00 set1 bit_ack_24g ,pdata 
-0042 67e0c43e store 1 ,mem_24g_rxbuf + 1 
-0043 20404a3b call g24_ackpayload_prep 
-0044 2040488f call g24_transmit_prep 
-0045 2020483f branch g24_transmit 
+0045 6fe0c5ab fetch 1 ,mem_dg_sys_config 
+0046 c300481c bbit0 dg_enable_new_revision ,g24_receive_skip_end 
+0047 2000012c nop 300 
+0048 6fe0c43e fetch 1 ,mem_24g_rxbuf + 1 
+0049 79207e00 set1 bit_ack_24g ,pdata 
+004a 67e0c43e store 1 ,mem_24g_rxbuf + 1 
+004b 20404a3b call g24_ackpayload_prep 
+004c 2040488f call g24_transmit_prep 
+004d 2020483f branch g24_transmit 
 
 p_g24_mode_switch_bind_search:
-0046 6fe0c559 fetch 1 ,mem_24g_work_mode 
-0047 c1000000 rtneq dongle_work 
-0048 6fe0c56d fetch 1 ,mem_24g_b_s_mode_switch_disable 
-0049 247a0000 nrtn blank 
-004a 6fe0c56b fetch 1 ,mem_24g_mode_b_s_switch_exit 
-004b 247a0000 nrtn blank 
-004c 6fe0c567 fetch 1 ,mem_24g_mode_b_s_switch 
-004d 207a0000 rtn blank 
-004e 6fe0c56e fetch 1 ,mem_24g_bind_device_living 
-004f 2fe00603 compare 3 ,pdata ,3 
-0050 2020cadc branch g24_mode_b_s_switch_exit ,true 
-0051 204048ef call g24_timer_check 
-0052 24740000 nrtn user 
-0053 6fe14569 fetch 2 ,mem_24g_mode_b_s_switch_cnt 
-0054 1fe0fe01 increase 1 ,pdata 
-0055 67e14569 store 2 ,mem_24g_mode_b_s_switch_cnt 
-0056 d84007d0 arg 0x7d0 ,temp 
-0057 98467c00 isub temp ,null 
-0058 20214adc branch g24_mode_b_s_switch_exit ,positive 
-0059 6fe0c56c fetch 1 ,mem_24g_b_s_time_slice 
-005a 1fe0fe01 increase 1 ,pdata 
-005b 1fe17e01 and_into 1 ,pdata 
-005c 67e0c56c store 1 ,mem_24g_b_s_time_slice 
-005d c0004ba3 beq 0 ,g24_search_mode_enable 
-005e c000c99f beq 1 ,g24_bind_mode_enable 
-005f 20600000 rtn 
+004e 6fe0c559 fetch 1 ,mem_24g_work_mode 
+004f c1000000 rtneq dongle_work 
+0050 6fe0c56d fetch 1 ,mem_24g_b_s_mode_switch_disable 
+0051 247a0000 nrtn blank 
+0052 6fe0c56b fetch 1 ,mem_24g_mode_b_s_switch_exit 
+0053 247a0000 nrtn blank 
+0054 6fe0c567 fetch 1 ,mem_24g_mode_b_s_switch 
+0055 207a0000 rtn blank 
+0056 6fe0c56e fetch 1 ,mem_24g_bind_device_living 
+0057 2fe00603 compare 3 ,pdata ,3 
+0058 2020cadc branch g24_mode_b_s_switch_exit ,true 
+0059 204048ef call g24_timer_check 
+005a 24740000 nrtn user 
+005b 6fe14569 fetch 2 ,mem_24g_mode_b_s_switch_cnt 
+005c 1fe0fe01 increase 1 ,pdata 
+005d 67e14569 store 2 ,mem_24g_mode_b_s_switch_cnt 
+005e d84007d0 arg 0x7d0 ,temp 
+005f 98467c00 isub temp ,null 
+0060 20214adc branch g24_mode_b_s_switch_exit ,positive 
+0061 6fe0c56c fetch 1 ,mem_24g_b_s_time_slice 
+0062 1fe0fe01 increase 1 ,pdata 
+0063 1fe17e01 and_into 1 ,pdata 
+0064 67e0c56c store 1 ,mem_24g_b_s_time_slice 
+0065 c0004ba3 beq 0 ,g24_search_mode_enable 
+0066 c000c99f beq 1 ,g24_bind_mode_enable 
+0067 20600000 rtn 
 
 p_g24_bind_data_process:
-0060 20404a54 call g24_rx_interrupt_clear 
-0061 204047ce call g24_receive_packet 
-0062 2437ca54 nbranch g24_rx_interrupt_clear ,user3 
-0063 204049bf call g24_bind_data_parse 
-0064 2040006c call p_g24_bind_transmit_ack 
-0065 20404a2e call g24_bind_device_status_check 
-0066 204053c3 call dongle_kb_bind_soft_reset 
-0067 6fe0c4f4 fetch 1 ,mem_24g_pair_switch 
-0068 207a0000 rtn blank 
-0069 6fe2456f fetch 4 ,mem_24g_transmitter_addr 
-006a 207a0000 rtn blank 
-006b 202048e0 branch g24_update_addr_and_synccrc8 
+0068 20404a54 call g24_rx_interrupt_clear 
+0069 204047ce call g24_receive_packet 
+006a 2437ca54 nbranch g24_rx_interrupt_clear ,user3 
+006b 204049bf call g24_bind_data_parse 
+006c 20400074 call p_g24_bind_transmit_ack 
+006d 20404a2e call g24_bind_device_status_check 
+006e 204053c3 call dongle_kb_bind_soft_reset 
+006f 6fe0c4f4 fetch 1 ,mem_24g_pair_switch 
+0070 207a0000 rtn blank 
+0071 6fe2456f fetch 4 ,mem_24g_transmitter_addr 
+0072 207a0000 rtn blank 
+0073 202048e0 branch g24_update_addr_and_synccrc8 
 
 p_g24_bind_transmit_ack:
-006c 6fe0c43d fetch 1 ,mem_24g_rxbuf 
-006d 67e0c4cf store 1 ,mem_24g_data_type 
-006e 204048be call g24_read_len_pid_crc 
-006f 20404a3b call g24_ackpayload_prep 
-0070 2437c837 nbranch g24_end_of_packet ,user3 
-0071 2040488f call g24_transmit_prep 
-0072 2040483f call g24_transmit 
-0073 20204837 branch g24_end_of_packet 
+0074 6fe0c43d fetch 1 ,mem_24g_rxbuf 
+0075 67e0c4cf store 1 ,mem_24g_data_type 
+0076 204048be call g24_read_len_pid_crc 
+0077 20404a3b call g24_ackpayload_prep 
+0078 2437c837 nbranch g24_end_of_packet ,user3 
+0079 2040488f call g24_transmit_prep 
+007a 2040483f call g24_transmit 
+007b 20204837 branch g24_end_of_packet 
 
 p_g24_bind_data_parse_next:
-0074 6fe0c52d fetch 1 ,mem_24g_rxdata_temp + 2 
-0075 c055007a beq datatype_bind ,p_g24_bind_first_step 
-0076 c02a8084 beq datatype_config ,p_g24_bind_second_step 
-0077 c0110094 beq datatype_ok ,p_g24_bind_third_step 
-0078 c07f80ac beq datatype_attemp ,p_g24_data_attemp 
-0079 20600000 rtn 
+007c 6fe0c52d fetch 1 ,mem_24g_rxdata_temp + 2 
+007d c0550082 beq datatype_bind ,p_g24_bind_first_step 
+007e c02a808c beq datatype_config ,p_g24_bind_second_step 
+007f c011009c beq datatype_ok ,p_g24_bind_third_step 
+0080 c07f80b4 beq datatype_attemp ,p_g24_data_attemp 
+0081 20600000 rtn 
 
 p_g24_bind_first_step:
-007a 6fe0c52e fetch 1 ,mem_24g_rxdata_temp + 3 
-007b c000807e beq datatype_device1 ,p_g24_bind_first_step_device1 
-007c c0010081 beq datatype_device2 ,p_g24_bind_first_step_device2 
-007d 20600000 rtn 
+0082 6fe0c52e fetch 1 ,mem_24g_rxdata_temp + 3 
+0083 c0008086 beq datatype_device1 ,p_g24_bind_first_step_device1 
+0084 c0010089 beq datatype_device2 ,p_g24_bind_first_step_device2 
+0085 20600000 rtn 
 
 p_g24_bind_first_step_device1:
-007e 6fe0c5d7 fetch 1 ,mem_24g_device1_bind_disable 
-007f 247a0000 nrtn blank 
-0080 202049ce branch g24_bind_first_step_device1 
+0086 6fe0c5d7 fetch 1 ,mem_24g_device1_bind_disable 
+0087 247a0000 nrtn blank 
+0088 202049ce branch g24_bind_first_step_device1 
 
 p_g24_bind_first_step_device2:
-0081 6fe0c5d8 fetch 1 ,mem_24g_device2_bind_disable 
-0082 247a0000 nrtn blank 
-0083 202049d4 branch g24_bind_first_step_device2 
+0089 6fe0c5d8 fetch 1 ,mem_24g_device2_bind_disable 
+008a 247a0000 nrtn blank 
+008b 202049d4 branch g24_bind_first_step_device2 
 
 p_g24_bind_second_step:
-0084 6fe0c4f4 fetch 1 ,mem_24g_pair_switch 
-0085 203a008a branch p_g24_bind_second_step_skip ,blank 
-0086 6fe2452f fetch 4 ,mem_24g_rxdata_temp + 4 
-0087 684a4437 fetcht 4 ,mem_24g_lap 
-0088 98467c00 isub temp ,null 
-0089 24628000 nrtn zero 
+008c 6fe0c4f4 fetch 1 ,mem_24g_pair_switch 
+008d 203a0092 branch p_g24_bind_second_step_skip ,blank 
+008e 6fe2452f fetch 4 ,mem_24g_rxdata_temp + 4 
+008f 684a4437 fetcht 4 ,mem_24g_lap 
+0090 98467c00 isub temp ,null 
+0091 24628000 nrtn zero 
 
 p_g24_bind_second_step_skip:
-008a 6fe0c52e fetch 1 ,mem_24g_rxdata_temp + 3 
-008b c000808e beq datatype_device1 ,p_g24_bind_second_step_device1 
-008c c0010091 beq datatype_device2 ,p_g24_bind_second_step_device2 
-008d 20600000 rtn 
+0092 6fe0c52e fetch 1 ,mem_24g_rxdata_temp + 3 
+0093 c0008096 beq datatype_device1 ,p_g24_bind_second_step_device1 
+0094 c0010099 beq datatype_device2 ,p_g24_bind_second_step_device2 
+0095 20600000 rtn 
 
 p_g24_bind_second_step_device1:
-008e 6fe0c5d7 fetch 1 ,mem_24g_device1_bind_disable 
-008f 247a0000 nrtn blank 
-0090 202049e1 branch g24_bind_second_step_device1 
+0096 6fe0c5d7 fetch 1 ,mem_24g_device1_bind_disable 
+0097 247a0000 nrtn blank 
+0098 202049e1 branch g24_bind_second_step_device1 
 
 p_g24_bind_second_step_device2:
-0091 6fe0c5d8 fetch 1 ,mem_24g_device2_bind_disable 
-0092 247a0000 nrtn blank 
-0093 202049ec branch g24_bind_second_step_device2 
+0099 6fe0c5d8 fetch 1 ,mem_24g_device2_bind_disable 
+009a 247a0000 nrtn blank 
+009b 202049ec branch g24_bind_second_step_device2 
 
 p_g24_bind_third_step:
-0094 6fe0c4f4 fetch 1 ,mem_24g_pair_switch 
-0095 203a009a branch p_g24_bind_third_step_skip ,blank 
-0096 6fe2452f fetch 4 ,mem_24g_rxdata_temp + 4 
-0097 684a456f fetcht 4 ,mem_24g_transmitter_addr 
-0098 98467c00 isub temp ,null 
-0099 24628000 nrtn zero 
+009c 6fe0c4f4 fetch 1 ,mem_24g_pair_switch 
+009d 203a00a2 branch p_g24_bind_third_step_skip ,blank 
+009e 6fe2452f fetch 4 ,mem_24g_rxdata_temp + 4 
+009f 684a456f fetcht 4 ,mem_24g_transmitter_addr 
+00a0 98467c00 isub temp ,null 
+00a1 24628000 nrtn zero 
 
 p_g24_bind_third_step_skip:
-009a 6fe0c52e fetch 1 ,mem_24g_rxdata_temp + 3 
-009b c000809e beq datatype_device1 ,p_g24_bind_third_step_device1 
-009c c00100a5 beq datatype_device2 ,p_g24_bind_third_step_device2 
-009d 20600000 rtn 
+00a2 6fe0c52e fetch 1 ,mem_24g_rxdata_temp + 3 
+00a3 c00080a6 beq datatype_device1 ,p_g24_bind_third_step_device1 
+00a4 c00100ad beq datatype_device2 ,p_g24_bind_third_step_device2 
+00a5 20600000 rtn 
 
 p_g24_bind_third_step_device1:
-009e 6fe0c5d7 fetch 1 ,mem_24g_device1_bind_disable 
-009f 247a0000 nrtn blank 
-00a0 6fe0c518 fetch 1 ,mem_24g_device1_bind_step 
-00a1 c00100a3 beq 2 ,p_g24_bind_dvc1_step_success 
-00a2 20600000 rtn 
+00a6 6fe0c5d7 fetch 1 ,mem_24g_device1_bind_disable 
+00a7 247a0000 nrtn blank 
+00a8 6fe0c518 fetch 1 ,mem_24g_device1_bind_step 
+00a9 c00100ab beq 2 ,p_g24_bind_dvc1_step_success 
+00aa 20600000 rtn 
 
 p_g24_bind_dvc1_step_success:
-00a3 7045d701 jam 1 ,mem_24g_device1_bind_disable 
-00a4 20204a02 branch g24_bind_dvc1_step_success + 1 
+00ab 7045d701 jam 1 ,mem_24g_device1_bind_disable 
+00ac 20204a02 branch g24_bind_dvc1_step_success + 1 
 
 p_g24_bind_third_step_device2:
-00a5 6fe0c5d8 fetch 1 ,mem_24g_device2_bind_disable 
-00a6 247a0000 nrtn blank 
-00a7 6fe0c519 fetch 1 ,mem_24g_device2_bind_step 
-00a8 c08000aa bne 0 ,p_g24_bind_dvc2_step_success 
-00a9 20600000 rtn 
+00ad 6fe0c5d8 fetch 1 ,mem_24g_device2_bind_disable 
+00ae 247a0000 nrtn blank 
+00af 6fe0c519 fetch 1 ,mem_24g_device2_bind_step 
+00b0 c08000b2 bne 0 ,p_g24_bind_dvc2_step_success 
+00b1 20600000 rtn 
 
 p_g24_bind_dvc2_step_success:
-00aa 7045d801 jam 1 ,mem_24g_device2_bind_disable 
-00ab 20204a0d branch g24_bind_dvc2_step_success + 1 
+00b2 7045d801 jam 1 ,mem_24g_device2_bind_disable 
+00b3 20204a0d branch g24_bind_dvc2_step_success + 1 
 
 p_g24_data_attemp:
-00ac 6fe0c52e fetch 1 ,mem_24g_rxdata_temp + 3 
-00ad c00080b0 beq datatype_device1 ,p_g24_data_attemp_device1 
-00ae c00100b3 beq datatype_device2 ,p_g24_data_attemp_device2 
-00af 20600000 rtn 
+00b4 6fe0c52e fetch 1 ,mem_24g_rxdata_temp + 3 
+00b5 c00080b8 beq datatype_device1 ,p_g24_data_attemp_device1 
+00b6 c00100bb beq datatype_device2 ,p_g24_data_attemp_device2 
+00b7 20600000 rtn 
 
 p_g24_data_attemp_device1:
-00b0 6fe0c5d7 fetch 1 ,mem_24g_device1_bind_disable 
-00b1 247a0000 nrtn blank 
-00b2 20204c24 branch g24_data_attemp_device1 
+00b8 6fe0c5d7 fetch 1 ,mem_24g_device1_bind_disable 
+00b9 247a0000 nrtn blank 
+00ba 20204c24 branch g24_data_attemp_device1 
 
 p_g24_data_attemp_device2:
-00b3 6fe0c5d8 fetch 1 ,mem_24g_device2_bind_disable 
-00b4 247a0000 nrtn blank 
-00b5 20204c28 branch g24_data_attemp_device2 
+00bb 6fe0c5d8 fetch 1 ,mem_24g_device2_bind_disable 
+00bc 247a0000 nrtn blank 
+00bd 20204c28 branch g24_data_attemp_device2 
 
 p_g24_search_mode_auto:
-00b6 6fe0c559 fetch 1 ,mem_24g_work_mode 
-00b7 c1838000 rtnne dongle_search 
-00b8 204000ba call p_g24_search_mode_init 
-00b9 20204b1b branch g24_search_mode_auto + 4 
+00be 6fe0c559 fetch 1 ,mem_24g_work_mode 
+00bf c1838000 rtnne dongle_search 
+00c0 204000c2 call p_g24_search_mode_init 
+00c1 20204b1b branch g24_search_mode_auto + 4 
 
 p_g24_search_mode_init:
-00ba 6fe0c558 fetch 1 ,mem_24g_mode_init 
-00bb c3838000 rtnbit1 dongle_search 
-00bc 79207e07 set1 dongle_search ,pdata 
-00bd 67e0c558 store 1 ,mem_24g_mode_init 
-00be 6fe0c566 fetch 1 ,mem_tx_power_temp 
-00bf 67e0c116 store 1 ,mem_tx_power 
-00c0 20204b0b branch g24_search_mode_init + 4 
+00c2 6fe0c558 fetch 1 ,mem_24g_mode_init 
+00c3 c3838000 rtnbit1 dongle_search 
+00c4 79207e07 set1 dongle_search ,pdata 
+00c5 67e0c558 store 1 ,mem_24g_mode_init 
+00c6 6fe0c566 fetch 1 ,mem_tx_power_temp 
+00c7 67e0c116 store 1 ,mem_tx_power 
+00c8 20204b0b branch g24_search_mode_init + 4 
 
 p_g24_receive_packet_start_next:
-00c1 6fe0c52d fetch 1 ,mem_24g_rxdata_temp + 2 
-00c2 c00080c6 beq datatype_device1 ,p_g24_data_device1 
-00c3 c0014a69 beq datatype_device2 ,g24_data_device2 
-00c4 c07f80d7 beq datatype_attemp ,p_g24_data_receive_attemp 
-00c5 20204a54 branch g24_rx_interrupt_clear 
+00c9 6fe0c52d fetch 1 ,mem_24g_rxdata_temp + 2 
+00ca c00080ce beq datatype_device1 ,p_g24_data_device1 
+00cb c0014a69 beq datatype_device2 ,g24_data_device2 
+00cc c07f80df beq datatype_attemp ,p_g24_data_receive_attemp 
+00cd 20204a54 branch g24_rx_interrupt_clear 
 
 p_g24_data_device1:
-00c6 20404a22 call g24_binding_dvc1_living 
-00c7 20404bbd call g24_ch_timer_reinit 
-00c8 6fe0c54d fetch 1 ,mem_24g_abort_packet 
-00c9 6848c52b fetcht 1 ,mem_24g_rxdata_temp 
-00ca 284ffe03 isolate1 bit_abort ,temp 
-00cb 7920fe00 setflag true ,0 ,pdata 
-00cc 67e0c54d store 1 ,mem_24g_abort_packet 
-00cd c00080cf beq 1 ,p_g24_data_attemp_device1_abort 
-00ce 20204a62 branch g24_data_device1 + 8 
+00ce 20404a22 call g24_binding_dvc1_living 
+00cf 20404bbd call g24_ch_timer_reinit 
+00d0 6fe0c54d fetch 1 ,mem_24g_abort_packet 
+00d1 6848c52b fetcht 1 ,mem_24g_rxdata_temp 
+00d2 284ffe03 isolate1 bit_abort ,temp 
+00d3 7920fe00 setflag true ,0 ,pdata 
+00d4 67e0c54d store 1 ,mem_24g_abort_packet 
+00d5 c00080d7 beq 1 ,p_g24_data_attemp_device1_abort 
+00d6 20204a62 branch g24_data_device1 + 8 
 
 p_g24_data_attemp_device1_abort:
-00cf 6fe0c095 fetch 1 ,mem_device_option 
-00d0 1fe67c0e sub pdata ,dvc_op_car ,null 
-00d1 2042cf01 call car_stop_blink ,zero 
-00d2 6fe0c5d7 fetch 1 ,mem_24g_device1_bind_disable 
-00d3 247a0000 nrtn blank 
-00d4 7045d701 jam 1 ,mem_24g_device1_bind_disable 
-00d5 6fe24535 fetch 4 ,mem_24g_rxdata_temp + 10 
-00d6 20204c26 branch g24_store_device1_addr 
+00d7 6fe0c095 fetch 1 ,mem_device_option 
+00d8 1fe67c0e sub pdata ,dvc_op_car ,null 
+00d9 2042cf01 call car_stop_blink ,zero 
+00da 6fe0c5d7 fetch 1 ,mem_24g_device1_bind_disable 
+00db 247a0000 nrtn blank 
+00dc 7045d701 jam 1 ,mem_24g_device1_bind_disable 
+00dd 6fe24535 fetch 4 ,mem_24g_rxdata_temp + 10 
+00de 20204c26 branch g24_store_device1_addr 
 
 p_g24_data_receive_attemp:
-00d7 20404a30 call g24_bind_device_status 
-00d8 202000ac branch p_g24_data_attemp 
+00df 20404a30 call g24_bind_device_status 
+00e0 202000b4 branch p_g24_data_attemp 
               org 0x3800
 
 start:
Index: program/patch.prog
===================================================================
--- /branch/usb/usb_public_1M/program/patch.prog	(revision 274)
+++ /branch/usb/usb_public_1M/program/patch.prog	(working copy)
@@ -26,8 +26,17 @@
 	fetch 4,mem_lpm_ctrl3
 	store 4,core_lpm_reg
 	call lpm_write_ctrl3
-	branch soft_reset+2
-
+	call app_param_init
+	call initialize_radio
+	call iic_init_360khz
+	call p_init_param
+	branch soft_reset+6
+
+p_init_param:
+	setarg 0 
+	store 8,mem_le_adv_transmit
+	istore 6,contw
+	branch init_param+2
 
 p_dongle_default_init:
 ifdef UART_LOG
