Index: output/flash.dat
===================================================================
--- /branch/mouse_project/YJX_Project/YJX_1066/PBSwitch_3mode_2ch_Auto_ADV_M2DM_YZW_New/output/flash.dat	(revision 6288)
+++ /branch/mouse_project/YJX_Project/YJX_1066/PBSwitch_3mode_2ch_Auto_ADV_M2DM_YZW_New/output/flash.dat	(working copy)
@@ -9935,12 +9935,16 @@
 40
 03
 e3
+78
+34
+7c
+00
 68
 12
 01
 38
 79
-20
+34
 7e
 1a
 60
@@ -9990,15 +9994,15 @@
 68
 10
 80
-7f
+7e
 79
 20
 7e
-00
+06
 60
 10
 80
-7f
+7e
 20
 60
 00
@@ -10055,10 +10059,6 @@
 00
 00
 00
-00
-00
-00
-00
 20
 20
 00
@@ -12623,5 +12623,5 @@
 55
 00
 00
-a8
-67
+c2
+4f
Index: output/program.lis
===================================================================
--- /branch/mouse_project/YJX_Project/YJX_1066/PBSwitch_3mode_2ch_Auto_ADV_M2DM_YZW_New/output/program.lis	(revision 6288)
+++ /branch/mouse_project/YJX_Project/YJX_1066/PBSwitch_3mode_2ch_Auto_ADV_M2DM_YZW_New/output/program.lis	(working copy)
@@ -36061,23 +36061,24 @@
 
 z_mouse_before_hibernate:
 b0020 204003e3 call p_mouse_sensor_powerdown_check 
-b0021 68120138 hfetch 4 ,core_lpm_ctrl 
-b0022 79207e1a set1 26 ,pdata 
-b0023 6012004c hstore 4 ,core_lpm_reg 
-b0024 20402c21 call lpm_write_ctrl 
-b0025 204074bd call disable_authrom 
-b0026 204006e2 call p_mouse_multi_led_off_end 
-b0027 204002d2 call p_mouse_store_flash_device_info 
-b0028 20403e9f call mouse_before_hibernate_wheel_gpio_set 
-b0029 20400268 call p_mouse_setgpio_hibernate 
-b002a 204002ff 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 
-b002e 6810807f hfetch 1 ,core_gpio_pd3 
-b002f 79207e00 set1 0 ,pdata 
-b0030 6010807f hstore 1 ,core_gpio_pd3 
-b0031 20600000 rtn 
+b0021 78347c00 enable user 
+b0022 68120138 hfetch 4 ,0x8138 
+b0023 79347e1a setflag user ,26 ,pdata 
+b0024 6012004c hstore 4 ,core_lpm_reg 
+b0025 20402c21 call lpm_write_ctrl 
+b0026 204074bd call disable_authrom 
+b0027 204006e2 call p_mouse_multi_led_off_end 
+b0028 204002d2 call p_mouse_store_flash_device_info 
+b0029 20403e9f call mouse_before_hibernate_wheel_gpio_set 
+b002a 20400268 call p_mouse_setgpio_hibernate 
+b002b 204002ff call p_flash_deep_power_down 
+b002c 68108081 hfetch 1 ,core_gpio_sel1 
+b002d 1fe17ef7 and pdata ,0xf7 ,pdata 
+b002e 60108081 hstore 1 ,core_gpio_sel1 
+b002f 6810807e hfetch 1 ,core_gpio_pd2 
+b0030 79207e06 set1 6 ,pdata 
+b0031 6010807e hstore 1 ,core_gpio_pd2 
+b0032 20600000 rtn 
               org 0xc0001
 
 z_entranceb:
Index: output/romcode.rom
===================================================================
--- /branch/mouse_project/YJX_Project/YJX_1066/PBSwitch_3mode_2ch_Auto_ADV_M2DM_YZW_New/output/romcode.rom	(revision 6288)
+++ /branch/mouse_project/YJX_Project/YJX_1066/PBSwitch_3mode_2ch_Auto_ADV_M2DM_YZW_New/output/romcode.rom	(working copy)
@@ -25025,8 +25025,9 @@
 c3828000
 202033a7
 204003e3
+78347c00
 68120138
-79207e1a
+79347e1a
 6012004c
 20402c21
 204074bd
@@ -25038,9 +25039,9 @@
 68108081
 1fe17ef7
 60108081
-6810807f
-79207e00
-6010807f
+6810807e
+79207e06
+6010807e
 20600000
 c0588006
 c059000c
@@ -25133,4 +25134,4 @@
 20400035
 6008cdc5
 20600000
-0000885b
+0000061a
Index: program/z.prog
===================================================================
--- /branch/mouse_project/YJX_Project/YJX_1066/PBSwitch_3mode_2ch_Auto_ADV_M2DM_YZW_New/program/z.prog	(revision 6286)
+++ /branch/mouse_project/YJX_Project/YJX_1066/PBSwitch_3mode_2ch_Auto_ADV_M2DM_YZW_New/program/z.prog	(working copy)
@@ -706,8 +706,9 @@
 
 z_mouse_before_hibernate:
 	call p_mouse_sensor_powerdown_check
-	hfetch 4,core_lpm_ctrl
-	set1 26,pdata
+	enable user
+	hfetch 4,0x8138
+	setflag user,26,pdata
 	hstore 4,core_lpm_reg
 	call lpm_write_ctrl
 	call disable_authrom
@@ -720,9 +721,9 @@
 	hfetch 1,core_gpio_sel1
 	and pdata,0xf7,pdata
 	hstore 1,core_gpio_sel1  //disable flash spi
-	hfetch 1,core_gpio_pd3	//gpio24 can not be set pulldown
-	set1 0,pdata
-	hstore 1,core_gpio_pd3
+	hfetch 1,core_gpio_pd2	//flash hold pin gpio22
+	set1 6,pdata
+	hstore 1,core_gpio_pd2
 	rtn
 	
 
