From 049ab03be5ec9c6e2f849944d57af583c5c177b0 Mon Sep 17 00:00:00 2001
From: chen <15335560115@163.com>
Date: 星期二, 29 十月 2024 15:52:27 +0800
Subject: [PATCH] 安邦车载标签V1.5,版本,加入上电指示灯,500UA低功耗版本

---
 keil/Objects/uwb_simple_example.build_log.htm |  418 ++++++++++++++++++++++++++++++-----------------------------
 1 files changed, 215 insertions(+), 203 deletions(-)

diff --git a/keil/Objects/uwb_simple_example.build_log.htm b/keil/Objects/uwb_simple_example.build_log.htm
index b72b9aa..c0b1cdf 100644
--- a/keil/Objects/uwb_simple_example.build_log.htm
+++ b/keil/Objects/uwb_simple_example.build_log.htm
@@ -27,17 +27,17 @@
 <h2>Output:</h2>
 *** Using Compiler 'V6.14', folder: 'd:\Keil_v5\ARM\ARMCLANG\Bin'
 Rebuild target 'MK8000 Release'
-compiling cmp_svec.c...
-compiling startup_MK800X.c...
-compiling mk_dma.c...
-compiling mk_clock.c...
-compiling mk_io.c...
-compiling system_MK800X.c...
-compiling mk_reset.c...
-compiling mk_aes.c...
-compiling mk_dual_timer.c...
-compiling mk_gpio.c...
 compiling mk_calib.c...
+compiling cmp_svec.c...
+compiling system_MK800X.c...
+compiling mk_gpio.c...
+compiling mk_dual_timer.c...
+compiling mk_dma.c...
+compiling startup_MK800X.c...
+compiling mk_reset.c...
+compiling mk_io.c...
+compiling mk_misc.c...
+compiling mk_clock.c...
 include/drivers/mk_adc.c(411): warning: format specifies type 'int' but the argument has type 'void *' [-Wformat]
 LOG_INFO(TRACE_MODULE_APP, "Chip adc callback %d degree\r\n", data);
                                               ~~              ^~~~
@@ -49,11 +49,11 @@
                                                                         ~~~     ^~~~~~~~~~~
 1 warning generated.
 compiling mk_adc.c...
-compiling mk_sleep_timer.c...
-compiling mk_misc.c...
 compiling mk_power.c...
+compiling mk_aes.c...
 compiling mk_rtc.c...
 compiling mk_flash.c...
+compiling mk_sleep_timer.c...
 compiling mk_wdt.c...
 include/drivers/global_param.c(9): warning: no previous prototype for function 'parameter_check' [-Wmissing-prototypes]
 uint8_t parameter_check(void)
@@ -76,7 +76,101 @@
  ^
 5 warnings generated.
 compiling global_param.c...
