1、解决偶发触摸卡问题:将ST触摸芯片的软件复位全部改成硬件复位。

2、增加版本号打印和BIN文件版本
This commit is contained in:
“苏飞源” 2023-07-14 14:11:55 +08:00
parent 32db9d4562
commit 0b06ceab22
9 changed files with 474 additions and 476 deletions

View File

@ -50,7 +50,7 @@
<InvalidFlash>1</InvalidFlash> <InvalidFlash>1</InvalidFlash>
</TargetStatus> </TargetStatus>
<OutputDirectory>.\Objects\</OutputDirectory> <OutputDirectory>.\Objects\</OutputDirectory>
<OutputName>ISP368_N10Lite_CSOT667</OutputName> <OutputName>ISP368_N10Lite_CSOT667_V100_20230714</OutputName>
<CreateExecutable>1</CreateExecutable> <CreateExecutable>1</CreateExecutable>
<CreateLib>0</CreateLib> <CreateLib>0</CreateLib>
<CreateHexFile>1</CreateHexFile> <CreateHexFile>1</CreateHexFile>
@ -459,6 +459,11 @@
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\..\src\app\demo\app_tp_st_touch.c</FilePath> <FilePath>..\..\src\app\demo\app_tp_st_touch.c</FilePath>
</File> </File>
<File>
<FileName>ap_demo_version.txt</FileName>
<FileType>5</FileType>
<FilePath>..\..\src\app\demo\ap_demo_version.txt</FilePath>
</File>
</Files> </Files>
</Group> </Group>
<Group> <Group>

View File