-compiling mk_trace.c...
+include/drivers/Usart1.c(12): warning: no previous extern declaration for non-static variable 'm_EUART1_TxFrm_Tail' [-Wmissing-variable-declarations]
+volatile int8_t m_EUART1_TxFrm_Tail = 0;                                        //<CA><FD><BE>莘<A2><CB><CD>帧<B6><D3><C1><D0>尾指<D5><EB>
+                ^
+include/drivers/Usart1.c(12): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+volatile int8_t m_EUART1_TxFrm_Tail = 0;                                        //<CA><FD><BE>莘<A2><CB><CD>帧<B6><D3><C1><D0>尾指<D5><EB>
+         ^
+include/drivers/Usart1.c(13): warning: no previous extern declaration for non-static variable 'm_EUART1_TxFrm_Head' [-Wmissing-variable-declarations]
+volatile int8_t m_EUART1_TxFrm_Head = 0;                                        //<CA><FD><BE>莘<A2><CB><CD>帧<B6><D3><C1><D0>头指<D5><EB>
+                ^
+include/drivers/Usart1.c(13): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+volatile int8_t m_EUART1_TxFrm_Head = 0;                                        //<CA><FD><BE>莘<A2><CB><CD>帧<B6><D3><C1><D0>头指<D5><EB>
+         ^
+include/drivers/Usart1.c(14): warning: no previous extern declaration for non-static variable 'm_EUART1_TxFrm_FreeFrmLen' [-Wmissing-variable-declarations]
+volatile int8_t m_EUART1_TxFrm_FreeFrmLen = 0;                  //<CA><FD><BE>莘<A2><CB><CD>帧<B6><D3><C1><D0>剩<D3><E0>帧<CA><FD>
+                ^
+include/drivers/Usart1.c(14): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+volatile int8_t m_EUART1_TxFrm_FreeFrmLen = 0;                  //<CA><FD><BE>莘<A2><CB><CD>帧<B6><D3><C1><D0>剩<D3><E0>帧<CA><FD>
+         ^
+include/drivers/Usart1.c(17): warning: no previous extern declaration for non-static variable 'm_EUART1_DMA_RXPtr' [-Wmissing-variable-declarations]
+volatile int32_t m_EUART1_DMA_RXPtr = 0;                                        //<B5><B1>前<CA><FD><BE>莸<D8>址
+                 ^
+include/drivers/Usart1.c(17): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+volatile int32_t m_EUART1_DMA_RXPtr = 0;                                        //<B5><B1>前<CA><FD><BE>莸<D8>址
+         ^
+include/drivers/Usart1.c(21): warning: no previous extern declaration for non-static variable 'm_bEUART1PushingFrms' [-Wmissing-variable-declarations]
+volatile uint8_t m_bEUART1PushingFrms = 0;                              //<D5><FD><D4><DA><CD><F9><B7><A2><CB>投<D3><C1>写<E6><CA><FD><BE><DD>
+                 ^
+include/drivers/Usart1.c(21): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+volatile uint8_t m_bEUART1PushingFrms = 0;                              //<D5><FD><D4><DA><CD><F9><B7><A2><CB>投<D3><C1>写<E6><CA><FD><BE><DD>
+         ^
+include/drivers/Usart1.c(22): warning: no previous extern declaration for non-static variable 'm_bEUART1CheckingSend' [-Wmissing-variable-declarations]
+volatile uint8_t m_bEUART1CheckingSend = 0;                             //<D5><FD><D4><DA>确<C8><CF><CA><FD><BE>莘<A2><CB><CD>
+                 ^
+include/drivers/Usart1.c(22): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+volatile uint8_t m_bEUART1CheckingSend = 0;                             //<D5><FD><D4><DA>确<C8><CF><CA><FD><BE>莘<A2><CB><CD>
+         ^
+include/drivers/Usart1.c(23): warning: no previous extern declaration for non-static variable 'm_bEUART1CheckingRec' [-Wmissing-variable-declarations]
+volatile uint8_t m_bEUART1CheckingRec = 0;                              //<D5><FD><D4><DA>确<C8>辖<D3><CA><D5><CA><FD><BE><DD>
+                 ^
+include/drivers/Usart1.c(23): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+volatile uint8_t m_bEUART1CheckingRec = 0;                              //<D5><FD><D4><DA>确<C8>辖<D3><CA><D5><CA><FD><BE><DD>
+         ^
+include/drivers/Usart1.c(24): warning: no previous extern declaration for non-static variable 'm_bEUART1TxEn' [-Wmissing-variable-declarations]
+volatile uint8_t m_bEUART1TxEn = 0;                                             //使<C4>芊<A2><CB><CD>
+                 ^
+include/drivers/Usart1.c(24): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+volatile uint8_t m_bEUART1TxEn = 0;                                             //使<C4>芊<A2><CB><CD>
+         ^
+include/drivers/Usart1.c(27): warning: no previous prototype for function 'Usart2InitVariables' [-Wmissing-prototypes]
+void Usart2InitVariables(void)
+     ^
+include/drivers/Usart1.c(27): note: declare 'static' if the function is not intended to be used outside of this translation unit
+void Usart2InitVariables(void)
+^
+static 
+include/drivers/Usart1.c(43): warning: no previous prototype for function 'UART1_CheckReceive' [-Wmissing-prototypes]
+void UART1_CheckReceive(void)
+     ^
+include/drivers/Usart1.c(43): note: declare 'static' if the function is not intended to be used outside of this translation unit
+void UART1_CheckReceive(void)
+^
+static 
+include/drivers/Usart1.c(62): warning: code will never be executed [-Wunreachable-code]
+        while( m_EUART1_DMA_RXPtr != DMACnt2 && MaxDataLen2 > 0)
+               ^~~~~~~~~~~~~~~~~~
+include/drivers/Usart1.c(120): warning: implicit declaration of function 'delay_us' is invalid in C99 [-Wimplicit-function-declaration]
+                delay_us(10);
+                ^
+include/drivers/Usart1.c(96): warning: code will never be executed [-Wunreachable-code]
+        if(m_EUART1_TxFrm_Head == m_EUART1_TxFrm_Tail)                                  //<B6><D3><C1><D0>为<BF><D5>
+           ^~~~~~~~~~~~~~~~~~~
+include/drivers/Usart1.c(203): warning: implicit conversion changes signedness: 'int32_t' (aka 'int') to 'unsigned int' [-Wsign-conversion]
+        memcpy((uint8_t*)m_EUART1_TxFrames[m_EUART1_TxFrm_Head].buf, (uint8_t*)pdata, data_len);
+        ~~~~~~                                                                        ^~~~~~~~
+include/drivers/Usart1.c(251): warning: no previous prototype for function 'Uart1_SendByte' [-Wmissing-prototypes]
+void Uart1_SendByte(  uint8_t ch )
+     ^
+include/drivers/Usart1.c(251): note: declare 'static' if the function is not intended to be used outside of this translation unit
+void Uart1_SendByte(  uint8_t ch )
+^
+static 
+include/drivers/Usart1.c(11): warning: no previous extern declaration for non-static variable 'm_EUART1_TxFrames' [-Wmissing-variable-declarations]
+EUART1_Frame m_EUART1_TxFrames[EUART1_TX_FRM_SIZE];     //<CA><FD><BE>莘<A2><CB><CD>帧<B6><D3><C1><D0>        
+             ^
+include/drivers/Usart1.c(11): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+EUART1_Frame m_EUART1_TxFrames[EUART1_TX_FRM_SIZE];     //<CA><FD><BE>莘<A2><CB><CD>帧<B6><D3><C1><D0>        
+^
+include/drivers/Usart1.c(38): warning: no previous extern declaration for non-static variable 't1' [-Wmissing-variable-declarations]
+uint16_t t1;
+         ^
+include/drivers/Usart1.c(38): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint16_t t1;
+^
+17 warnings generated.
+compiling Usart1.c...
 include/drivers/Usart.c(10): warning: no previous extern declaration for non-static variable 'm_EUART_TxFrm_Tail' [-Wmissing-variable-declarations]
 volatile int8_t m_EUART_TxFrm_Tail = 0;                                 //<CA><FD><BE>莘<A2><CB><CD>帧<B6><D3><C1><D0>尾指<D5><EB>
                 ^
@@ -181,74 +275,6 @@
 ^
 19 warnings generated.
 compiling Usart.c...
-compiling mk_uart.c...
-compiling mk_uwb.c...
-dw_app.c(1): warning: In file included from...
-./dw_app.h(45): warning: no newline at end of file [-Wnewline-eof]
-#endif
-      ^
-dw_app.c(52): warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion]
-            clockOffsetRatio = anc_clockoffset[i] * (FREQ_OFFSET_MULTIPLIER * HERTZ_TO_PPM_MULTIPLIER_CHAN_5 / 1.0e6) ;//MK8000<D0><U+07B8><C4>
-                             ~ ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-dw_app.c(60): warning: implicit conversion turns floating-point number into integer: 'double' to 'int32_t' (aka 'int') [-Wfloat-conversion]
-            nearbase_distlist[i]  = distance+anc_distoffset[i];
-                                  ~ ~~~~~~~~^~~~~~~~~~~~~~~~~~
-dw_app.c(132): warning: implicit conversion turns floating-point number into integer: 'double' to 'int32_t' (aka 'int') [-Wfloat-conversion]
-            nearbase_distlist[i]  = distance+(int16_t)g_com_map[OFFSET_AS_URT_TAG];//offset未<BC><D3>
-                                  ~ ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-dw_app.c(140): warning: no newline at end of file [-Wnewline-eof]
-//#endif
-        ^
-dw_app.c(11): warning: no previous extern declaration for non-static variable 'tof' [-Wmissing-variable-declarations]
-double tof,distance;
-       ^
-dw_app.c(11): note: declare 'static' if the variable is not intended to be used outside of this translation unit
-double tof,distance;
-^
-dw_app.c(11): warning: no previous extern declaration for non-static variable 'distance' [-Wmissing-variable-declarations]
-double tof,distance;
-           ^
-dw_app.c(11): note: declare 'static' if the variable is not intended to be used outside of this translation unit
-double tof,distance;
-^
-dw_app.c(26): warning: no previous extern declaration for non-static variable 'temp_freq_offset' [-Wmissing-variable-declarations]
-int32_t temp_freq_offset;
-        ^
-dw_app.c(26): note: declare 'static' if the variable is not intended to be used outside of this translation unit
-int32_t temp_freq_offset;
-^
-dw_app.c(27): warning: no previous extern declaration for non-static variable 'tround_temp' [-Wmissing-variable-declarations]
-int64_t tround_temp,treply_temp;
-        ^
-dw_app.c(27): note: declare 'static' if the variable is not intended to be used outside of this translation unit
-int64_t tround_temp,treply_temp;
-^
-dw_app.c(27): warning: no previous extern declaration for non-static variable 'treply_temp' [-Wmissing-variable-declarations]
-int64_t tround_temp,treply_temp;
-                    ^
-dw_app.c(27): note: declare 'static' if the variable is not intended to be used outside of this translation unit
-int64_t tround_temp,treply_temp;
-^
-dw_app.c(28): warning: no previous extern declaration for non-static variable 'tof_i' [-Wmissing-variable-declarations]
-int32_t tof_i;
-        ^
-dw_app.c(28): note: declare 'static' if the variable is not intended to be used outside of this translation unit
-int32_t tof_i;
-^
-dw_app.c(29): warning: no previous extern declaration for non-static variable 'tof_i_ui' [-Wmissing-variable-declarations]
-uint32_t tof_i_ui;
-         ^
-dw_app.c(29): note: declare 'static' if the variable is not intended to be used outside of this translation unit
-uint32_t tof_i_ui;
-^
-dw_app.c(30): warning: no previous extern declaration for non-static variable 'tof_f' [-Wmissing-variable-declarations]
-double tof_f;
-       ^
-dw_app.c(30): note: declare 'static' if the variable is not intended to be used outside of this translation unit
-double tof_f;
-^
-13 warnings generated.
-compiling dw_app.c...
 include/drivers/serial_at_cmd_app.c(43): warning: no previous extern declaration for non-static variable 'j_ct' [-Wmissing-variable-declarations]
 uint8_t j_ct=0,CT_satrt_temp=0,CT_satrt=0,numb_base=0   ;
         ^