@ -1,5 +1,5 @@
; generated by Component: ARM Compiler 5.06 update 6 (build 750) Tool: ArmCC [4d3637] ; generated by Component: ARM Compiler 5.06 update 6 (build 750) Tool: ArmCC [4d3637]
; commandline ArmCC [--c99 --list --split_sections --debug -c --asm --interleave --gnu -o.\objects\ap_demo.o --asm_dir=.\Listings\ --list_dir=.\Listings\ --depend=.\objects\ap_demo.d --cpu=Cortex-M0 --apcs=interwork --diag_suppress=9931 -I..\..\src -I..\..\src\board -I..\..\src\common -I..\..\src\sdk\include -I..\..\src\app\demo -I..\..\src\sdk\include\M0 -I..\..\src\app -I..\..\src\app\module_demo -I..\..\src\app\touch -I..\..\src\app\S8 -I..\..\src\app\S9 -I..\CVWL368 -I.\RTE\_ISP_368 -IC:\Users\ASUS\AppData\Local\Arm\Packs\ARM\CMSIS\5.5.1\CMSIS\Core\Include -IC:\Users\ASUS\AppData\Local\Arm\Packs\ARM\CMSIS\5.5.1\Device\ARM\ARMCM0\Include -D__MICROLIB -D__UVISION_VERSION=528 -D_RTE_ -DARMCM0 -DISP_368 --omf_browse=.\objects\ap_demo.crf ..\..\src\app\demo\ap_demo.c] ; commandline ArmCC [--c99 --list --split_sections --debug -c --asm --interleave --gnu -o.\objects\ap_demo.o --asm_dir=.\Listings\ --list_dir=.\Listings\ --depend=.\objects\ap_demo.d --cpu=Cortex-M0 --apcs=interwork --diag_suppress=9931 -I..\..\src -I..\..\src\board -I..\..\src\common -I..\..\src\sdk\include -I..\..\src\app\demo -I..\..\src\sdk\include\M0 -I..\..\src\app -I..\..\src\app\module_demo -I..\..\src\app\touch -I..\..\src\app\S8 -I..\..\src\app\S9 -I..\CVWL368 -I.\RTE\_ISP_368 -IC:\Keil_v5\ARM\PACK\ARM\CMSIS\5.5.1\CMSIS\Core\Include -IC:\Keil_v5\ARM\PACK\ARM\CMSIS\5.5.1\Device\ARM\ARMCM0\Include -D__MICROLIB -D__UVISION_VERSION=528 -D_RTE_ -DARMCM0 -DISP_368 --omf_browse=.\objects\ap_demo.crf ..\..\src\app\demo\ap_demo.c]
THUMB THUMB
AREA ||i.Gpio_swire_output||, CODE, READONLY, ALIGN=1 AREA ||i.Gpio_swire_output||, CODE, READONLY, ALIGN=1
@ -417,458 +417,448 @@
AREA ||i.ap_demo||, CODE, READONLY, ALIGN=2 AREA ||i.ap_demo||, CODE, READONLY, ALIGN=2
ap_demo PROC ap_demo PROC
;;;2447 ;;;2448
;;;2448 void ap_demo(void) ;;;2449 void ap_demo(void)
000000 b51c PUSH {r2-r4,lr} 000000 b51c PUSH {r2-r4,lr}
;;;2449 { ;;;2450 {
;;;2450 hal_gpio_init_output(IO_PAD_TD_TPRSTN, IO_LVL_HIGH); ;;;2451 hal_gpio_init_output(IO_PAD_TD_TPRSTN, IO_LVL_HIGH);
000002 2101 MOVS r1,#1 000002 2101 MOVS r1,#1
000004 2008 MOVS r0,#8 000004 2008 MOVS r0,#8
000006 f7fffffe BL hal_gpio_init_output 000006 f7fffffe BL hal_gpio_init_output
;;;2451 hal_gpio_init_output(IO_PAD_AP_SWIRE, IO_LVL_LOW); ;;;2452 hal_gpio_init_output(IO_PAD_AP_SWIRE, IO_LVL_LOW);
00000a 2100 MOVS r1,#0 00000a 2100 MOVS r1,#0
00000c 2004 MOVS r0,#4 00000c 2004 MOVS r0,#4
00000e f7fffffe BL hal_gpio_init_output 00000e f7fffffe BL hal_gpio_init_output
;;;2452 hal_gpio_init_output(IO_PAD_PWMEN, IO_LVL_LOW); //AP_SWIRE ;;;2453 hal_gpio_init_output(IO_PAD_PWMEN, IO_LVL_LOW); //AP_SWIRE
000012 2100 MOVS r1,#0 000012 2100 MOVS r1,#0
000014 2013 MOVS r0,#0x13 000014 2013 MOVS r0,#0x13
000016 f7fffffe BL hal_gpio_init_output 000016 f7fffffe BL hal_gpio_init_output
;;;2453 hal_gpio_init_output(IO_PAD_ADCIN, IO_LVL_LOW); //SWIRE ;;;2454 hal_gpio_init_output(IO_PAD_ADCIN, IO_LVL_LOW); //SWIRE
00001a 2100 MOVS r1,#0 00001a 2100 MOVS r1,#0
00001c 2014 MOVS r0,#0x14 00001c 2014 MOVS r0,#0x14
00001e f7fffffe BL hal_gpio_init_output 00001e f7fffffe BL hal_gpio_init_output
;;;2454 ;;;2455
;;;2455 TAU_LOGD("N10Lite CSOT667 [%s %s]", __DATE__, __TIME__); ;;;2456 // TAU_LOGD("N10Lite CSOT667 [%s %s]", __DATE__, __TIME__);
000022 a070 ADR r0,|L3.484| ;;;2457 TAU_LOGD("N10Lite V100 20230714");
000024 9000 STR r0,[sp,#0] 000022 4a6e LDR r2,|L3.476|
000026 a372 ADR r3,|L3.496| 000024 a16e ADR r1,|L3.480|
000028 4a74 LDR r2,|L3.508| 000026 a072 ADR r0,|L3.496|
00002a a175 ADR r1,|L3.512| 000028 f7fffffe BL LOG_printf
00002c a078 ADR r0,|L3.528| ;;;2458 /* mipi rx初始化 */
00002e f7fffffe BL LOG_printf ;;;2459 open_mipi_rx();
;;;2456 /* mipi rx初始化 */ 00002c f7fffffe BL open_mipi_rx
;;;2457 open_mipi_rx(); ;;;2460 delayMs(20);
000032 f7fffffe BL open_mipi_rx 000030 2014 MOVS r0,#0x14
;;;2458 delayMs(20); 000032 f7fffffe BL delayMs
000036 2014 MOVS r0,#0x14
000038 f7fffffe BL delayMs
;;;2459
;;;2460 // hal_gpio_set_output_data(IO_PAD_PWMEN, IO_LVL_HIGH); //LED_ON
;;;2461 ;;;2461
;;;2462 app_tp_I2C_init(); ;;;2462 // hal_gpio_set_output_data(IO_PAD_PWMEN, IO_LVL_HIGH); //LED_ON
00003c f7fffffe BL app_tp_I2C_init ;;;2463
;;;2463 // soft_te_timer_init(); ;;;2464 app_tp_I2C_init();
;;;2464 000036 f7fffffe BL app_tp_I2C_init
;;;2465 /* mipi tx 初始化*/ ;;;2465 // soft_te_timer_init();
;;;2466 init_mipi_tx(); ;;;2466
000040 f7fffffe BL init_mipi_tx ;;;2467 /* mipi tx 初始化*/
;;;2467 ;;;2468 init_mipi_tx();
;;;2468 app_tp_init(); 00003a f7fffffe BL init_mipi_tx
000044 f7fffffe BL app_tp_init ;;;2469
;;;2469 #ifdef ADD_TIMER3_FUNCTION ;;;2470 app_tp_init();
;;;2470 tp_sleep_count=0; 00003e f7fffffe BL app_tp_init
000048 487a LDR r0,|L3.564| ;;;2471 #ifdef ADD_TIMER3_FUNCTION
00004a 2400 MOVS r4,#0 ;;;2472 tp_sleep_count=0;
00004c 7004 STRB r4,[r0,#0] 000042 4874 LDR r0,|L3.532|
;;;2471 tp_sleep_clk_count = 0; 000044 2400 MOVS r4,#0
00004e 487a LDR r0,|L3.568| 000046 7004 STRB r4,[r0,#0]
;;;2472 phone_DisplayOFF_count=1; ;;;2473 tp_sleep_clk_count = 0;
000050 4e7a LDR r6,|L3.572| 000048 4873 LDR r0,|L3.536|
000052 7004 STRB r4,[r0,#0] ;2471 ;;;2474 phone_DisplayOFF_count=1;
000054 2501 MOVS r5,#1 00004a 4e74 LDR r6,|L3.540|
000056 81f5 STRH r5,[r6,#0xe] 00004c 7004 STRB r4,[r0,#0] ;2473
;;;2473 hal_timer_init(TIMER_NUM3); 00004e 2501 MOVS r5,#1
000058 2003 MOVS r0,#3 000050 81f5 STRH r5,[r6,#0xe]
00005a f7fffffe BL hal_timer_init ;;;2475 hal_timer_init(TIMER_NUM3);
;;;2474 hal_timer_start(TIMER_NUM3, 10, soft_timer3_cb, NULL); 000052 2003 MOVS r0,#3
00005e 2300 MOVS r3,#0 000054 f7fffffe BL hal_timer_init
000060 4a77 LDR r2,|L3.576| ;;;2476 hal_timer_start(TIMER_NUM3, 10, soft_timer3_cb, NULL);
000062 210a MOVS r1,#0xa 000058 2300 MOVS r3,#0
000064 2003 MOVS r0,#3 00005a 4a71 LDR r2,|L3.544|
000066 f7fffffe BL hal_timer_start 00005c 210a MOVS r1,#0xa
;;;2475 #endif 00005e 2003 MOVS r0,#3
;;;2476 000060 f7fffffe BL hal_timer_start
;;;2477 while (1) ;;;2477 #endif
;;;2478 { ;;;2478
;;;2479 if (start_display_on == true ) ;;;2479 while (1)
;;;2480 { ;;;2480 {
;;;2481 tx_display_on(); ;;;2481 if (start_display_on == true )
;;;2482 start_display_on = false; ;;;2482 {
;;;2483 ;;;2483 tx_display_on();
;;;2484 #ifndef DISABLE_TDDI_I2C_FUNCTION ;;;2484 start_display_on = false;
;;;2485 /* 与屏的TP 模块通讯并初始化 */ ;;;2485
;;;2486 app_tp_transfer_screen_start(); ;;;2486 #ifndef DISABLE_TDDI_I2C_FUNCTION
;;;2487 #endif ;;;2487 /* 与屏的TP 模块通讯并初始化 */
;;;2488 #if ENABLE_TP_WAKE_UP ;;;2488 app_tp_transfer_screen_start();
;;;2489 hal_gpio_set_ap_reset_int(ENABLE, ap_reset_cb, DETECT_RISING_EDGE); ;;;2489 #endif
;;;2490 #endif ;;;2490 #if ENABLE_TP_WAKE_UP
;;;2491 } ;;;2491 hal_gpio_set_ap_reset_int(ENABLE, ap_reset_cb, DETECT_RISING_EDGE);
;;;2492 ;;;2492 #endif
;;;2493 #if 1//电话熄屏 ;;;2493 }
;;;2494 if (phone_off_flag==0) ;;;2494
;;;2495 { ;;;2495 #if 1//电话熄屏
;;;2496 if(Flag_blacklight_EN) ;;;2496 if (phone_off_flag==0)
00006a 4f76 LDR r7,|L3.580| ;;;2497 {
|L3.108| ;;;2498 if(Flag_blacklight_EN)
00006c 7830 LDRB r0,[r6,#0] ;2479 ; start_display_on 000064 4f6f LDR r7,|L3.548|
00006e 2800 CMP r0,#0 ;2479 |L3.102|
000070 d01f BEQ |L3.178| 000066 7830 LDRB r0,[r6,#0] ;2481 ; start_display_on
000072 f7fffffe BL init_panel 000068 2800 CMP r0,#0 ;2481
000076 4a61 LDR r2,|L3.508| 00006a d01f BEQ |L3.172|
000078 4973 LDR r1,|L3.584| 00006c f7fffffe BL init_panel
00007a 3a4f SUBS r2,r2,#0x4f ;2479 000070 4a5a LDR r2,|L3.476|
00007c a073 ADR r0,|L3.588| 000072 496d LDR r1,|L3.552|
00007e f7fffffe BL LOG_printf 000074 3a51 SUBS r2,r2,#0x51 ;2481
000082 70b5 STRB r5,[r6,#2] ;2479 000076 a06d ADR r0,|L3.556|
000084 69f0 LDR r0,[r6,#0x1c] ;2479 ; g_tx_ctrl_handle 000078 f7fffffe BL LOG_printf
000086 f7fffffe BL hal_dsi_tx_ctrl_start 00007c 70b5 STRB r5,[r6,#2] ;2481
00008a 2014 MOVS r0,#0x14 ;2479 00007e 69f0 LDR r0,[r6,#0x1c] ;2481 ; g_tx_ctrl_handle
00008c f7fffffe BL delayMs 000080 f7fffffe BL hal_dsi_tx_ctrl_start
000090 2329 MOVS r3,#0x29 ;2479 000084 2014 MOVS r0,#0x14 ;2481
000092 2201 MOVS r2,#1 ;2479 000086 f7fffffe BL delayMs
000094 2100 MOVS r1,#0 ;2479 00008a 2329 MOVS r3,#0x29 ;2481
000096 2005 MOVS r0,#5 ;2479 00008c 2201 MOVS r2,#1 ;2481
000098 f7fffffe BL hal_dsi_tx_ctrl_write_cmd 00008e 2100 MOVS r1,#0 ;2481
00009c 200a MOVS r0,#0xa ;2479 000090 2005 MOVS r0,#5 ;2481
00009e f7fffffe BL delayMs 000092 f7fffffe BL hal_dsi_tx_ctrl_write_cmd
0000a2 7034 STRB r4,[r6,#0] ;2482 000096 200a MOVS r0,#0xa ;2481
0000a4 f7fffffe BL app_tp_transfer_screen_start 000098 f7fffffe BL delayMs
0000a8 2202 MOVS r2,#2 ;2489 00009c 7034 STRB r4,[r6,#0] ;2484
0000aa 496e LDR r1,|L3.612| 00009e f7fffffe BL app_tp_transfer_screen_start
0000ac 2001 MOVS r0,#1 ;2489 0000a2 2202 MOVS r2,#2 ;2491
0000ae f7fffffe BL hal_gpio_set_ap_reset_int 0000a4 4967 LDR r1,|L3.580|
|L3.178| 0000a6 2001 MOVS r0,#1 ;2491
0000b2 79f0 LDRB r0,[r6,#7] ;2494 ; phone_off_flag 0000a8 f7fffffe BL hal_gpio_set_ap_reset_int
0000b4 2800 CMP r0,#0 ;2494 |L3.172|
;;;2497 { 0000ac 79f0 LDRB r0,[r6,#7] ;2496 ; phone_off_flag
;;;2498 phone_off_flag =1; 0000ae 2800 CMP r0,#0 ;2496
;;;2499 hal_dsi_tx_ctrl_write_cmd(0x39, 0, 2, 0x28, 0x00); ;;;2499 {
;;;2500 TAU_LOGD("Phone off 28"); ;;;2500 phone_off_flag =1;
;;;2501 } ;;;2501 hal_dsi_tx_ctrl_write_cmd(0x39, 0, 2, 0x28, 0x00);
;;;2502 } ;;;2502 TAU_LOGD("Phone off 28");
;;;2503 else ;;;2503 }
;;;2504 { ;;;2504 }
;;;2505 if(Flag_blacklight_EN ==0) ;;;2505 else
0000b6 7838 LDRB r0,[r7,#0] ; Flag_blacklight_EN ;;;2506 {
0000b8 d002 BEQ |L3.192| ;;;2507 if(Flag_blacklight_EN ==0)
0000ba 2800 CMP r0,#0 0000b0 7838 LDRB r0,[r7,#0] ; Flag_blacklight_EN
0000bc d00f BEQ |L3.222| 0000b2 d002 BEQ |L3.186|
0000be e01c B |L3.250| 0000b4 2800 CMP r0,#0
|L3.192| 0000b6 d00f BEQ |L3.216|
0000c0 2800 CMP r0,#0 ;2496 0000b8 e01c B |L3.244|
0000c2 d01a BEQ |L3.250| |L3.186|
0000c4 71f5 STRB r5,[r6,#7] ;2498 0000ba 2800 CMP r0,#0 ;2498
0000c6 2328 MOVS r3,#0x28 ;2499 0000bc d01a BEQ |L3.244|
0000c8 2202 MOVS r2,#2 ;2499 0000be 71f5 STRB r5,[r6,#7] ;2500
0000ca 2100 MOVS r1,#0 ;2499 0000c0 2328 MOVS r3,#0x28 ;2501
0000cc 2039 MOVS r0,#0x39 ;2499 0000c2 2202 MOVS r2,#2 ;2501
0000ce 9400 STR r4,[sp,#0] ;2499 0000c4 2100 MOVS r1,#0 ;2501
0000d0 f7fffffe BL hal_dsi_tx_ctrl_write_cmd 0000c6 2039 MOVS r0,#0x39 ;2501
0000d4 4a49 LDR r2,|L3.508| 0000c8 9400 STR r4,[sp,#0] ;2501
0000d6 a14a ADR r1,|L3.512| 0000ca f7fffffe BL hal_dsi_tx_ctrl_write_cmd
0000d8 322d ADDS r2,r2,#0x2d ;2500 0000ce 4a43 LDR r2,|L3.476|
0000da a063 ADR r0,|L3.616| 0000d0 a143 ADR r1,|L3.480|
0000dc e00b B |L3.246| 0000d2 322d ADDS r2,r2,#0x2d ;2502
|L3.222| 0000d4 a05c ADR r0,|L3.584|
;;;2506 { 0000d6 e00b B |L3.240|
;;;2507 phone_off_flag =0; |L3.216|
0000de 71f4 STRB r4,[r6,#7] ;;;2508 {
;;;2508 hal_dsi_tx_ctrl_write_cmd(0x39, 0, 2, 0x29, 0x00); ;;;2509 phone_off_flag =0;
0000e0 2329 MOVS r3,#0x29 0000d8 71f4 STRB r4,[r6,#7]
0000e2 2202 MOVS r2,#2 ;;;2510 hal_dsi_tx_ctrl_write_cmd(0x39, 0, 2, 0x29, 0x00);
0000e4 2100 MOVS r1,#0 0000da 2329 MOVS r3,#0x29
0000e6 2039 MOVS r0,#0x39 0000dc 2202 MOVS r2,#2
0000e8 9400 STR r4,[sp,#0] 0000de 2100 MOVS r1,#0
0000ea f7fffffe BL hal_dsi_tx_ctrl_write_cmd 0000e0 2039 MOVS r0,#0x39
;;;2509 TAU_LOGD("Phone off 29"); 0000e2 9400 STR r4,[sp,#0]
0000ee 4a43 LDR r2,|L3.508| 0000e4 f7fffffe BL hal_dsi_tx_ctrl_write_cmd
0000f0 a143 ADR r1,|L3.512| ;;;2511 TAU_LOGD("Phone off 29");
0000f2 3236 ADDS r2,r2,#0x36 0000e8 4a3c LDR r2,|L3.476|
0000f4 a063 ADR r0,|L3.644| 0000ea a13d ADR r1,|L3.480|
|L3.246| 0000ec 3236 ADDS r2,r2,#0x36
0000f6 f7fffffe BL LOG_printf 0000ee a05d ADR r0,|L3.612|
|L3.250| |L3.240|
;;;2510 } 0000f0 f7fffffe BL LOG_printf
;;;2511 } |L3.244|
;;;2512 #endif ;;;2512 }
;;;2513 if(phone_DisplayOFF_flag==1) ;;;2513 }
0000fa 7a70 LDRB r0,[r6,#9] ; phone_DisplayOFF_flag ;;;2514 #endif
0000fc 2801 CMP r0,#1 ;;;2515 if(phone_DisplayOFF_flag==1)
;;;2514 { 0000f4 7a70 LDRB r0,[r6,#9] ; phone_DisplayOFF_flag
;;;2515 if(phone_DisplayOFF_count>2200) 0000f6 2801 CMP r0,#1
;;;2516 { ;;;2516 {
;;;2517 phone_DisplayOFF_count=0; ;;;2517 if(phone_DisplayOFF_count>2200)
;;;2518 phone_start_flag=1; ;;;2518 {
;;;2519 } ;;;2519 phone_DisplayOFF_count=0;
;;;2520 } ;;;2520 phone_start_flag=1;
;;;2521 else ;;;2521 }
;;;2522 { ;;;2522 }
;;;2523 if(phone_DisplayOFF_count>30) ;;;2523 else
0000fe 89f0 LDRH r0,[r6,#0xe] ; phone_DisplayOFF_count ;;;2524 {
000100 d019 BEQ |L3.310| ;;;2525 if(phone_DisplayOFF_count>30)
000102 281e CMP r0,#0x1e 0000f8 89f0 LDRH r0,[r6,#0xe] ; phone_DisplayOFF_count
000104 d905 BLS |L3.274| 0000fa d019 BEQ |L3.304|
;;;2524 { 0000fc 281e CMP r0,#0x1e
;;;2525 phone_DisplayOFF_count=0; 0000fe d905 BLS |L3.268|
000106 81f4 STRH r4,[r6,#0xe] ;;;2526 {
;;;2526 phone_start_flag=1; ;;;2527 phone_DisplayOFF_count=0;
000108 7235 STRB r5,[r6,#8] 000100 81f4 STRH r4,[r6,#0xe]
;;;2527 hal_gpio_set_output_data(IO_PAD_AP_INT, IO_LVL_LOW);//必须拉低否则待机或者双击唤醒2~3s无触摸.jason_su ;;;2528 phone_start_flag=1;
00010a 2100 MOVS r1,#0 000102 7235 STRB r5,[r6,#8]
00010c 2002 MOVS r0,#2 ;;;2529 hal_gpio_set_output_data(IO_PAD_AP_INT, IO_LVL_LOW);//必须拉低否则待机或者双击唤醒2~3s无触摸.jason_su
00010e f7fffffe BL hal_gpio_set_output_data 000104 2100 MOVS r1,#0
|L3.274| 000106 2002 MOVS r0,#2
;;;2528 } 000108 f7fffffe BL hal_gpio_set_output_data
;;;2529 } |L3.268|
;;;2530 ;;;2530 }
;;;2531 ;;;2531 }
;;;2532 if (BL_ADJ_flag) ;;;2532
000112 79b0 LDRB r0,[r6,#6] ; BL_ADJ_flag ;;;2533
;;;2534 if (BL_ADJ_flag)
00010c 79b0 LDRB r0,[r6,#6] ; BL_ADJ_flag
00010e 2800 CMP r0,#0
000110 d02e BEQ |L3.368|
;;;2535 {
;;;2536 if(hbm_mode) //高亮延时
000112 7ab0 LDRB r0,[r6,#0xa] ; hbm_mode
000114 2800 CMP r0,#0 000114 2800 CMP r0,#0
000116 d02f BEQ |L3.376| 000116 d014 BEQ |L3.322|
;;;2533 { ;;;2537 {
;;;2534 if(hbm_mode) //高亮延时 ;;;2538 if (enter_hbm_mode_cnt <41)
000118 7ab0 LDRB r0,[r6,#0xa] ; hbm_mode 000118 7930 LDRB r0,[r6,#4] ; enter_hbm_mode_cnt
00011a 2800 CMP r0,#0 00011a 2829 CMP r0,#0x29
00011c d015 BEQ |L3.330| 00011c d228 BCS |L3.368|
;;;2535 { 00011e 1c40 ADDS r0,r0,#1
;;;2536 if (enter_hbm_mode_cnt <41) ;;;2539 {
00011e 7930 LDRB r0,[r6,#4] ; enter_hbm_mode_cnt ;;;2540 enter_hbm_mode_cnt++;
000120 2829 CMP r0,#0x29 000120 7130 STRB r0,[r6,#4]
000122 d229 BCS |L3.376| ;;;2541 delayMs(1);
000124 1c40 ADDS r0,r0,#1 000122 2001 MOVS r0,#1
;;;2537 { 000124 f7fffffe BL delayMs
;;;2538 enter_hbm_mode_cnt++; ;;;2542 if (enter_hbm_mode_cnt ==40)
000126 7130 STRB r0,[r6,#4] 000128 7930 LDRB r0,[r6,#4] ; enter_hbm_mode_cnt
;;;2539 delayMs(1); 00012a 2828 CMP r0,#0x28
000128 2001 MOVS r0,#1 00012c d006 BEQ |L3.316|
00012a f7fffffe BL delayMs 00012e e01f B |L3.368|
;;;2540 if (enter_hbm_mode_cnt ==40) |L3.304|
00012e 7930 LDRB r0,[r6,#4] ; enter_hbm_mode_cnt 000130 4953 LDR r1,|L3.640|
000130 2828 CMP r0,#0x28 000132 4288 CMP r0,r1 ;2517
000132 d007 BEQ |L3.324| 000134 d9ea BLS |L3.268|
000134 e020 B |L3.376| 000136 81f4 STRH r4,[r6,#0xe] ;2519
|L3.310| 000138 7235 STRB r5,[r6,#8] ;2520
000136 4931 LDR r1,|L3.508| 00013a e7e7 B |L3.268|
000138 39ff SUBS r1,r1,#0xff ;2515 |L3.316|
00013a 4288 CMP r0,r1 ;2515 ;;;2543 {
00013c d9e9 BLS |L3.274| ;;;2544 hal_dsi_tx_ctrl_write_cmd(0x39, 0, 3, 0x51, 0x07, 0xFF);
00013e 81f4 STRH r4,[r6,#0xe] ;2517 00013c 21ff MOVS r1,#0xff
000140 7235 STRB r5,[r6,#8] ;2518 00013e 2007 MOVS r0,#7
000142 e7e6 B |L3.274| ;;;2545 BL_ADJ_flag=false;
|L3.324| 000140 e00d B |L3.350|
;;;2541 { |L3.322|
;;;2542 hal_dsi_tx_ctrl_write_cmd(0x39, 0, 3, 0x51, 0x07, 0xFF); ;;;2546 }
000144 21ff MOVS r1,#0xff ;;;2547 }
000146 2007 MOVS r0,#7 ;;;2548 }
;;;2543 BL_ADJ_flag=false; ;;;2549 else
000148 e00d B |L3.358| ;;;2550 {
|L3.330| ;;;2551 if (exit_hbm_mode_cnt < 3) //7
;;;2544 } 000142 7970 LDRB r0,[r6,#5] ; exit_hbm_mode_cnt
;;;2545 } 000144 2803 CMP r0,#3
;;;2546 } 000146 d213 BCS |L3.368|
;;;2547 else 000148 1c40 ADDS r0,r0,#1
;;;2548 { ;;;2552 {
;;;2549 if (exit_hbm_mode_cnt < 3) //7 ;;;2553 exit_hbm_mode_cnt++;
00014a 7970 LDRB r0,[r6,#5] ; exit_hbm_mode_cnt 00014a 7170 STRB r0,[r6,#5]
00014c 2803 CMP r0,#3 ;;;2554 delayMs(1);
00014e d213 BCS |L3.376| 00014c 2001 MOVS r0,#1
000150 1c40 ADDS r0,r0,#1 00014e f7fffffe BL delayMs
;;;2550 { ;;;2555 if (exit_hbm_mode_cnt==2)
;;;2551 exit_hbm_mode_cnt++; 000152 7970 LDRB r0,[r6,#5] ; exit_hbm_mode_cnt
000152 7170 STRB r0,[r6,#5] 000154 2802 CMP r0,#2
;;;2552 delayMs(1); 000156 d10b BNE |L3.368|
000154 2001 MOVS r0,#1 ;;;2556 {
000156 f7fffffe BL delayMs ;;;2557 hal_dsi_tx_ctrl_write_cmd(0x39, 0, 3, 0x51, rd_51_val2>>8, rd_51_val2&0xFF);
;;;2553 if (exit_hbm_mode_cnt==2) 000158 8a30 LDRH r0,[r6,#0x10] ; rd_51_val2
00015a 7970 LDRB r0,[r6,#5] ; exit_hbm_mode_cnt 00015a b2c1 UXTB r1,r0
00015c 2802 CMP r0,#2 00015c 0a00 LSRS r0,r0,#8
00015e d10b BNE |L3.376| |L3.350|
;;;2554 { 00015e 9101 STR r1,[sp,#4]
;;;2555 hal_dsi_tx_ctrl_write_cmd(0x39, 0, 3, 0x51, rd_51_val2>>8, rd_51_val2&0xFF); 000160 9000 STR r0,[sp,#0]
000160 8a30 LDRH r0,[r6,#0x10] ; rd_51_val2 000162 2351 MOVS r3,#0x51
000162 b2c1 UXTB r1,r0 000164 2203 MOVS r2,#3
000164 0a00 LSRS r0,r0,#8 000166 2100 MOVS r1,#0
|L3.358| 000168 2039 MOVS r0,#0x39
000166 9101 STR r1,[sp,#4] 00016a f7fffffe BL hal_dsi_tx_ctrl_write_cmd
000168 9000 STR r0,[sp,#0] ;;;2558 BL_ADJ_flag=false;
00016a 2351 MOVS r3,#0x51 00016e 71b4 STRB r4,[r6,#6]
00016c 2203 MOVS r2,#3 |L3.368|
00016e 2100 MOVS r1,#0 ;;;2559 }
000170 2039 MOVS r0,#0x39 ;;;2560 }
000172 f7fffffe BL hal_dsi_tx_ctrl_write_cmd ;;;2561 }
;;;2556 BL_ADJ_flag=false; ;;;2562 }
000176 71b4 STRB r4,[r6,#6] ;;;2563
|L3.376| ;;;2564
;;;2557 } ;;;2565
;;;2558 } ;;;2566 #ifndef DISABLE_TDDI_I2C_FUNCTION
;;;2559 } ;;;2567 /* 等待屏 TP 中断上报做TP 协议转换 */
;;;2560 } ;;;2568 app_tp_transfer_screen_int();
;;;2561 000170 f7fffffe BL app_tp_transfer_screen_int
;;;2562 ;;;2569 #endif
;;;2563 ;;;2570 tp_heartbeat_exec();
;;;2564 #ifndef DISABLE_TDDI_I2C_FUNCTION 000174 f7fffffe BL tp_heartbeat_exec
;;;2565 /* 等待屏 TP 中断上报做TP 协议转换 */ ;;;2571 app_tp_calibration_exec();
;;;2566 app_tp_transfer_screen_int(); 000178 f7fffffe BL app_tp_calibration_exec
000178 f7fffffe BL app_tp_transfer_screen_int ;;;2572 ap_tp_st_touch_scan_point_record_event_exec();
;;;2567 #endif 00017c f7fffffe BL ap_tp_st_touch_scan_point_record_event_exec
;;;2568 tp_heartbeat_exec(); |L3.384|
00017c f7fffffe BL tp_heartbeat_exec ;;;2573
;;;2569 app_tp_calibration_exec(); ;;;2574 while (hal_dsi_rx_ctrl_dsc_async_handler(g_rx_ctrl_handle));
000180 f7fffffe BL app_tp_calibration_exec 000180 69b0 LDR r0,[r6,#0x18] ; g_rx_ctrl_handle
;;;2570 ap_tp_st_touch_scan_point_record_event_exec(); 000182 f7fffffe BL hal_dsi_rx_ctrl_dsc_async_handler
000184 f7fffffe BL ap_tp_st_touch_scan_point_record_event_exec 000186 2800 CMP r0,#0
|L3.392| 000188 d1fa BNE |L3.384|
;;;2571 ;;;2575
;;;2572 while (hal_dsi_rx_ctrl_dsc_async_handler(g_rx_ctrl_handle)); ;;;2576 #if ENABLE_TP_WAKE_UP
000188 69b0 LDR r0,[r6,#0x18] ; g_rx_ctrl_handle ;;;2577 if (g_need_enter_sleep_mode)
00018a f7fffffe BL hal_dsi_rx_ctrl_dsc_async_handler 00018a 7af0 LDRB r0,[r6,#0xb] ; g_need_enter_sleep_mode
00018e 2800 CMP r0,#0 00018c 2800 CMP r0,#0
000190 d1fa BNE |L3.392| 00018e d100 BNE |L3.402|
;;;2573 000190 e769 B |L3.102|
;;;2574 #if ENABLE_TP_WAKE_UP |L3.402|
;;;2575 if (g_need_enter_sleep_mode) ;;;2578 {
000192 7af0 LDRB r0,[r6,#0xb] ; g_need_enter_sleep_mode ;;;2579 tp_sleep_in=1;
000194 2800 CMP r0,#0 000192 483c LDR r0,|L3.644|
000196 d100 BNE |L3.410| 000194 7005 STRB r5,[r0,#0]
000198 e768 B |L3.108| ;;;2580 // hal_gpio_set_output_data(IO_PAD_TD_LEDPWM, IO_LVL_HIGH);
|L3.410| ;;;2581
;;;2576 { ;;;2582 /* FIXME stop more model */
;;;2577 tp_sleep_in=1; ;;;2583 hal_dsi_tx_ctrl_stop(g_tx_ctrl_handle);
00019a 4841 LDR r0,|L3.672| 000196 69f0 LDR r0,[r6,#0x1c] ; g_tx_ctrl_handle
00019c 7005 STRB r5,[r0,#0] 000198 f7fffffe BL hal_dsi_tx_ctrl_stop
;;;2578 // hal_gpio_set_output_data(IO_PAD_TD_LEDPWM, IO_LVL_HIGH); ;;;2584 hal_dsi_tx_ctrl_deinit(g_tx_ctrl_handle);
;;;2579 00019c 69f0 LDR r0,[r6,#0x1c] ; g_tx_ctrl_handle
;;;2580 /* FIXME stop more model */ 00019e f7fffffe BL hal_dsi_tx_ctrl_deinit
;;;2581 hal_dsi_tx_ctrl_stop(g_tx_ctrl_handle); ;;;2585 hal_dsi_rx_ctrl_stop(g_rx_ctrl_handle);
00019e 69f0 LDR r0,[r6,#0x1c] ; g_tx_ctrl_handle 0001a2 69b0 LDR r0,[r6,#0x18] ; g_rx_ctrl_handle
0001a0 f7fffffe BL hal_dsi_tx_ctrl_stop 0001a4 f7fffffe BL hal_dsi_rx_ctrl_stop
;;;2582 hal_dsi_tx_ctrl_deinit(g_tx_ctrl_handle); ;;;2586 hal_dsi_rx_ctrl_deinit(g_rx_ctrl_handle);
0001a4 69f0 LDR r0,[r6,#0x1c] ; g_tx_ctrl_handle 0001a8 69b0 LDR r0,[r6,#0x18] ; g_rx_ctrl_handle
0001a6 f7fffffe BL hal_dsi_tx_ctrl_deinit 0001aa f7fffffe BL hal_dsi_rx_ctrl_deinit
;;;2583 hal_dsi_rx_ctrl_stop(g_rx_ctrl_handle); ;;;2587
0001aa 69b0 LDR r0,[r6,#0x18] ; g_rx_ctrl_handle ;;;2588 hal_swire_open(DISABLE);
0001ac f7fffffe BL hal_dsi_rx_ctrl_stop 0001ae 2000 MOVS r0,#0
;;;2584 hal_dsi_rx_ctrl_deinit(g_rx_ctrl_handle); 0001b0 f7fffffe BL hal_swire_open
0001b0 69b0 LDR r0,[r6,#0x18] ; g_rx_ctrl_handle ;;;2589 hal_swire_deinit();
0001b2 f7fffffe BL hal_dsi_rx_ctrl_deinit 0001b4 f7fffffe BL hal_swire_deinit
;;;2585 ;;;2590 hal_timer_stop(SWIRE_TIMER);
;;;2586 hal_swire_open(DISABLE); 0001b8 2001 MOVS r0,#1
0001b6 2000 MOVS r0,#0 0001ba f7fffffe BL hal_timer_stop
0001b8 f7fffffe BL hal_swire_open ;;;2591 hal_timer_deinit(SWIRE_TIMER);
;;;2587 hal_swire_deinit(); 0001be 2001 MOVS r0,#1
0001bc f7fffffe BL hal_swire_deinit 0001c0 f7fffffe BL hal_timer_deinit
;;;2588 hal_timer_stop(SWIRE_TIMER); ;;;2592
0001c0 2001 MOVS r0,#1 ;;;2593 hal_system_set_vcc(false);
0001c2 f7fffffe BL hal_timer_stop 0001c4 2000 MOVS r0,#0
;;;2589 hal_timer_deinit(SWIRE_TIMER); 0001c6 f7fffffe BL hal_system_set_vcc
0001c6 2001 MOVS r0,#1 ;;;2594 TAU_LOGD("disable video path\n");
0001c8 f7fffffe BL hal_timer_deinit 0001ca 4a04 LDR r2,|L3.476|
;;;2590 0001cc a104 ADR r1,|L3.480|
;;;2591 hal_system_set_vcc(false); 0001ce 3289 ADDS r2,r2,#0x89
0001cc 2000 MOVS r0,#0 0001d0 a02d ADR r0,|L3.648|
0001ce f7fffffe BL hal_system_set_vcc 0001d2 f7fffffe BL LOG_printf
;;;2592 TAU_LOGD("disable video path\n"); ;;;2595 g_need_enter_sleep_mode = false;
0001d2 2251 MOVS r2,#0x51 0001d6 72f4 STRB r4,[r6,#0xb]
0001d4 0152 LSLS r2,r2,#5 0001d8 e745 B |L3.102|
0001d6 a10a ADR r1,|L3.512| ;;;2596 }
0001d8 a032 ADR r0,|L3.676| ;;;2597 #endif
0001da f7fffffe BL LOG_printf ;;;2598 }
;;;2593 g_need_enter_sleep_mode = false; ;;;2599 }
0001de 72f4 STRB r4,[r6,#0xb] ;;;2600
0001e0 e744 B |L3.108|
;;;2594 }
;;;2595 #endif
;;;2596 }
;;;2597 }
;;;2598
ENDP ENDP
0001e2 0000 DCW 0x0000 0001da 0000 DCW 0x0000
|L3.484| |L3.476|
0001e4 31313a33 DCB "11:39:01",0 DCD 0x00000999
0001e8 393a3031 |L3.480|
0001ec 00 0001e0 4e31304c DCB "N10Lite_NT37701",0
0001ed 00 DCB 0 0001e4 6974655f
0001ee 00 DCB 0 0001e8 4e543337
0001ef 00 DCB 0 0001ec 37303100
|L3.496| |L3.496|
0001f0 4a756c20 DCB "Jul 6 2023",0 0001f0 5b25735d DCB "[%s] (%04d) N10Lite V100 20230714",0
0001f4 20362032 0001f4 20282530
0001f8 30323300 0001f8 34642920
|L3.508| 0001fc 4e31304c
DCD 0x00000997 000200 69746520
|L3.512| 000204 56313030
000200 4e31304c DCB "N10Lite_NT37701",0 000208 20323032
000204 6974655f 00020c 33303731
000208 4e543337 000210 3400
00020c 37303100 000212 00 DCB 0
|L3.528| 000213 00 DCB 0
000210 5b25735d DCB "[%s] (%04d) N10Lite CSOT667 [%s %s]",0 |L3.532|
000214 20282530
000218 34642920
00021c 4e31304c
000220 69746520
000224 43534f54
000228 36363720
00022c 5b257320
000230 25735d00
|L3.564|
DCD tp_sleep_count DCD tp_sleep_count
|L3.568| |L3.536|
DCD tp_sleep_clk_count DCD tp_sleep_clk_count
|L3.572| |L3.540|
DCD ||.data|| DCD ||.data||
|L3.576| |L3.544|
DCD soft_timer3_cb DCD soft_timer3_cb
|L3.580| |L3.548|
DCD Flag_blacklight_EN DCD Flag_blacklight_EN
|L3.584| |L3.552|
DCD ||i.init_panel||+0xc8 DCD ||i.init_panel||+0xc8
|L3.588| |L3.556|
00024c 5b25735d DCB "[%s] (%04d) init code",0 00022c 5b25735d DCB "[%s] (%04d) init code",0
000250 20282530 000230 20282530
000254 34642920 000234 34642920
000258 696e6974 000238 696e6974
00025c 20636f64 00023c 20636f64
000260 6500 000240 6500
000242 00 DCB 0
000243 00 DCB 0
|L3.580|
DCD ap_reset_cb
|L3.584|
000248 5b25735d DCB "[%s] (%04d) Phone off 28",0
00024c 20282530
000250 34642920
000254 50686f6e
000258 65206f66
00025c 66203238
000260 00
000261 00 DCB 0
000262 00 DCB 0 000262 00 DCB 0
000263 00 DCB 0 000263 00 DCB 0
|L3.612| |L3.612|
DCD ap_reset_cb 000264 5b25735d DCB "[%s] (%04d) Phone off 29",0
|L3.616| 000268 20282530
000268 5b25735d DCB "[%s] (%04d) Phone off 28",0 00026c 34642920
00026c 20282530 000270 50686f6e
000270 34642920 000274 65206f66
000274 50686f6e 000278 66203239
000278 65206f66 00027c 00
00027c 66203238 00027d 00 DCB 0
000280 00 00027e 00 DCB 0
000281 00 DCB 0 00027f 00 DCB 0
000282 00 DCB 0 |L3.640|
000283 00 DCB 0 DCD 0x00000898
|L3.644| |L3.644|
000284 5b25735d DCB "[%s] (%04d) Phone off 29",0
000288 20282530
00028c 34642920
000290 50686f6e
000294 65206f66
000298 66203239
00029c 00
00029d 00 DCB 0
00029e 00 DCB 0
00029f 00 DCB 0
|L3.672|
DCD tp_sleep_in DCD tp_sleep_in
|L3.676| |L3.648|
0002a4 5b25735d DCB "[%s] (%04d) disable video path\n",0 000288 5b25735d DCB "[%s] (%04d) disable video path\n",0
0002a8 20282530 00028c 20282530
0002ac 34642920 000290 34642920
0002b0 64697361 000294 64697361
0002b4 626c6520 000298 626c6520
0002b8 76696465 00029c 76696465
0002bc 6f207061 0002a0 6f207061
0002c0 74680a00 0002a4 74680a00
AREA ||i.ap_get_reg_53||, CODE, READONLY, ALIGN=2 AREA ||i.ap_get_reg_53||, CODE, READONLY, ALIGN=2
@ -2301,11 +2291,12 @@
;;;2438 { ;;;2438 {
;;;2439 TAU_LOGD("hb..."); ;;;2439 TAU_LOGD("hb...");
;;;2440 s_heartbeat = 0; ;;;2440 s_heartbeat = 0;
;;;2441 ap_tp_st_touch_software_reset(); ;;;2441 // ap_tp_st_touch_software_reset();
;;;2442 } ;;;2442 ap_tp_st_touch_hardware_reset();
;;;2443 } ;;;2443 }
;;;2444 } ;;;2444 }
;;;2445 } ;;;2445 }
;;;2446 }
00001a bd70 POP {r4-r6,pc} 00001a bd70 POP {r4-r6,pc}
|L19.28| |L19.28|
00001c 4909 LDR r1,|L19.68| 00001c 4909 LDR r1,|L19.68|
@ -2320,10 +2311,10 @@
00002c a107 ADR r1,|L19.76| 00002c a107 ADR r1,|L19.76|
00002e a00b ADR r0,|L19.92| 00002e a00b ADR r0,|L19.92|
000030 f7fffffe BL LOG_printf 000030 f7fffffe BL LOG_printf
000034 6265 STR r5,[r4,#0x24] ;2441 ; s_heartbeat 000034 6265 STR r5,[r4,#0x24] ;2442 ; s_heartbeat
000036 f7fffffe BL ap_tp_st_touch_software_reset 000036 f7fffffe BL ap_tp_st_touch_hardware_reset
00003a bd70 POP {r4-r6,pc} 00003a bd70 POP {r4-r6,pc}
;;;2446 ;;;2447
ENDP ENDP
|L19.60| |L19.60|
@ -4790,7 +4781,7 @@
AREA ||.rev16_text||, CODE AREA ||.rev16_text||, CODE
THUMB THUMB
EXPORT |__asm___9_ap_demo_c_c64640cd____REV16| EXPORT |__asm___9_ap_demo_c_c64640cd____REV16|
#line 467 "C:\\Users\\ASUS\\AppData\\Local\\Arm\\Packs\\ARM\\CMSIS\\5.5.1\\CMSIS\\Core\\Include\\cmsis_armcc.h" #line 467 "C:\\Keil_v5\\ARM\\PACK\\ARM\\CMSIS\\5.5.1\\CMSIS\\Core\\Include\\cmsis_armcc.h"
|__asm___9_ap_demo_c_c64640cd____REV16| PROC |__asm___9_ap_demo_c_c64640cd____REV16| PROC
#line 468 #line 468

View File

@ -1,5 +1,5 @@
; generated by Component: ARM Compiler 5.06 update 6 (build 750) Tool: ArmCC [4d3637] ; generated by Component: ARM Compiler 5.06 update 6 (build 750) Tool: ArmCC [4d3637]
; commandline ArmCC [--c99 --list --split_sections --debug -c --asm --interleave --gnu -o.\objects\app_tp_st_touch.o --asm_dir=.\Listings\ --list_dir=.\Listings\ --depend=.\objects\app_tp_st_touch.d --cpu=Cortex-M0 --apcs=interwork --diag_suppress=9931 -I..\..\src -I..\..\src\board -I..\..\src\common -I..\..\src\sdk\include -I..\..\src\app\demo -I..\..\src\sdk\include\M0 -I..\..\src\app -I..\..\src\app\module_demo -I..\..\src\app\touch -I..\..\src\app\S8 -I..\..\src\app\S9 -I..\CVWL368 -I.\RTE\_ISP_368 -IC:\Users\ASUS\AppData\Local\Arm\Packs\ARM\CMSIS\5.5.1\CMSIS\Core\Include -IC:\Users\ASUS\AppData\Local\Arm\Packs\ARM\CMSIS\5.5.1\Device\ARM\ARMCM0\Include -D__MICROLIB -D__UVISION_VERSION=528 -D_RTE_ -DARMCM0 -DISP_368 --omf_browse=.\objects\app_tp_st_touch.crf ..\..\src\app\demo\app_tp_st_touch.c] ; commandline ArmCC [--c99 --list --split_sections --debug -c --asm --interleave --gnu -o.\objects\app_tp_st_touch.o --asm_dir=.\Listings\ --list_dir=.\Listings\ --depend=.\objects\app_tp_st_touch.d --cpu=Cortex-M0 --apcs=interwork --diag_suppress=9931 -I..\..\src -I..\..\src\board -I..\..\src\common -I..\..\src\sdk\include -I..\..\src\app\demo -I..\..\src\sdk\include\M0 -I..\..\src\app -I..\..\src\app\module_demo -I..\..\src\app\touch -I..\..\src\app\S8 -I..\..\src\app\S9 -I..\CVWL368 -I.\RTE\_ISP_368 -IC:\Keil_v5\ARM\PACK\ARM\CMSIS\5.5.1\CMSIS\Core\Include -IC:\Keil_v5\ARM\PACK\ARM\CMSIS\5.5.1\Device\ARM\ARMCM0\Include -D__MICROLIB -D__UVISION_VERSION=528 -D_RTE_ -DARMCM0 -DISP_368 --omf_browse=.\objects\app_tp_st_touch.crf ..\..\src\app\demo\app_tp_st_touch.c]
THUMB THUMB
AREA ||i.CRC16_2||, CODE, READONLY, ALIGN=2 AREA ||i.CRC16_2||, CODE, READONLY, ALIGN=2
@ -405,36 +405,32 @@
000000 b510 PUSH {r4,lr} 000000 b510 PUSH {r4,lr}
;;;543 { ;;;543 {
;;;544 // ÊÕµ½ TP Òì³£»Ø¸´ 0xF3 0x02 0x00 0x00 0x00 0x00 0x00 0x00 ;;;544 // ÊÕµ½ TP Òì³£»Ø¸´ 0xF3 0x02 0x00 0x00 0x00 0x00 0x00 0x00
;;;545 if(screendata[0] == 0xF3 && screendata[1] == 0x02 && screendata[2] == 0x00) ;;;545 // if(screendata[0] == 0xF3 && screendata[1] == 0x02 && screendata[2] == 0x00)
000002 7801 LDRB r1,[r0,#0] ;;;546 if(screendata[0] == 0xF3)
000004 29f3 CMP r1,#0xf3 000002 7800 LDRB r0,[r0,#0]
000006 d107 BNE |L5.24| 000004 28f3 CMP r0,#0xf3
000008 7841 LDRB r1,[r0,#1] 000006 d101 BNE |L5.12|
00000a 2902 CMP r1,#2 ;;;547 {
00000c d104 BNE |L5.24| ;;;548 // ap_tp_st_touch_software_reset();
00000e 7880 LDRB r0,[r0,#2] ;;;549 ap_tp_st_touch_hardware_reset();
000010 2800 CMP r0,#0 000008 f7fffffe BL ap_tp_st_touch_hardware_reset
000012 d101 BNE |L5.24| |L5.12|
;;;546 { ;;;550 }
;;;547 ap_tp_st_touch_software_reset(); ;;;551 }
000014 f7fffffe BL ap_tp_st_touch_software_reset 00000c bd10 POP {r4,pc}
|L5.24| ;;;552
;;;548 }
;;;549 }
000018 bd10 POP {r4,pc}
;;;550
ENDP ENDP
AREA ||i.ap_tp_st_touch_error_handler_FF||, CODE, READONLY, ALIGN=1 AREA ||i.ap_tp_st_touch_error_handler_FF||, CODE, READONLY, ALIGN=1
ap_tp_st_touch_error_handler_FF PROC ap_tp_st_touch_error_handler_FF PROC
;;;558 ;;;560
;;;559 void ap_tp_st_touch_error_handler_FF(uint8_t* screendata) ;;;561 void ap_tp_st_touch_error_handler_FF(uint8_t* screendata)
000000 b510 PUSH {r4,lr} 000000 b510 PUSH {r4,lr}
;;;560 { ;;;562 {
;;;561 // ÊÕµ½ TP Òì³£»Ø¸´ 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF ;;;563 // ÊÕµ½ TP Òì³£»Ø¸´ 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
;;;562 if(screendata[1] == 0xFF && screendata[2] == 0xFF&& screendata[3] == 0xFF&&screendata[4] == 0xFF) ;;;564 if(screendata[1] == 0xFF && screendata[2] == 0xFF&& screendata[3] == 0xFF&&screendata[4] == 0xFF)
000002 7841 LDRB r1,[r0,#1] 000002 7841 LDRB r1,[r0,#1]
000004 29ff CMP r1,#0xff 000004 29ff CMP r1,#0xff
000006 d10a BNE |L6.30| 000006 d10a BNE |L6.30|
@ -447,14 +443,15 @@
000014 7900 LDRB r0,[r0,#4] 000014 7900 LDRB r0,[r0,#4]
000016 28ff CMP r0,#0xff 000016 28ff CMP r0,#0xff
000018 d101 BNE |L6.30| 000018 d101 BNE |L6.30|
;;;563 { ;;;565 {
;;;564 ap_tp_st_touch_software_reset(); ;;;566 // ap_tp_st_touch_software_reset();
00001a f7fffffe BL ap_tp_st_touch_software_reset ;;;567 ap_tp_st_touch_hardware_reset();
00001a f7fffffe BL ap_tp_st_touch_hardware_reset
|L6.30| |L6.30|
;;;565 } ;;;568 }
;;;566 } ;;;569 }
00001e bd10 POP {r4,pc} 00001e bd10 POP {r4,pc}
;;;567 ;;;570
ENDP ENDP
@ -1259,7 +1256,7 @@
AREA ||.rev16_text||, CODE AREA ||.rev16_text||, CODE
THUMB THUMB
EXPORT |__asm___17_app_tp_st_touch_c_0c52f749____REV16| EXPORT |__asm___17_app_tp_st_touch_c_0c52f749____REV16|
#line 467 "C:\\Users\\ASUS\\AppData\\Local\\Arm\\Packs\\ARM\\CMSIS\\5.5.1\\CMSIS\\Core\\Include\\cmsis_armcc.h" #line 467 "C:\\Keil_v5\\ARM\\PACK\\ARM\\CMSIS\\5.5.1\\CMSIS\\Core\\Include\\cmsis_armcc.h"
|__asm___17_app_tp_st_touch_c_0c52f749____REV16| PROC |__asm___17_app_tp_st_touch_c_0c52f749____REV16| PROC
#line 468 #line 468

View File

@ -1,5 +1,5 @@
; generated by Component: ARM Compiler 5.06 update 6 (build 750) Tool: ArmCC [4d3637] ; generated by Component: ARM Compiler 5.06 update 6 (build 750) Tool: ArmCC [4d3637]
; commandline ArmCC [--c99 --list --split_sections --debug -c --asm --interleave --gnu -o.\objects\app_tp_transfer.o --asm_dir=.\Listings\ --list_dir=.\Listings\ --depend=.\objects\app_tp_transfer.d --cpu=Cortex-M0 --apcs=interwork --diag_suppress=9931 -I..\..\src -I..\..\src\board -I..\..\src\common -I..\..\src\sdk\include -I..\..\src\app\demo -I..\..\src\sdk\include\M0 -I..\..\src\app -I..\..\src\app\module_demo -I..\..\src\app\touch -I..\..\src\app\S8 -I..\..\src\app\S9 -I..\CVWL368 -I.\RTE\_ISP_368 -IC:\Users\ASUS\AppData\Local\Arm\Packs\ARM\CMSIS\5.5.1\CMSIS\Core\Include -IC:\Users\ASUS\AppData\Local\Arm\Packs\ARM\CMSIS\5.5.1\Device\ARM\ARMCM0\Include -D__MICROLIB -D__UVISION_VERSION=528 -D_RTE_ -DARMCM0 -DISP_368 --omf_browse=.\objects\app_tp_transfer.crf ..\..\src\app\demo\app_tp_transfer.c] ; commandline ArmCC [--c99 --list --split_sections --debug -c --asm --interleave --gnu -o.\objects\app_tp_transfer.o --asm_dir=.\Listings\ --list_dir=.\Listings\ --depend=.\objects\app_tp_transfer.d --cpu=Cortex-M0 --apcs=interwork --diag_suppress=9931 -I..\..\src -I..\..\src\board -I..\..\src\common -I..\..\src\sdk\include -I..\..\src\app\demo -I..\..\src\sdk\include\M0 -I..\..\src\app -I..\..\src\app\module_demo -I..\..\src\app\touch -I..\..\src\app\S8 -I..\..\src\app\S9 -I..\CVWL368 -I.\RTE\_ISP_368 -IC:\Keil_v5\ARM\PACK\ARM\CMSIS\5.5.1\CMSIS\Core\Include -IC:\Keil_v5\ARM\PACK\ARM\CMSIS\5.5.1\Device\ARM\ARMCM0\Include -D__MICROLIB -D__UVISION_VERSION=528 -D_RTE_ -DARMCM0 -DISP_368 --omf_browse=.\objects\app_tp_transfer.crf ..\..\src\app\demo\app_tp_transfer.c]
THUMB THUMB
AREA ||i.S20_Start_init||, CODE, READONLY, ALIGN=2 AREA ||i.S20_Start_init||, CODE, READONLY, ALIGN=2
@ -1276,7 +1276,7 @@
AREA ||.rev16_text||, CODE AREA ||.rev16_text||, CODE
THUMB THUMB
EXPORT |__asm___17_app_tp_transfer_c_e672c05a____REV16| EXPORT |__asm___17_app_tp_transfer_c_e672c05a____REV16|
#line 467 "C:\\Users\\ASUS\\AppData\\Local\\Arm\\Packs\\ARM\\CMSIS\\5.5.1\\CMSIS\\Core\\Include\\cmsis_armcc.h" #line 467 "C:\\Keil_v5\\ARM\\PACK\\ARM\\CMSIS\\5.5.1\\CMSIS\\Core\\Include\\cmsis_armcc.h"
|__asm___17_app_tp_transfer_c_e672c05a____REV16| PROC |__asm___17_app_tp_transfer_c_e672c05a____REV16| PROC
#line 468 #line 468

View File

@ -1,5 +1,5 @@
; generated by Component: ARM Compiler 5.06 update 6 (build 750) Tool: ArmCC [4d3637] ; generated by Component: ARM Compiler 5.06 update 6 (build 750) Tool: ArmCC [4d3637]
; commandline ArmCC [--c99 --list --split_sections --debug -c --asm --interleave --gnu -o.\objects\board.o --asm_dir=.\Listings\ --list_dir=.\Listings\ --depend=.\objects\board.d --cpu=Cortex-M0 --apcs=interwork --diag_suppress=9931 -I..\..\src -I..\..\src\board -I..\..\src\common -I..\..\src\sdk\include -I..\..\src\app\demo -I..\..\src\sdk\include\M0 -I..\..\src\app -I..\..\src\app\module_demo -I..\..\src\app\touch -I..\..\src\app\S8 -I..\..\src\app\S9 -I..\CVWL368 -I.\RTE\_ISP_368 -IC:\Users\ASUS\AppData\Local\Arm\Packs\ARM\CMSIS\5.5.1\CMSIS\Core\Include -IC:\Users\ASUS\AppData\Local\Arm\Packs\ARM\CMSIS\5.5.1\Device\ARM\ARMCM0\Include -D__MICROLIB -D__UVISION_VERSION=528 -D_RTE_ -DARMCM0 -DISP_368 --omf_browse=.\objects\board.crf ..\..\src\board\board.c] ; commandline ArmCC [--c99 --list --split_sections --debug -c --asm --interleave --gnu -o.\objects\board.o --asm_dir=.\Listings\ --list_dir=.\Listings\ --depend=.\objects\board.d --cpu=Cortex-M0 --apcs=interwork --diag_suppress=9931 -I..\..\src -I..\..\src\board -I..\..\src\common -I..\..\src\sdk\include -I..\..\src\app\demo -I..\..\src\sdk\include\M0 -I..\..\src\app -I..\..\src\app\module_demo -I..\..\src\app\touch -I..\..\src\app\S8 -I..\..\src\app\S9 -I..\CVWL368 -I.\RTE\_ISP_368 -IC:\Keil_v5\ARM\PACK\ARM\CMSIS\5.5.1\CMSIS\Core\Include -IC:\Keil_v5\ARM\PACK\ARM\CMSIS\5.5.1\Device\ARM\ARMCM0\Include -D__MICROLIB -D__UVISION_VERSION=528 -D_RTE_ -DARMCM0 -DISP_368 --omf_browse=.\objects\board.crf ..\..\src\board\board.c]
THUMB THUMB
AREA ||i.board_Init||, CODE, READONLY, ALIGN=2 AREA ||i.board_Init||, CODE, READONLY, ALIGN=2
@ -42,7 +42,7 @@
AREA ||.rev16_text||, CODE AREA ||.rev16_text||, CODE
THUMB THUMB
EXPORT |__asm___7_board_c_bcd01269____REV16| EXPORT |__asm___7_board_c_bcd01269____REV16|
#line 467 "C:\\Users\\ASUS\\AppData\\Local\\Arm\\Packs\\ARM\\CMSIS\\5.5.1\\CMSIS\\Core\\Include\\cmsis_armcc.h" #line 467 "C:\\Keil_v5\\ARM\\PACK\\ARM\\CMSIS\\5.5.1\\CMSIS\\Core\\Include\\cmsis_armcc.h"
|__asm___7_board_c_bcd01269____REV16| PROC |__asm___7_board_c_bcd01269____REV16| PROC
#line 468 #line 468

View File

@ -1,5 +1,5 @@
; generated by Component: ARM Compiler 5.06 update 6 (build 750) Tool: ArmCC [4d3637] ; generated by Component: ARM Compiler 5.06 update 6 (build 750) Tool: ArmCC [4d3637]
; commandline ArmCC [--c99 --list --split_sections --debug -c --asm --interleave --gnu -o.\objects\main.o --asm_dir=.\Listings\ --list_dir=.\Listings\ --depend=.\objects\main.d --cpu=Cortex-M0 --apcs=interwork --diag_suppress=9931 -I..\..\src -I..\..\src\board -I..\..\src\common -I..\..\src\sdk\include -I..\..\src\app\demo -I..\..\src\sdk\include\M0 -I..\..\src\app -I..\..\src\app\module_demo -I..\..\src\app\touch -I..\..\src\app\S8 -I..\..\src\app\S9 -I..\CVWL368 -I.\RTE\_ISP_368 -IC:\Users\ASUS\AppData\Local\Arm\Packs\ARM\CMSIS\5.5.1\CMSIS\Core\Include -IC:\Users\ASUS\AppData\Local\Arm\Packs\ARM\CMSIS\5.5.1\Device\ARM\ARMCM0\Include -D__MICROLIB -D__UVISION_VERSION=528 -D_RTE_ -DARMCM0 -DISP_368 --omf_browse=.\objects\main.crf ..\..\src\app\main.c] ; commandline ArmCC [--c99 --list --split_sections --debug -c --asm --interleave --gnu -o.\objects\main.o --asm_dir=.\Listings\ --list_dir=.\Listings\ --depend=.\objects\main.d --cpu=Cortex-M0 --apcs=interwork --diag_suppress=9931 -I..\..\src -I..\..\src\board -I..\..\src\common -I..\..\src\sdk\include -I..\..\src\app\demo -I..\..\src\sdk\include\M0 -I..\..\src\app -I..\..\src\app\module_demo -I..\..\src\app\touch -I..\..\src\app\S8 -I..\..\src\app\S9 -I..\CVWL368 -I.\RTE\_ISP_368 -IC:\Keil_v5\ARM\PACK\ARM\CMSIS\5.5.1\CMSIS\Core\Include -IC:\Keil_v5\ARM\PACK\ARM\CMSIS\5.5.1\Device\ARM\ARMCM0\Include -D__MICROLIB -D__UVISION_VERSION=528 -D_RTE_ -DARMCM0 -DISP_368 --omf_browse=.\objects\main.crf ..\..\src\app\main.c]
THUMB THUMB
AREA ||i.main||, CODE, READONLY, ALIGN=1 AREA ||i.main||, CODE, READONLY, ALIGN=1
@ -32,7 +32,7 @@
AREA ||.rev16_text||, CODE AREA ||.rev16_text||, CODE
THUMB THUMB
EXPORT |__asm___6_main_c_main____REV16| EXPORT |__asm___6_main_c_main____REV16|
#line 467 "C:\\Users\\ASUS\\AppData\\Local\\Arm\\Packs\\ARM\\CMSIS\\5.5.1\\CMSIS\\Core\\Include\\cmsis_armcc.h" #line 467 "C:\\Keil_v5\\ARM\\PACK\\ARM\\CMSIS\\5.5.1\\CMSIS\\Core\\Include\\cmsis_armcc.h"
|__asm___6_main_c_main____REV16| PROC |__asm___6_main_c_main____REV16| PROC
#line 468 #line 468

View File

@ -2438,7 +2438,8 @@ void tp_heartbeat_exec(void)
{ {
TAU_LOGD("hb..."); TAU_LOGD("hb...");
s_heartbeat = 0; s_heartbeat = 0;
ap_tp_st_touch_software_reset(); // ap_tp_st_touch_software_reset();
ap_tp_st_touch_hardware_reset();
} }
} }
} }
@ -2452,7 +2453,8 @@ void ap_demo(void)
hal_gpio_init_output(IO_PAD_PWMEN, IO_LVL_LOW); //AP_SWIRE hal_gpio_init_output(IO_PAD_PWMEN, IO_LVL_LOW); //AP_SWIRE
hal_gpio_init_output(IO_PAD_ADCIN, IO_LVL_LOW); //SWIRE hal_gpio_init_output(IO_PAD_ADCIN, IO_LVL_LOW); //SWIRE
TAU_LOGD("N10Lite CSOT667 [%s %s]", __DATE__, __TIME__); // TAU_LOGD("N10Lite CSOT667 [%s %s]", __DATE__, __TIME__);
TAU_LOGD("N10Lite V100 20230714");
/* mipi rx³õʼ»¯ */ /* mipi rx³õʼ»¯ */
open_mipi_rx(); open_mipi_rx();
delayMs(20); delayMs(20);

View File

@ -542,9 +542,11 @@ void ap_tp_st_touch_scan_point_record_event_exec(void)
void ap_tp_st_touch_error_handler_F3(uint8_t* screendata) void ap_tp_st_touch_error_handler_F3(uint8_t* screendata)
{ {
// 收到 TP 异常回复 0xF3 0x02 0x00 0x00 0x00 0x00 0x00 0x00 // 收到 TP 异常回复 0xF3 0x02 0x00 0x00 0x00 0x00 0x00 0x00
if(screendata[0] == 0xF3 && screendata[1] == 0x02 && screendata[2] == 0x00) // if(screendata[0] == 0xF3 && screendata[1] == 0x02 && screendata[2] == 0x00)
if(screendata[0] == 0xF3)
{ {
ap_tp_st_touch_software_reset(); // ap_tp_st_touch_software_reset();
ap_tp_st_touch_hardware_reset();
} }
} }
@ -561,7 +563,8 @@ void ap_tp_st_touch_error_handler_FF(uint8_t* screendata)
// 收到 TP 异常回复 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF // 收到 TP 异常回复 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
if(screendata[1] == 0xFF && screendata[2] == 0xFF&& screendata[3] == 0xFF&&screendata[4] == 0xFF) if(screendata[1] == 0xFF && screendata[2] == 0xFF&& screendata[3] == 0xFF&&screendata[4] == 0xFF)
{ {
ap_tp_st_touch_software_reset(); // ap_tp_st_touch_software_reset();
ap_tp_st_touch_hardware_reset();
} }
} }