@@ -413,106 +439,78 @@
 ^
 31 warnings generated.
 compiling serial_at_cmd_app.c...
-include/drivers/Usart1.c(12): warning: no previous extern declaration for non-static variable 'm_EUART1_TxFrm_Tail' [-Wmissing-variable-declarations]
-volatile int8_t m_EUART1_TxFrm_Tail = 0;                                        //<CA><FD><BE>莘<A2><CB><CD>帧<B6><D3><C1><D0>尾指<D5><EB>
-                ^
-include/drivers/Usart1.c(12): note: declare 'static' if the variable is not intended to be used outside of this translation unit
-volatile int8_t m_EUART1_TxFrm_Tail = 0;                                        //<CA><FD><BE>莘<A2><CB><CD>帧<B6><D3><C1><D0>尾指<D5><EB>
-         ^
-include/drivers/Usart1.c(13): warning: no previous extern declaration for non-static variable 'm_EUART1_TxFrm_Head' [-Wmissing-variable-declarations]
-volatile int8_t m_EUART1_TxFrm_Head = 0;                                        //<CA><FD><BE>莘<A2><CB><CD>帧<B6><D3><C1><D0>头指<D5><EB>
-                ^
-include/drivers/Usart1.c(13): note: declare 'static' if the variable is not intended to be used outside of this translation unit
-volatile int8_t m_EUART1_TxFrm_Head = 0;                                        //<CA><FD><BE>莘<A2><CB><CD>帧<B6><D3><C1><D0>头指<D5><EB>
-         ^
-include/drivers/Usart1.c(14): warning: no previous extern declaration for non-static variable 'm_EUART1_TxFrm_FreeFrmLen' [-Wmissing-variable-declarations]
-volatile int8_t m_EUART1_TxFrm_FreeFrmLen = 0;                  //<CA><FD><BE>莘<A2><CB><CD>帧<B6><D3><C1><D0>剩<D3><E0>帧<CA><FD>
-                ^
-include/drivers/Usart1.c(14): note: declare 'static' if the variable is not intended to be used outside of this translation unit
-volatile int8_t m_EUART1_TxFrm_FreeFrmLen = 0;                  //<CA><FD><BE>莘<A2><CB><CD>帧<B6><D3><C1><D0>剩<D3><E0>帧<CA><FD>
-         ^
-include/drivers/Usart1.c(17): warning: no previous extern declaration for non-static variable 'm_EUART1_DMA_RXPtr' [-Wmissing-variable-declarations]
-volatile int32_t m_EUART1_DMA_RXPtr = 0;                                        //<B5><B1>前<CA><FD><BE>莸<D8>址
-                 ^
-include/drivers/Usart1.c(17): note: declare 'static' if the variable is not intended to be used outside of this translation unit
-volatile int32_t m_EUART1_DMA_RXPtr = 0;                                        //<B5><B1>前<CA><FD><BE>莸<D8>址
-         ^
-include/drivers/Usart1.c(21): warning: no previous extern declaration for non-static variable 'm_bEUART1PushingFrms' [-Wmissing-variable-declarations]
-volatile uint8_t m_bEUART1PushingFrms = 0;                              //<D5><FD><D4><DA><CD><F9><B7><A2><CB>投<D3><C1>写<E6><CA><FD><BE><DD>
-                 ^
-include/drivers/Usart1.c(21): note: declare 'static' if the variable is not intended to be used outside of this translation unit
-volatile uint8_t m_bEUART1PushingFrms = 0;                              //<D5><FD><D4><DA><CD><F9><B7><A2><CB>投<D3><C1>写<E6><CA><FD><BE><DD>
-         ^
-include/drivers/Usart1.c(22): warning: no previous extern declaration for non-static variable 'm_bEUART1CheckingSend' [-Wmissing-variable-declarations]
-volatile uint8_t m_bEUART1CheckingSend = 0;                             //<D5><FD><D4><DA>确<C8><CF><CA><FD><BE>莘<A2><CB><CD>
-                 ^
-include/drivers/Usart1.c(22): note: declare 'static' if the variable is not intended to be used outside of this translation unit
-volatile uint8_t m_bEUART1CheckingSend = 0;                             //<D5><FD><D4><DA>确<C8><CF><CA><FD><BE>莘<A2><CB><CD>
-         ^
-include/drivers/Usart1.c(23): warning: no previous extern declaration for non-static variable 'm_bEUART1CheckingRec' [-Wmissing-variable-declarations]
-volatile uint8_t m_bEUART1CheckingRec = 0;                              //<D5><FD><D4><DA>确<C8>辖<D3><CA><D5><CA><FD><BE><DD>
-                 ^
-include/drivers/Usart1.c(23): note: declare 'static' if the variable is not intended to be used outside of this translation unit
-volatile uint8_t m_bEUART1CheckingRec = 0;                              //<D5><FD><D4><DA>确<C8>辖<D3><CA><D5><CA><FD><BE><DD>
-         ^
-include/drivers/Usart1.c(24): warning: no previous extern declaration for non-static variable 'm_bEUART1TxEn' [-Wmissing-variable-declarations]
-volatile uint8_t m_bEUART1TxEn = 0;                                             //使<C4>芊<A2><CB><CD>
-                 ^
-include/drivers/Usart1.c(24): note: declare 'static' if the variable is not intended to be used outside of this translation unit
-volatile uint8_t m_bEUART1TxEn = 0;                                             //使<C4>芊<A2><CB><CD>
-         ^
-include/drivers/Usart1.c(27): warning: no previous prototype for function 'Usart2InitVariables' [-Wmissing-prototypes]
-void Usart2InitVariables(void)
-     ^
-include/drivers/Usart1.c(27): note: declare 'static' if the function is not intended to be used outside of this translation unit
-void Usart2InitVariables(void)
+dw_app.c(1): warning: In file included from...
+./dw_app.h(45): warning: no newline at end of file [-Wnewline-eof]
+#endif
+      ^
+dw_app.c(52): warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion]
+            clockOffsetRatio = anc_clockoffset[i] * (FREQ_OFFSET_MULTIPLIER * HERTZ_TO_PPM_MULTIPLIER_CHAN_5 / 1.0e6) ;//MK8000<D0><U+07B8><C4>
+                             ~ ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+dw_app.c(60): warning: implicit conversion turns floating-point number into integer: 'double' to 'int32_t' (aka 'int') [-Wfloat-conversion]
+            nearbase_distlist[i]  = distance+anc_distoffset[i];
+                                  ~ ~~~~~~~~^~~~~~~~~~~~~~~~~~
+dw_app.c(131): warning: implicit conversion turns floating-point number into integer: 'double' to 'int32_t' (aka 'int') [-Wfloat-conversion]
+            nearbase_distlist[i]  = distance+(int16_t)g_com_map[OFFSET_AS_URT_TAG];//offset未<BC><D3>
+                                  ~ ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+dw_app.c(141): warning: no newline at end of file [-Wnewline-eof]
+//#endif
+        ^
+dw_app.c(11): warning: no previous extern declaration for non-static variable 'tof' [-Wmissing-variable-declarations]
+double tof,distance;
+       ^
+dw_app.c(11): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+double tof,distance;
 ^
-static 
-include/drivers/Usart1.c(43): warning: no previous prototype for function 'UART1_CheckReceive' [-Wmissing-prototypes]
-void UART1_CheckReceive(void)
-     ^
-include/drivers/Usart1.c(43): note: declare 'static' if the function is not intended to be used outside of this translation unit
-void UART1_CheckReceive(void)
+dw_app.c(11): warning: no previous extern declaration for non-static variable 'distance' [-Wmissing-variable-declarations]
+double tof,distance;
+           ^
+dw_app.c(11): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+double tof,distance;
 ^
-static 
-include/drivers/Usart1.c(62): warning: code will never be executed [-Wunreachable-code]
-        while( m_EUART1_DMA_RXPtr != DMACnt2 && MaxDataLen2 > 0)
-               ^~~~~~~~~~~~~~~~~~
-include/drivers/Usart1.c(120): warning: implicit declaration of function 'delay_us' is invalid in C99 [-Wimplicit-function-declaration]
-                delay_us(10);
-                ^
-include/drivers/Usart1.c(96): warning: code will never be executed [-Wunreachable-code]
-        if(m_EUART1_TxFrm_Head == m_EUART1_TxFrm_Tail)                                  //<B6><D3><C1><D0>为<BF><D5>
-           ^~~~~~~~~~~~~~~~~~~
-include/drivers/Usart1.c(203): warning: implicit conversion changes signedness: 'int32_t' (aka 'int') to 'unsigned int' [-Wsign-conversion]
-        memcpy((uint8_t*)m_EUART1_TxFrames[m_EUART1_TxFrm_Head].buf, (uint8_t*)pdata, data_len);
-        ~~~~~~                                                                        ^~~~~~~~
-include/drivers/Usart1.c(251): warning: no previous prototype for function 'Uart1_SendByte' [-Wmissing-prototypes]
-void Uart1_SendByte(  uint8_t ch )
-     ^
-include/drivers/Usart1.c(251): note: declare 'static' if the function is not intended to be used outside of this translation unit
-void Uart1_SendByte(  uint8_t ch )
+dw_app.c(26): warning: no previous extern declaration for non-static variable 'temp_freq_offset' [-Wmissing-variable-declarations]
+int32_t temp_freq_offset;
+        ^
+dw_app.c(26): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+int32_t temp_freq_offset;
 ^
-static 
-include/drivers/Usart1.c(11): warning: no previous extern declaration for non-static variable 'm_EUART1_TxFrames' [-Wmissing-variable-declarations]
-EUART1_Frame m_EUART1_TxFrames[EUART1_TX_FRM_SIZE];     //<CA><FD><BE>莘<A2><CB><CD>帧<B6><D3><C1><D0>        
-             ^
-include/drivers/Usart1.c(11): note: declare 'static' if the variable is not intended to be used outside of this translation unit
-EUART1_Frame m_EUART1_TxFrames[EUART1_TX_FRM_SIZE];     //<CA><FD><BE>莘<A2><CB><CD>帧<B6><D3><C1><D0>        
+dw_app.c(27): warning: no previous extern declaration for non-static variable 'tround_temp' [-Wmissing-variable-declarations]
+int64_t tround_temp,treply_temp;
+        ^
+dw_app.c(27): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+int64_t tround_temp,treply_temp;
 ^
-include/drivers/Usart1.c(38): warning: no previous extern declaration for non-static variable 't1' [-Wmissing-variable-declarations]
-uint16_t t1;
+dw_app.c(27): warning: no previous extern declaration for non-static variable 'treply_temp' [-Wmissing-variable-declarations]
+int64_t tround_temp,treply_temp;
+                    ^
+dw_app.c(27): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+int64_t tround_temp,treply_temp;
+^
+dw_app.c(28): warning: no previous extern declaration for non-static variable 'tof_i' [-Wmissing-variable-declarations]
+int32_t tof_i;
+        ^
+dw_app.c(28): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+int32_t tof_i;
+^
+dw_app.c(29): warning: no previous extern declaration for non-static variable 'tof_i_ui' [-Wmissing-variable-declarations]
+uint32_t tof_i_ui;
          ^
-include/drivers/Usart1.c(38): note: declare 'static' if the variable is not intended to be used outside of this translation unit
-uint16_t t1;
+dw_app.c(29): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint32_t tof_i_ui;
 ^
-17 warnings generated.
-compiling Usart1.c...
+dw_app.c(30): warning: no previous extern declaration for non-static variable 'tof_f' [-Wmissing-variable-declarations]
+double tof_f;
+       ^
+dw_app.c(30): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+double tof_f;
+^
+13 warnings generated.
+compiling dw_app.c...
+compiling mk_uwb.c...
+compiling mk_uart.c...
 compiling board.c...
-compiling wsf_assert.c...
+compiling mk_trace.c...
 compiling pin_config.c...
-compiling wsf_heap.c...
-compiling wsf_bufio.c...
+compiling wsf_assert.c...
 compiling wsf_buf.c...
 include/main/main.c(57): warning: no previous extern declaration for non-static variable 'trx_buf' [-Wmissing-variable-declarations]
 uint8_t trx_buf[10] = {0};
@@ -615,15 +613,17 @@
             ^
 20 warnings generated.
 compiling main.c...
+compiling wsf_heap.c...
+compiling wsf_bufio.c...
 compiling wsf_msg.c...
 compiling wsf_nvm.c...
-compiling wsf_queue.c...
 compiling wsf_os.c...
-compiling wsf_timer.c...
-compiling wsf_trace.c...
+compiling wsf_queue.c...
 compiling pal_flash.c...
-compiling crc.c...
+compiling wsf_trace.c...
 compiling pal_sys.c...
+compiling crc.c...
+compiling wsf_timer.c...
 compiling pal_uart.c...
 uwb_tag_.c(8): warning: In file included from...
 ./dw_app.h(45): warning: no newline at end of file [-Wnewline-eof]
@@ -687,66 +687,72 @@
 void uwb_poll_buffer_construct(void)
 ^
 static 
-uwb_tag_.c(293): warning: no previous prototype for function 'FindNearBasePos' [-Wmissing-prototypes]
+uwb_tag_.c(294): warning: no previous prototype for function 'FindNearBasePos' [-Wmissing-prototypes]
 uint8_t FindNearBasePos(uint16_t baseid)//寻<D5>业<B1>前<C1>斜<ED><D6>械幕<F9>站<B7><B5><BB><D8><CB><F7><D2><FD>
         ^
-uwb_tag_.c(293): note: declare 'static' if the function is not intended to be used outside of this translation unit
+uwb_tag_.c(294): note: declare 'static' if the function is not intended to be used outside of this translation unit
 uint8_t FindNearBasePos(uint16_t baseid)//寻<D5>业<B1>前<C1>斜<ED><D6>械幕<F9>站<B7><B5><BB><D8><CB><F7><D2><FD>
 ^
 static 
-uwb_tag_.c(303): warning: non-void function does not return a value in all control paths [-Wreturn-type]
+uwb_tag_.c(304): warning: non-void function does not return a value in all control paths [-Wreturn-type]
 }
 ^
-uwb_tag_.c(334): warning: implicit conversion changes signedness: 'int32_t' (aka 'int') to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
+uwb_tag_.c(335): warning: implicit conversion changes signedness: 'int32_t' (aka 'int') to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
                                                 temp_dist=true_nearbase_distlist[j];
                                                          ~^~~~~~~~~~~~~~~~~~~~~~~~~
-uwb_tag_.c(336): warning: implicit conversion changes signedness: 'int32_t' (aka 'int') to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
+uwb_tag_.c(337): warning: implicit conversion changes signedness: 'int32_t' (aka 'int') to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
                                                 temp_exsis=true_exsistbase_list[j];
                                                           ~^~~~~~~~~~~~~~~~~~~~~~~
-uwb_tag_.c(341): warning: implicit conversion changes signedness: 'uint32_t' (aka 'unsigned int') to 'int32_t' (aka 'int') [-Wsign-conversion]
+uwb_tag_.c(342): warning: implicit conversion changes signedness: 'uint32_t' (aka 'unsigned int') to 'int32_t' (aka 'int') [-Wsign-conversion]
                                                 true_nearbase_distlist[j+1]=temp_dist;
                                                                            ~^~~~~~~~~
-uwb_tag_.c(342): warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]
+uwb_tag_.c(343): warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]
                                                 true_nearbase_idlist[j+1]=temp_id;
                                                                          ~^~~~~~~
-uwb_tag_.c(343): warning: implicit conversion changes signedness: 'uint32_t' (aka 'unsigned int') to 'int32_t' (aka 'int') [-Wsign-conversion]
+uwb_tag_.c(344): warning: implicit conversion changes signedness: 'uint32_t' (aka 'unsigned int') to 'int32_t' (aka 'int') [-Wsign-conversion]
                                                 true_exsistbase_list[j+1]=temp_exsis;
                                                                          ~^~~~~~~~~~
-uwb_tag_.c(351): warning: implicit conversion loses integer precision: 'int32_t' (aka 'int') to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion]
+uwb_tag_.c(352): warning: implicit conversion loses integer precision: 'int32_t' (aka 'int') to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion]
                                 exsistbase_list[i] = true_exsistbase_list[i];
                                                    ~ ^~~~~~~~~~~~~~~~~~~~~~~
-uwb_tag_.c(365): warning: variable 'temp' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
+uwb_tag_.c(366): warning: variable 'temp' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
     if(taglist_total_num<MAX_TAG_LIST_NUM)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-uwb_tag_.c(367): note: uninitialized use occurs here
+uwb_tag_.c(368): note: uninitialized use occurs here
         return temp;
                ^~~~
-uwb_tag_.c(365): note: remove the 'if' if its condition is always true
+uwb_tag_.c(366): note: remove the 'if' if its condition is always true
     if(taglist_total_num<MAX_TAG_LIST_NUM)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-uwb_tag_.c(356): note: initialize the variable 'temp' to silence this warning
+uwb_tag_.c(357): note: initialize the variable 'temp' to silence this warning
     uint16_t temp;
                  ^
                   = 0
-uwb_tag_.c(405): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
+uwb_tag_.c(371): warning: no previous extern declaration for non-static variable 'tt' [-Wmissing-variable-declarations]
+int tt=1;
+    ^
+uwb_tag_.c(371): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+int tt=1;
+^
+uwb_tag_.c(407): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
                 tempflag=uwb_tx(uwb_sendbuffer,13+4*nearbase_num,1,poll_tx_en_start_u32);//<C1><A2><BC><B4><B7><A2><CB><CD>
                         ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-uwb_tag_.c(417): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
+uwb_tag_.c(421): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
         tempflag=uwb_rx(0,0, RESP_RX_TIMEOUT_US);
                 ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-uwb_tag_.c(442): warning: implicit conversion loses integer precision: 'uint16_t' (aka 'unsigned short') to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion]
+uwb_tag_.c(443): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
+        tempflag=uwb_rx(0, 0, RESP_RX_TIMEOUT_US);//<C1><A2><BC><B4><BF><AA><C6><F4><BD><D3><CA>懿<A2><C9><E8><D6><C3>0<B3><AC>时
+                ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+uwb_tag_.c(449): warning: implicit conversion loses integer precision: 'uint16_t' (aka 'unsigned short') to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion]
                                                                         SetANCTimestap(rec_nearbasepos,&rx_buf[RESP_MSG_POLL_RX_TS_IDX],&rx_buf[RESP_MSG_RESP_TX_TS_IDX],(uint32_t)resp_rx_ts_i64,&rx_buf[RESP_MSG_ANC_DISTOFFSET],test2,(uint32_t)poll_tx_ts_i64);
                                                                         ~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
-uwb_tag_.c(458): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
-                                                        tempflag=uwb_rx(0, 0, RESP_RX_TIMEOUT_US);//<C1><A2><BC><B4><BF><AA><C6><F4><BD><D3><CA>懿<A2><C9><E8><D6><C3>0<B3><AC>时
-                                                                ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-uwb_tag_.c(464): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
+uwb_tag_.c(471): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
                 tempflag=uwb_rx(0, 0, RESP_RX_TIMEOUT_US);//<C1><A2><BC><B4><BF><AA><C6><F4><BD><D3><CA>懿<A2><C9><E8><D6><C3>0<B3><AC>时
                         ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-uwb_tag_.c(480): warning: no newline at end of file [-Wnewline-eof]
+uwb_tag_.c(492): warning: no newline at end of file [-Wnewline-eof]
 #endif
       ^
-uwb_tag_.c(479): warning: non-void function does not return a value [-Wreturn-type]
+uwb_tag_.c(491): warning: non-void function does not return a value [-Wreturn-type]
 }
 ^
 uwb_tag_.c(48): warning: no previous extern declaration for non-static variable 'dev_id' [-Wmissing-variable-declarations]
@@ -977,6 +983,12 @@
 uwb_tag_.c(144): note: declare 'static' if the variable is not intended to be used outside of this translation unit
 uint32_t count1,count2;
 ^
+uwb_tag_.c(370): warning: no previous extern declaration for non-static variable 'count_index' [-Wmissing-variable-declarations]
+uint32_t count_index;
+         ^
+uwb_tag_.c(370): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint32_t count_index;
+^
 uwb_tag_.c(100): warning: unused variable 'tx_poll_msg' [-Wunused-variable]
 static uint8_t tx_poll_msg[] = {0x41, 0x88, 0, 0x4D, 0x4B, 0x53, 0x45, 0x4D, 0x49, 0x02};
                ^
@@ -1001,16 +1013,16 @@
 uwb_tag_.c(169): warning: unused variable 'state' [-Wunused-variable]
 static enum SIMPLE_FSM_T state = SIMPLE_IDLE;
                          ^
-73 warnings generated.
+75 warnings generated.
 compiling uwb_tag_.c...
 compiling libc.c...
 linking...
 .\include\devices\MK800X\Source\ARM\MK800X_ac6_copy.sct(25): warning: L6314W: No section matches pattern *(.XIP_SECTION).
-Program Size: Code=47072 RO-data=7260 RW-data=1272 ZI-data=25020  
+Program Size: Code=48824 RO-data=7260 RW-data=1272 ZI-data=25020  
 Finished: 0 information, 1 warning and 0 error messages.
 FromELF: creating hex file...
 After Build - User command #1: fromelf.exe --bincombined -o "Output\uwb_simple_example.bin" "D:\project chen\ChinaUWBProject_tag_URT\keil\Objects\uwb_simple_example.axf"
-".\Objects\uwb_simple_example.axf" - 0 Error(s), 180 Warning(s).
+".\Objects\uwb_simple_example.axf" - 0 Error(s), 182 Warning(s).
 
 <h2>Software Packages used:</h2>
 
@@ -1024,7 +1036,7 @@
   d:\Users\xookk\AppData\Local\Arm\Packs\MKSEMI\MK800X_DFP\1.0.3\Device\Include
 
 <h2>Collection of Component Files used:</h2>
-Build Time Elapsed:  00:00:07
+Build Time Elapsed:  00:00:10
 </pre>
 </body>
 </html>

--
Gitblit v1.9.3