From 23480ab197150979f4505501a1abe8a64796fb18 Mon Sep 17 00:00:00 2001
From: chen <15335560115@163.com>
Date: 星期五, 04 七月 2025 18:37:07 +0800
Subject: [PATCH] 初步调好发包,解决因为uwb未open导致txlen不断溢出重启问题,两边sts配置初步调好

---
 keil/Objects/uwb_simple_example.build_log.htm |  754 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 749 insertions(+), 5 deletions(-)

diff --git a/keil/Objects/uwb_simple_example.build_log.htm b/keil/Objects/uwb_simple_example.build_log.htm
index b59b517..43ed796 100644
--- a/keil/Objects/uwb_simple_example.build_log.htm
+++ b/keil/Objects/uwb_simple_example.build_log.htm
@@ -21,14 +21,758 @@
 Dialog DLL:      TARMCM1.DLL V1.14.2.0
  
 <h2>Project:</h2>
-D:\project chen\uwb_MK8000_example_ss_twr_qiang_Tag_gai_URT\keil\uwb_simple_example.uvprojx
-Project File Date:  09/13/2024
+D:\project_chen\ChinaUWBProject_URT no UWB\ChinaUWBProject\keil\uwb_simple_example.uvprojx
+Project File Date:  07/04/2025
 
 <h2>Output:</h2>
 *** Using Compiler 'V6.14', folder: 'd:\Keil_v5\ARM\ARMCLANG\Bin'
 Build target 'MK8000 Release'
-After Build - User command #1: fromelf.exe --bincombined -o "Output\uwb_simple_example.bin" "D:\project chen\uwb_MK8000_example_ss_twr_qiang_Tag_gai_URT\keil\Objects\uwb_simple_example.axf"
-".\Objects\uwb_simple_example.axf" - 0 Error(s), 0 Warning(s).
+uwb_tag_.c(9): warning: In file included from...
+./dw_app.h(132): warning: no newline at end of file [-Wnewline-eof]
+#endif
+      ^
+uwb_tag_.c(104): warning: no previous extern declaration for non-static variable 'config' [-Wmissing-variable-declarations]
+ struct mk_uwb_configure config = {
+                         ^
+uwb_tag_.c(104): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+ struct mk_uwb_configure config = {
+ ^
+uwb_tag_.c(221): warning: no previous extern declaration for non-static variable 'anclost_times' [-Wmissing-variable-declarations]
+uint8_t anclost_times=0 , mainbase_lost_count=0,exsistbase_list[MAX_NEARBASE_NUM],get_newbase=0,nearbase_num,last_nearbase_num,next_nearbase_num;
+        ^
+uwb_tag_.c(221): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint8_t anclost_times=0 , mainbase_lost_count=0,exsistbase_list[MAX_NEARBASE_NUM],get_newbase=0,nearbase_num,last_nearbase_num,next_nearbase_num;
+^
+uwb_tag_.c(221): warning: no previous extern declaration for non-static variable 'mainbase_lost_count' [-Wmissing-variable-declarations]
+uint8_t anclost_times=0 , mainbase_lost_count=0,exsistbase_list[MAX_NEARBASE_NUM],get_newbase=0,nearbase_num,last_nearbase_num,next_nearbase_num;
+                          ^
+uwb_tag_.c(221): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint8_t anclost_times=0 , mainbase_lost_count=0,exsistbase_list[MAX_NEARBASE_NUM],get_newbase=0,nearbase_num,last_nearbase_num,next_nearbase_num;
+^
+uwb_tag_.c(221): warning: no previous extern declaration for non-static variable 'get_newbase' [-Wmissing-variable-declarations]
+uint8_t anclost_times=0 , mainbase_lost_count=0,exsistbase_list[MAX_NEARBASE_NUM],get_newbase=0,nearbase_num,last_nearbase_num,next_nearbase_num;
+                                                                                  ^
+uwb_tag_.c(221): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint8_t anclost_times=0 , mainbase_lost_count=0,exsistbase_list[MAX_NEARBASE_NUM],get_newbase=0,nearbase_num,last_nearbase_num,next_nearbase_num;
+^
+uwb_tag_.c(224): warning: no previous extern declaration for non-static variable 'temp_count1' [-Wmissing-variable-declarations]
+uint32_t temp_count1=0;
+         ^
+uwb_tag_.c(224): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint32_t temp_count1=0;
+^
+uwb_tag_.c(225): warning: no previous extern declaration for non-static variable 'temp_count2' [-Wmissing-variable-declarations]
+uint32_t temp_count2=0;
+         ^
+uwb_tag_.c(225): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint32_t temp_count2=0;
+^
+uwb_tag_.c(226): warning: no previous extern declaration for non-static variable 'temp_count3' [-Wmissing-variable-declarations]
+uint32_t temp_count3=0;
+         ^
+uwb_tag_.c(226): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint32_t temp_count3=0;
+^
+uwb_tag_.c(227): warning: no previous extern declaration for non-static variable 'temp_count4' [-Wmissing-variable-declarations]
+uint32_t temp_count4=0;
+         ^
+uwb_tag_.c(227): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint32_t temp_count4=0;
+^
+uwb_tag_.c(228): warning: no previous extern declaration for non-static variable 'tempflag' [-Wmissing-variable-declarations]
+uint32_t tempflag=0;
+         ^
+uwb_tag_.c(228): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint32_t tempflag=0;
+^
+uwb_tag_.c(249): warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion]
+         tag_num_tosend = taglist_total_num-taglist_current_index;
+                        ~ ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
+uwb_tag_.c(242): warning: no previous prototype for function 'uwb_poll_buffer_construct' [-Wmissing-prototypes]
+void uwb_poll_buffer_construct(void)
+     ^
+uwb_tag_.c(242): note: declare 'static' if the function is not intended to be used outside of this translation unit
+void uwb_poll_buffer_construct(void)
+^
+static 
+uwb_tag_.c(405): 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(405): 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(415): warning: non-void function does not return a value in all control paths [-Wreturn-type]
+}
+^
+uwb_tag_.c(439): warning: unused variable 'temp' [-Wunused-variable]
+        uint16_t i,j=0,temp[TAG_NUM_IN_SYS];
+                       ^
+uwb_tag_.c(460): 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(462): warning: implicit conversion changes signedness: 'int32_t' (aka 'int') to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
+                                                temp_exsis=true_exsistbase_list[i];
+                                                          ~^~~~~~~~~~~~~~~~~~~~~~~
+uwb_tag_.c(467): 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(468): 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(469): 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(477): 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(491): warning: variable 'temp' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
+    if(taglist_total_num<MAX_TAG_LIST_NUM)
+       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+uwb_tag_.c(493): note: uninitialized use occurs here
+        return temp;
+               ^~~~
+uwb_tag_.c(491): note: remove the 'if' if its condition is always true
+    if(taglist_total_num<MAX_TAG_LIST_NUM)
+    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+uwb_tag_.c(482): note: initialize the variable 'temp' to silence this warning
+    uint16_t temp;
+                 ^
+                  = 0
+uwb_tag_.c(496): warning: no previous extern declaration for non-static variable 'tt' [-Wmissing-variable-declarations]
+int tt=1;
+    ^
+uwb_tag_.c(496): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+int tt=1;
+^
+uwb_tag_.c(537): warning: no previous prototype for function 'Anchor_uwb_aoa_square_init' [-Wmissing-prototypes]
+void Anchor_uwb_aoa_square_init(void)
+     ^
+uwb_tag_.c(537): note: declare 'static' if the function is not intended to be used outside of this translation unit
+void Anchor_uwb_aoa_square_init(void)
+^
+static 
+uwb_tag_.c(575): warning: no previous extern declaration for non-static variable 'sleep_time_step' [-Wmissing-variable-declarations]
+int sleep_time_step=SLEEP_COUNT;
+    ^
+uwb_tag_.c(575): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+int sleep_time_step=SLEEP_COUNT;
+^
+uwb_tag_.c(584): warning: no previous extern declaration for non-static variable 'time' [-Wmissing-variable-declarations]
+uint8_t shengji_flag,time=5;
+                     ^
+uwb_tag_.c(584): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint8_t shengji_flag,time=5;
+^
+uwb_tag_.c(591): warning: implicit declaration of function 'Checksum_u16' is invalid in C99 [-Wimplicit-function-declaration]
+                    checksum1=Checksum_u16(rx_buf,rx_length-2);
+                              ^
+uwb_tag_.c(591): warning: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]
+                    checksum1=Checksum_u16(rx_buf,rx_length-2);
+                             ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+uwb_tag_.c(637): warning: illegal character encoding in string literal [-Winvalid-source-encoding]
+                                    LOG_INFO(TRACE_MODULE_APP, "<BD><F8><C8><EB><C9><FD><BC><B6>模式,<BD><D3><CA><D5><CE>募<FE><B4><F3>小%d\r\n",rec_wenjian_daxiao); 
+                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   ~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~
+./include/drivers\mk_trace.h(171): note: expanded from macro 'LOG_INFO'
+#define LOG_INFO(LOG_MODULE, str, ...) TRACE(LOG_MODULE, TRACE_LEVEL_INFO, str, ##__VA_ARGS__)
+                                                                           ^~~
+./include/drivers\mk_trace.h(133): note: expanded from macro 'TRACE'
+#define TRACE(module, level, str, ...) trace_printf((module), (level), (str), ##__VA_ARGS__)
+                                                                        ^~~
+uwb_tag_.c(588): warning: no previous prototype for function 'Uwb_Update' [-Wmissing-prototypes]
+void Uwb_Update(void)
+     ^
+uwb_tag_.c(588): note: declare 'static' if the function is not intended to be used outside of this translation unit
+void Uwb_Update(void)
+^
+static 
+uwb_tag_.c(629): warning: result of comparison of constant 331776 with expression of type 'uint16_t' (aka 'unsigned short') is always false [-Wtautological-constant-out-of-range-compare]
+                                    if(rec_wenjian_daxiao>APP_SIZE||rec_wenjian_daxiao==0)
+                                       ~~~~~~~~~~~~~~~~~~^~~~~~~~~
+uwb_tag_.c(622): warning: 'break' will never be executed [-Wunreachable-code-break]
+                                    break; 
+                                    ^~~~~
+uwb_tag_.c(663): warning: implicit declaration of function 'Checksum_u16' is invalid in C99 [-Wimplicit-function-declaration]
+        checksum = Checksum_u16(uwb_sendbuffer,11+data_length);
+                   ^
+uwb_tag_.c(663): warning: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]
+        checksum = Checksum_u16(uwb_sendbuffer,11+data_length);
+                 ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+uwb_tag_.c(668): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
+    tempflag=uwb_tx(uwb_sendbuffer,data_length+13,1,poll_tx_en_start_u32);//<C1><A2><BC><B4><B7><A2><CB><CD>  
+            ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+uwb_tag_.c(681): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
+                tempflag=uwb_tx(uwb_sendbuffer,13+4*tag_num_tosend,1,poll_tx_en_start_u32);//<C1><A2><BC><B4><B7><A2><CB><CD>
+                        ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+uwb_tag_.c(705): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
+        tempflag=uwb_rx(1,resp_rx_en_start_u32, RESP_RX_TIMEOUT_US);
+                ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+uwb_tag_.c(725): warning: implicit declaration of function 'IdleTask' is invalid in C99 [-Wimplicit-function-declaration]
+                                                IdleTask();
+                                                ^
+uwb_tag_.c(738): 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(748): warning: implicit conversion loses integer precision: 'uint16_t' (aka 'unsigned short') to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion]
+                                                                rec_tag_index = CmpTagInList(rec_nearbaseid);//<B5><B1>前<D0><C2><C0><B4><B5><C4><D5><E2><B0><FC><CA><FD><BE>莶<E5><C8>氲鼻�<B1><ED><D6>械<C4>位<D6><C3><CB><F7><D2><FD>
+                                                                              ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
+uwb_tag_.c(752): warning: implicit conversion loses integer precision: 'uint16_t' (aka 'unsigned short') to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion]
+                                                                        SetANCTimestap(temp_index,&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(775): 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(808): warning: non-void function does not return a value [-Wreturn-type]
+}
+^
+uwb_tag_.c(810): warning: no previous prototype for function 'UpdateCRC16' [-Wmissing-prototypes]
+uint16_t UpdateCRC16(uint16_t crcIn, uint8_t byte)
+         ^
+uwb_tag_.c(810): note: declare 'static' if the function is not intended to be used outside of this translation unit
+uint16_t UpdateCRC16(uint16_t crcIn, uint8_t byte)
+^
+static 
+uwb_tag_.c(847): warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]
+    crc = UpdateCRC16(crc,*data++);
+          ~~~~~~~~~~~ ^~~
+uwb_tag_.c(849): warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]
+  crc = UpdateCRC16(crc,0);
+        ~~~~~~~~~~~ ^~~
+uwb_tag_.c(850): warning: implicit conversion loses integer precision: 'uint32_t' (aka 'unsigned int') to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]
+  crc = UpdateCRC16(crc,0);
+        ~~~~~~~~~~~ ^~~
+uwb_tag_.c(840): warning: no previous prototype for function 'Cal_CRC16' [-Wmissing-prototypes]
+uint16_t Cal_CRC16(const uint8_t* data, uint32_t size)
+         ^
+uwb_tag_.c(840): note: declare 'static' if the function is not intended to be used outside of this translation unit
+uint16_t Cal_CRC16(const uint8_t* data, uint32_t size)
+^
+static 
+uwb_tag_.c(890): warning: implicit declaration of function 'Checksum_u16' is invalid in C99 [-Wimplicit-function-declaration]
+    crc16=Checksum_u16(send_lora_data,6);
+          ^
+uwb_tag_.c(890): warning: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]
+    crc16=Checksum_u16(send_lora_data,6);
+         ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+uwb_tag_.c(896): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
+    tempflag=uwb_tx(send_lora_data,8+2,1,poll_tx_en_start_u32);//<C1><A2><BC><B4><B7><A2><CB><CD>  
+            ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+uwb_tag_.c(902): warning: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]
+    result=flash_open(FLASH_ID0,NULL);
+          ~^~~~~~~~~~~~~~~~~~~~~~~~~~
+uwb_tag_.c(924): warning: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]
+                crc16=Checksum_u16(send_lora_data,8);
+                     ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+uwb_tag_.c(928): warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion]
+                jindu=(muqiandeshengjibao*100)/final_bag_num;
+                     ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
+uwb_tag_.c(929): warning: illegal character encoding in string literal [-Winvalid-source-encoding]
+                LOG_INFO(TRACE_MODULE_APP, "<C9><FD><BC><B6><BD><F8><B6><C8>%d\r\n",jindu);
+                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+./include/drivers\mk_trace.h(171): note: expanded from macro 'LOG_INFO'
+#define LOG_INFO(LOG_MODULE, str, ...) TRACE(LOG_MODULE, TRACE_LEVEL_INFO, str, ##__VA_ARGS__)
+                                                                           ^~~
+./include/drivers\mk_trace.h(133): note: expanded from macro 'TRACE'
+#define TRACE(module, level, str, ...) trace_printf((module), (level), (str), ##__VA_ARGS__)
+                                                                        ^~~
+uwb_tag_.c(932): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
+                tempflag=uwb_tx(send_lora_data,10+2,1,poll_tx_en_start_u32);//<C1><A2><BC><B4><B7><A2><CB><CD>
+                        ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+uwb_tag_.c(939): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
+                tempflag=uwb_rx(0,0, 50000);
+                        ~^~~~~~~~~~~~~~~~~~
+uwb_tag_.c(951): warning: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]
+                     result=flash_open(FLASH_ID0,NULL);
+                           ~^~~~~~~~~~~~~~~~~~~~~~~~~~
+uwb_tag_.c(953): warning: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]
+                     result12=flash_write_nbytes(FLASH_ID0, APP2_ADRESS+ONE_BAG_DAXIAO*muqiandeshengjibao, (uint8_t*)Zhongjian_data, ONE_BAG_DAXIAO);
+                             ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+uwb_tag_.c(954): warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses]
+                     while(!result12==0)
+                           ^        ~~
+uwb_tag_.c(954): note: add parentheses after the '!' to evaluate the comparison first
+                     while(!result12==0)
+                           ^
+                            (          )
+uwb_tag_.c(954): note: add parentheses around left hand side expression to silence this warning
+                     while(!result12==0)
+                           ^
+                           (        )
+uwb_tag_.c(956): warning: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]
+                     result12=flash_write_nbytes(FLASH_ID0, APP2_ADRESS+ONE_BAG_DAXIAO*muqiandeshengjibao, (uint8_t*)Zhongjian_data, ONE_BAG_DAXIAO);
+                             ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+uwb_tag_.c(991): warning: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]
+                crc16=Checksum_u16(send_lora_data,6);
+                     ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+uwb_tag_.c(995): warning: illegal character encoding in string literal [-Winvalid-source-encoding]
+                LOG_INFO(TRACE_MODULE_APP, "<D5><FD><D4>诜<A2><CB><CD><D7><EE><BA><F3>一<B0><FC>\r\n");    
+                                            ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~
+./include/drivers\mk_trace.h(171): note: expanded from macro 'LOG_INFO'
+#define LOG_INFO(LOG_MODULE, str, ...) TRACE(LOG_MODULE, TRACE_LEVEL_INFO, str, ##__VA_ARGS__)
+                                                                           ^~~
+./include/drivers\mk_trace.h(133): note: expanded from macro 'TRACE'
+#define TRACE(module, level, str, ...) trace_printf((module), (level), (str), ##__VA_ARGS__)
+                                                                        ^~~
+uwb_tag_.c(997): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
+                tempflag=uwb_tx(send_lora_data,8+2,1,poll_tx_en_start_u32);//<C1><A2><BC><B4><B7><A2><CB><CD>  
+                        ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+uwb_tag_.c(1004): warning: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]
+                result=flash_open(FLASH_ID0,NULL); 
+                      ~^~~~~~~~~~~~~~~~~~~~~~~~~~
+uwb_tag_.c(1005): warning: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]
+                result11=flash_erase(FLASH_ID0,APP_1OR2_ADRESS,0x1000);
+                        ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+uwb_tag_.c(875): warning: no previous prototype for function 'LoraUp_Poll' [-Wmissing-prototypes]
+void LoraUp_Poll(void)
+     ^
+uwb_tag_.c(875): note: declare 'static' if the function is not intended to be used outside of this translation unit
+void LoraUp_Poll(void)
+^
+static 
+uwb_tag_.c(982): warning: 'break' will never be executed [-Wunreachable-code-break]
+                    break;
+                    ^~~~~
+uwb_tag_.c(52): warning: no previous extern declaration for non-static variable 'dev_id' [-Wmissing-variable-declarations]
+uint32_t dev_id;
+         ^
+uwb_tag_.c(52): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint32_t dev_id;
+^
+uwb_tag_.c(53): warning: no previous extern declaration for non-static variable 'group_id' [-Wmissing-variable-declarations]
+uint8_t group_id;
+        ^
+uwb_tag_.c(53): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint8_t group_id;
+^
+uwb_tag_.c(222): warning: no previous extern declaration for non-static variable 'rec_nearbaseid' [-Wmissing-variable-declarations]
+uint16_t nearbaseid_list[MAX_NEARBASE_NUM],mainbase_id,true_nearbase_idlist[MAX_NEARBASE_NUM],rec_nearbaseid,rec_nearbasepos;
+                                                                                              ^
+uwb_tag_.c(222): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint16_t nearbaseid_list[MAX_NEARBASE_NUM],mainbase_id,true_nearbase_idlist[MAX_NEARBASE_NUM],rec_nearbaseid,rec_nearbasepos;
+^
+uwb_tag_.c(210): warning: no previous extern declaration for non-static variable 'temp_tag_num' [-Wmissing-variable-declarations]
+uint8_t temp_tag_num;
+        ^
+uwb_tag_.c(210): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint8_t temp_tag_num;
+^
+uwb_tag_.c(211): warning: no previous extern declaration for non-static variable 'test2' [-Wmissing-variable-declarations]
+int32_t test2;
+        ^
+uwb_tag_.c(211): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+int32_t test2;
+^
+uwb_tag_.c(214): warning: no previous extern declaration for non-static variable 'taglist_total_num' [-Wmissing-variable-declarations]
+uint16_t  taglist_total_num,taglist_current_index;  //<B5><B1>前<C1>斜<ED><D7><DC><CA><FD><C1><BF>
+          ^
+uwb_tag_.c(214): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint16_t  taglist_total_num,taglist_current_index;  //<B5><B1>前<C1>斜<ED><D7><DC><CA><FD><C1><BF>
+^
+uwb_tag_.c(214): warning: no previous extern declaration for non-static variable 'taglist_current_index' [-Wmissing-variable-declarations]
+uint16_t  taglist_total_num,taglist_current_index;  //<B5><B1>前<C1>斜<ED><D7><DC><CA><FD><C1><BF>
+                            ^
+uwb_tag_.c(214): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint16_t  taglist_total_num,taglist_current_index;  //<B5><B1>前<C1>斜<ED><D7><DC><CA><FD><C1><BF>
+^
+uwb_tag_.c(216): warning: no previous extern declaration for non-static variable 'start_receive_count' [-Wmissing-variable-declarations]
+uint32_t start_receive_count,end_receive_count,poll_timeout,current_count,temp_resp;
+         ^
+uwb_tag_.c(216): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint32_t start_receive_count,end_receive_count,poll_timeout,current_count,temp_resp;
+^
+uwb_tag_.c(216): warning: no previous extern declaration for non-static variable 'end_receive_count' [-Wmissing-variable-declarations]
+uint32_t start_receive_count,end_receive_count,poll_timeout,current_count,temp_resp;
+                             ^
+uwb_tag_.c(216): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint32_t start_receive_count,end_receive_count,poll_timeout,current_count,temp_resp;
+^
+uwb_tag_.c(216): warning: no previous extern declaration for non-static variable 'poll_timeout' [-Wmissing-variable-declarations]
+uint32_t start_receive_count,end_receive_count,poll_timeout,current_count,temp_resp;
+                                               ^
+uwb_tag_.c(216): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint32_t start_receive_count,end_receive_count,poll_timeout,current_count,temp_resp;
+^
+uwb_tag_.c(216): warning: no previous extern declaration for non-static variable 'current_count' [-Wmissing-variable-declarations]
+uint32_t start_receive_count,end_receive_count,poll_timeout,current_count,temp_resp;
+                                                            ^
+uwb_tag_.c(216): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint32_t start_receive_count,end_receive_count,poll_timeout,current_count,temp_resp;
+^
+uwb_tag_.c(216): warning: no previous extern declaration for non-static variable 'temp_resp' [-Wmissing-variable-declarations]
+uint32_t start_receive_count,end_receive_count,poll_timeout,current_count,temp_resp;
+                                                                          ^
+uwb_tag_.c(216): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint32_t start_receive_count,end_receive_count,poll_timeout,current_count,temp_resp;
+^
+uwb_tag_.c(217): warning: no previous extern declaration for non-static variable 'taglist_keeptime' [-Wmissing-variable-declarations]
+uint8_t  taglist_keeptime[MAX_TAG_LIST_NUM]; //每<B8><F6><B1><EA>签<B4><E6><BB><EE>时<BC><E4>
+         ^
+uwb_tag_.c(217): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint8_t  taglist_keeptime[MAX_TAG_LIST_NUM]; //每<B8><F6><B1><EA>签<B4><E6><BB><EE>时<BC><E4>
+^
+uwb_tag_.c(218): warning: no previous extern declaration for non-static variable 'taglist_id' [-Wmissing-variable-declarations]
+uint16_t taglist_id[MAX_TAG_LIST_NUM],taglist_dist[MAX_TAG_LIST_NUM],temp_index; //<B1><EA>签<BE><E0><C0><EB><BA>捅<EA>签<B5><C4>ID
+         ^
+uwb_tag_.c(218): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint16_t taglist_id[MAX_TAG_LIST_NUM],taglist_dist[MAX_TAG_LIST_NUM],temp_index; //<B1><EA>签<BE><E0><C0><EB><BA>捅<EA>签<B5><C4>ID
+^
+uwb_tag_.c(218): warning: no previous extern declaration for non-static variable 'taglist_dist' [-Wmissing-variable-declarations]
+uint16_t taglist_id[MAX_TAG_LIST_NUM],taglist_dist[MAX_TAG_LIST_NUM],temp_index; //<B1><EA>签<BE><E0><C0><EB><BA>捅<EA>签<B5><C4>ID
+                                      ^
+uwb_tag_.c(218): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint16_t taglist_id[MAX_TAG_LIST_NUM],taglist_dist[MAX_TAG_LIST_NUM],temp_index; //<B1><EA>签<BE><E0><C0><EB><BA>捅<EA>签<B5><C4>ID
+^
+uwb_tag_.c(218): warning: no previous extern declaration for non-static variable 'temp_index' [-Wmissing-variable-declarations]
+uint16_t taglist_id[MAX_TAG_LIST_NUM],taglist_dist[MAX_TAG_LIST_NUM],temp_index; //<B1><EA>签<BE><E0><C0><EB><BA>捅<EA>签<B5><C4>ID
+                                                                     ^
+uwb_tag_.c(218): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint16_t taglist_id[MAX_TAG_LIST_NUM],taglist_dist[MAX_TAG_LIST_NUM],temp_index; //<B1><EA>签<BE><E0><C0><EB><BA>捅<EA>签<B5><C4>ID
+^
+uwb_tag_.c(220): warning: no previous extern declaration for non-static variable 'mainbase_dist' [-Wmissing-variable-declarations]
+int32_t mainbase_dist,nearbase_distlist[MAX_NEARBASE_NUM],true_nearbase_distlist[MAX_NEARBASE_NUM],true_exsistbase_list[MAX_NEARBASE_NUM],ancsync_time,nextpoll_delaytime,offsettimeus;
+        ^
+uwb_tag_.c(220): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+int32_t mainbase_dist,nearbase_distlist[MAX_NEARBASE_NUM],true_nearbase_distlist[MAX_NEARBASE_NUM],true_exsistbase_list[MAX_NEARBASE_NUM],ancsync_time,nextpoll_delaytime,offsettimeus;
+^
+uwb_tag_.c(220): warning: no previous extern declaration for non-static variable 'nearbase_distlist' [-Wmissing-variable-declarations]
+int32_t mainbase_dist,nearbase_distlist[MAX_NEARBASE_NUM],true_nearbase_distlist[MAX_NEARBASE_NUM],true_exsistbase_list[MAX_NEARBASE_NUM],ancsync_time,nextpoll_delaytime,offsettimeus;
+                      ^
+uwb_tag_.c(220): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+int32_t mainbase_dist,nearbase_distlist[MAX_NEARBASE_NUM],true_nearbase_distlist[MAX_NEARBASE_NUM],true_exsistbase_list[MAX_NEARBASE_NUM],ancsync_time,nextpoll_delaytime,offsettimeus;
+^
+uwb_tag_.c(220): warning: no previous extern declaration for non-static variable 'true_nearbase_distlist' [-Wmissing-variable-declarations]
+int32_t mainbase_dist,nearbase_distlist[MAX_NEARBASE_NUM],true_nearbase_distlist[MAX_NEARBASE_NUM],true_exsistbase_list[MAX_NEARBASE_NUM],ancsync_time,nextpoll_delaytime,offsettimeus;
+                                                          ^
+uwb_tag_.c(220): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+int32_t mainbase_dist,nearbase_distlist[MAX_NEARBASE_NUM],true_nearbase_distlist[MAX_NEARBASE_NUM],true_exsistbase_list[MAX_NEARBASE_NUM],ancsync_time,nextpoll_delaytime,offsettimeus;
+^
+uwb_tag_.c(220): warning: no previous extern declaration for non-static variable 'true_exsistbase_list' [-Wmissing-variable-declarations]
+int32_t mainbase_dist,nearbase_distlist[MAX_NEARBASE_NUM],true_nearbase_distlist[MAX_NEARBASE_NUM],true_exsistbase_list[MAX_NEARBASE_NUM],ancsync_time,nextpoll_delaytime,offsettimeus;
+                                                                                                   ^
+uwb_tag_.c(220): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+int32_t mainbase_dist,nearbase_distlist[MAX_NEARBASE_NUM],true_nearbase_distlist[MAX_NEARBASE_NUM],true_exsistbase_list[MAX_NEARBASE_NUM],ancsync_time,nextpoll_delaytime,offsettimeus;
+^
+uwb_tag_.c(220): warning: no previous extern declaration for non-static variable 'ancsync_time' [-Wmissing-variable-declarations]
+int32_t mainbase_dist,nearbase_distlist[MAX_NEARBASE_NUM],true_nearbase_distlist[MAX_NEARBASE_NUM],true_exsistbase_list[MAX_NEARBASE_NUM],ancsync_time,nextpoll_delaytime,offsettimeus;
+                                                                                                                                          ^
+uwb_tag_.c(220): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+int32_t mainbase_dist,nearbase_distlist[MAX_NEARBASE_NUM],true_nearbase_distlist[MAX_NEARBASE_NUM],true_exsistbase_list[MAX_NEARBASE_NUM],ancsync_time,nextpoll_delaytime,offsettimeus;
+^
+uwb_tag_.c(220): warning: no previous extern declaration for non-static variable 'nextpoll_delaytime' [-Wmissing-variable-declarations]
+int32_t mainbase_dist,nearbase_distlist[MAX_NEARBASE_NUM],true_nearbase_distlist[MAX_NEARBASE_NUM],true_exsistbase_list[MAX_NEARBASE_NUM],ancsync_time,nextpoll_delaytime,offsettimeus;
+                                                                                                                                                       ^
+uwb_tag_.c(220): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+int32_t mainbase_dist,nearbase_distlist[MAX_NEARBASE_NUM],true_nearbase_distlist[MAX_NEARBASE_NUM],true_exsistbase_list[MAX_NEARBASE_NUM],ancsync_time,nextpoll_delaytime,offsettimeus;
+^
+uwb_tag_.c(220): warning: no previous extern declaration for non-static variable 'offsettimeus' [-Wmissing-variable-declarations]
+int32_t mainbase_dist,nearbase_distlist[MAX_NEARBASE_NUM],true_nearbase_distlist[MAX_NEARBASE_NUM],true_exsistbase_list[MAX_NEARBASE_NUM],ancsync_time,nextpoll_delaytime,offsettimeus;
+                                                                                                                                                                          ^
+uwb_tag_.c(220): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+int32_t mainbase_dist,nearbase_distlist[MAX_NEARBASE_NUM],true_nearbase_distlist[MAX_NEARBASE_NUM],true_exsistbase_list[MAX_NEARBASE_NUM],ancsync_time,nextpoll_delaytime,offsettimeus;
+^
+uwb_tag_.c(221): warning: no previous extern declaration for non-static variable 'exsistbase_list' [-Wmissing-variable-declarations]
+uint8_t anclost_times=0 , mainbase_lost_count=0,exsistbase_list[MAX_NEARBASE_NUM],get_newbase=0,nearbase_num,last_nearbase_num,next_nearbase_num;
+                                                ^
+uwb_tag_.c(221): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint8_t anclost_times=0 , mainbase_lost_count=0,exsistbase_list[MAX_NEARBASE_NUM],get_newbase=0,nearbase_num,last_nearbase_num,next_nearbase_num;
+^
+uwb_tag_.c(221): warning: no previous extern declaration for non-static variable 'nearbase_num' [-Wmissing-variable-declarations]
+uint8_t anclost_times=0 , mainbase_lost_count=0,exsistbase_list[MAX_NEARBASE_NUM],get_newbase=0,nearbase_num,last_nearbase_num,next_nearbase_num;
+                                                                                                ^
+uwb_tag_.c(221): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint8_t anclost_times=0 , mainbase_lost_count=0,exsistbase_list[MAX_NEARBASE_NUM],get_newbase=0,nearbase_num,last_nearbase_num,next_nearbase_num;
+^
+uwb_tag_.c(221): warning: no previous extern declaration for non-static variable 'last_nearbase_num' [-Wmissing-variable-declarations]
+uint8_t anclost_times=0 , mainbase_lost_count=0,exsistbase_list[MAX_NEARBASE_NUM],get_newbase=0,nearbase_num,last_nearbase_num,next_nearbase_num;
+                                                                                                             ^
+uwb_tag_.c(221): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint8_t anclost_times=0 , mainbase_lost_count=0,exsistbase_list[MAX_NEARBASE_NUM],get_newbase=0,nearbase_num,last_nearbase_num,next_nearbase_num;
+^
+uwb_tag_.c(221): warning: no previous extern declaration for non-static variable 'next_nearbase_num' [-Wmissing-variable-declarations]
+uint8_t anclost_times=0 , mainbase_lost_count=0,exsistbase_list[MAX_NEARBASE_NUM],get_newbase=0,nearbase_num,last_nearbase_num,next_nearbase_num;
+                                                                                                                               ^
+uwb_tag_.c(221): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint8_t anclost_times=0 , mainbase_lost_count=0,exsistbase_list[MAX_NEARBASE_NUM],get_newbase=0,nearbase_num,last_nearbase_num,next_nearbase_num;
+^
+uwb_tag_.c(222): warning: no previous extern declaration for non-static variable 'nearbaseid_list' [-Wmissing-variable-declarations]
+uint16_t nearbaseid_list[MAX_NEARBASE_NUM],mainbase_id,true_nearbase_idlist[MAX_NEARBASE_NUM],rec_nearbaseid,rec_nearbasepos;
+         ^
+uwb_tag_.c(222): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint16_t nearbaseid_list[MAX_NEARBASE_NUM],mainbase_id,true_nearbase_idlist[MAX_NEARBASE_NUM],rec_nearbaseid,rec_nearbasepos;
+^
+uwb_tag_.c(222): warning: no previous extern declaration for non-static variable 'mainbase_id' [-Wmissing-variable-declarations]
+uint16_t nearbaseid_list[MAX_NEARBASE_NUM],mainbase_id,true_nearbase_idlist[MAX_NEARBASE_NUM],rec_nearbaseid,rec_nearbasepos;
+                                           ^
+uwb_tag_.c(222): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint16_t nearbaseid_list[MAX_NEARBASE_NUM],mainbase_id,true_nearbase_idlist[MAX_NEARBASE_NUM],rec_nearbaseid,rec_nearbasepos;
+^
+uwb_tag_.c(222): warning: no previous extern declaration for non-static variable 'true_nearbase_idlist' [-Wmissing-variable-declarations]
+uint16_t nearbaseid_list[MAX_NEARBASE_NUM],mainbase_id,true_nearbase_idlist[MAX_NEARBASE_NUM],rec_nearbaseid,rec_nearbasepos;
+                                                       ^
+uwb_tag_.c(222): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint16_t nearbaseid_list[MAX_NEARBASE_NUM],mainbase_id,true_nearbase_idlist[MAX_NEARBASE_NUM],rec_nearbaseid,rec_nearbasepos;
+^
+uwb_tag_.c(222): warning: no previous extern declaration for non-static variable 'rec_nearbasepos' [-Wmissing-variable-declarations]
+uint16_t nearbaseid_list[MAX_NEARBASE_NUM],mainbase_id,true_nearbase_idlist[MAX_NEARBASE_NUM],rec_nearbaseid,rec_nearbasepos;
+                                                                                                             ^
+uwb_tag_.c(222): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint16_t nearbaseid_list[MAX_NEARBASE_NUM],mainbase_id,true_nearbase_idlist[MAX_NEARBASE_NUM],rec_nearbaseid,rec_nearbasepos;
+^
+uwb_tag_.c(223): warning: no previous extern declaration for non-static variable 'u16_nearbase_distlist' [-Wmissing-variable-declarations]
+uint16_t u16_nearbase_distlist[MAX_NEARBASE_NUM];
+         ^
+uwb_tag_.c(223): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint16_t u16_nearbase_distlist[MAX_NEARBASE_NUM];
+^
+uwb_tag_.c(229): warning: no previous extern declaration for non-static variable 'freq_offset' [-Wmissing-variable-declarations]
+int32_t freq_offset,freq_offset_filter; 
+        ^
+uwb_tag_.c(229): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+int32_t freq_offset,freq_offset_filter; 
+^
+uwb_tag_.c(229): warning: no previous extern declaration for non-static variable 'freq_offset_filter' [-Wmissing-variable-declarations]
+int32_t freq_offset,freq_offset_filter; 
+                    ^
+uwb_tag_.c(229): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+int32_t freq_offset,freq_offset_filter; 
+^
+uwb_tag_.c(230): warning: no previous extern declaration for non-static variable 'temp_flag' [-Wmissing-variable-declarations]
+int temp_flag,poll_tx_num,resp_rx_num;
+    ^
+uwb_tag_.c(230): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+int temp_flag,poll_tx_num,resp_rx_num;
+^
+uwb_tag_.c(230): warning: no previous extern declaration for non-static variable 'poll_tx_num' [-Wmissing-variable-declarations]
+int temp_flag,poll_tx_num,resp_rx_num;
+              ^
+uwb_tag_.c(230): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+int temp_flag,poll_tx_num,resp_rx_num;
+^
+uwb_tag_.c(230): warning: no previous extern declaration for non-static variable 'resp_rx_num' [-Wmissing-variable-declarations]
+int temp_flag,poll_tx_num,resp_rx_num;
+                          ^
+uwb_tag_.c(230): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+int temp_flag,poll_tx_num,resp_rx_num;
+^
+uwb_tag_.c(233): warning: no previous extern declaration for non-static variable 'count1' [-Wmissing-variable-declarations]
+uint32_t count1,count2;
+         ^
+uwb_tag_.c(233): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint32_t count1,count2;
+^
+uwb_tag_.c(233): warning: no previous extern declaration for non-static variable 'count2' [-Wmissing-variable-declarations]
+uint32_t count1,count2;
+                ^
+uwb_tag_.c(233): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint32_t count1,count2;
+^
+uwb_tag_.c(300): warning: no previous extern declaration for non-static variable 'temp_rx_first_stamp' [-Wmissing-variable-declarations]
+uint32_t temp_rx_first_stamp,temp_rx_second_stamp;
+         ^
+uwb_tag_.c(300): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint32_t temp_rx_first_stamp,temp_rx_second_stamp;
+^
+uwb_tag_.c(300): warning: no previous extern declaration for non-static variable 'temp_rx_second_stamp' [-Wmissing-variable-declarations]
+uint32_t temp_rx_first_stamp,temp_rx_second_stamp;
+                             ^
+uwb_tag_.c(300): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint32_t temp_rx_first_stamp,temp_rx_second_stamp;
+^
+uwb_tag_.c(301): warning: no previous extern declaration for non-static variable 'temp_rx_first_id' [-Wmissing-variable-declarations]
+uint16_t temp_rx_first_id,temp_rx_second_id;
+         ^
+uwb_tag_.c(301): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint16_t temp_rx_first_id,temp_rx_second_id;
+^
+uwb_tag_.c(301): warning: no previous extern declaration for non-static variable 'temp_rx_second_id' [-Wmissing-variable-declarations]
+uint16_t temp_rx_first_id,temp_rx_second_id;
+                          ^
+uwb_tag_.c(301): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint16_t temp_rx_first_id,temp_rx_second_id;
+^
+uwb_tag_.c(302): warning: no previous extern declaration for non-static variable 'mac_error' [-Wmissing-variable-declarations]
+uint8_t mac_error;
+        ^
+uwb_tag_.c(302): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint8_t mac_error;
+^
+uwb_tag_.c(436): warning: no previous extern declaration for non-static variable 'temp_j' [-Wmissing-variable-declarations]
+int temp_j;
+    ^
+uwb_tag_.c(436): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+int temp_j;
+^
+uwb_tag_.c(495): warning: no previous extern declaration for non-static variable 'count_index' [-Wmissing-variable-declarations]
+uint32_t count_index;
+         ^
+uwb_tag_.c(495): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint32_t count_index;
+^
+uwb_tag_.c(497): warning: no previous extern declaration for non-static variable 'freqlost_count' [-Wmissing-variable-declarations]
+float freqlost_count;
+      ^
+uwb_tag_.c(497): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+float freqlost_count;
+^
+uwb_tag_.c(576): warning: no previous extern declaration for non-static variable 'rand_temp' [-Wmissing-variable-declarations]
+int rand_temp;
+    ^
+uwb_tag_.c(576): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+int rand_temp;
+^
+uwb_tag_.c(578): warning: no previous extern declaration for non-static variable 'rec_index' [-Wmissing-variable-declarations]
+uint8_t rec_index,rec_secdelay;
+        ^
+uwb_tag_.c(578): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint8_t rec_index,rec_secdelay;
+^
+uwb_tag_.c(578): warning: no previous extern declaration for non-static variable 'rec_secdelay' [-Wmissing-variable-declarations]
+uint8_t rec_index,rec_secdelay;
+                  ^
+uwb_tag_.c(578): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint8_t rec_index,rec_secdelay;
+^
+uwb_tag_.c(579): warning: no previous extern declaration for non-static variable 'rec_value' [-Wmissing-variable-declarations]
+uint16_t rec_value;
+         ^
+uwb_tag_.c(579): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint16_t rec_value;
+^
+uwb_tag_.c(580): warning: no previous extern declaration for non-static variable 'readgcom_flag' [-Wmissing-variable-declarations]
+uint8_t readgcom_flag;
+        ^
+uwb_tag_.c(580): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint8_t readgcom_flag;
+^
+uwb_tag_.c(581): warning: no previous extern declaration for non-static variable 'wg_report_id' [-Wmissing-variable-declarations]
+uint16_t wg_report_id;
+         ^
+uwb_tag_.c(581): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint16_t wg_report_id;
+^
+uwb_tag_.c(870): warning: no previous extern declaration for non-static variable 'rec_wenjian_daxiao' [-Wmissing-variable-declarations]
+uint16_t rec_wenjian_daxiao;
+         ^
+uwb_tag_.c(870): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint16_t rec_wenjian_daxiao;
+^
+uwb_tag_.c(867): warning: no previous extern declaration for non-static variable 'wangguan_up_id' [-Wmissing-variable-declarations]
+uint16_t wangguan_up_id;
+         ^
+uwb_tag_.c(867): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint16_t wangguan_up_id;
+^
+uwb_tag_.c(866): warning: no previous extern declaration for non-static variable 'shengji_flag' [-Wmissing-variable-declarations]
+uint8_t shengji_flag;
+        ^
+uwb_tag_.c(866): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint8_t shengji_flag;
+^
+uwb_tag_.c(869): warning: no previous extern declaration for non-static variable 'LoraUp_flag' [-Wmissing-variable-declarations]
+uint8_t LoraUp_flag;
+        ^
+uwb_tag_.c(869): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint8_t LoraUp_flag;
+^
+uwb_tag_.c(587): warning: no previous extern declaration for non-static variable 'checksum1' [-Wmissing-variable-declarations]
+uint16_t checksum1;
+         ^
+uwb_tag_.c(587): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint16_t checksum1;
+^
+uwb_tag_.c(859): warning: no previous extern declaration for non-static variable 'send_lora_data' [-Wmissing-variable-declarations]
+uint8_t send_lora_data[250];
+        ^
+uwb_tag_.c(859): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint8_t send_lora_data[250];
+^
+uwb_tag_.c(860): warning: no previous extern declaration for non-static variable 'muqiandeshengjibao' [-Wmissing-variable-declarations]
+uint16_t muqiandeshengjibao;
+         ^
+uwb_tag_.c(860): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint16_t muqiandeshengjibao;
+^
+uwb_tag_.c(862): warning: no previous extern declaration for non-static variable 'huifushengjibaoerror_num' [-Wmissing-variable-declarations]
+uint8_t huifushengjibaoerror_num;
+        ^
+uwb_tag_.c(862): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint8_t huifushengjibaoerror_num;
+^
+uwb_tag_.c(864): warning: no previous extern declaration for non-static variable 'testflag' [-Wmissing-variable-declarations]
+uint16_t testflag;
+         ^
+uwb_tag_.c(864): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint16_t testflag;
+^
+uwb_tag_.c(865): warning: no previous extern declaration for non-static variable 'Zhongjian_data' [-Wmissing-variable-declarations]
+uint32_t Zhongjian_data[60];
+         ^
+uwb_tag_.c(865): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint32_t Zhongjian_data[60];
+^
+uwb_tag_.c(868): warning: no previous extern declaration for non-static variable 'huifushengjibao_flag' [-Wmissing-variable-declarations]
+uint8_t huifushengjibao_flag;
+        ^
+uwb_tag_.c(868): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint8_t huifushengjibao_flag;
+^
+uwb_tag_.c(871): warning: no previous extern declaration for non-static variable 'lora_up_rec_flag' [-Wmissing-variable-declarations]
+uint8_t lora_up_rec_flag;
+        ^
+uwb_tag_.c(871): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint8_t lora_up_rec_flag;
+^
+uwb_tag_.c(872): warning: no previous extern declaration for non-static variable 'flash_shuju' [-Wmissing-variable-declarations]
+uint16_t flash_shuju;
+         ^
+uwb_tag_.c(872): note: declare 'static' if the variable is not intended to be used outside of this translation unit
+uint16_t flash_shuju;
+^
+uwb_tag_.c(188): warning: unused variable 'tx_poll_msg' [-Wunused-variable]
+static uint8_t tx_poll_msg[] = {0x41, 0x88, 0, 0x4D, 0x4B, 0x53, 0x45, 0x4D, 0x49, 0x02};
+               ^
+uwb_tag_.c(189): warning: unused variable 'rx_resp_msg' [-Wunused-variable]
+static uint8_t rx_resp_msg[] = {0x41, 0x88, 0, 0x4D, 0x4B, 0x4D, 0x49, 0x53, 0x45, 0x03, 0x07};
+               ^
+uwb_tag_.c(190): warning: unused variable 'tx_final_msg' [-Wunused-variable]
+static uint8_t tx_final_msg[] = {0x41, 0x88, 0, 0x4D, 0x4B, 0x53, 0x45, 0x4D, 0x49, 0x04, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
+               ^
+uwb_tag_.c(195): warning: unused variable 'final_tx_en_start_u32' [-Wunused-variable]
+static uint32_t final_tx_en_start_u32;
+                ^
+uwb_tag_.c(200): warning: unused variable 'final_tx_ts_i64' [-Wunused-variable]
+static int64_t final_tx_ts_i64;
+               ^
+uwb_tag_.c(267): warning: unused variable 'state' [-Wunused-variable]
+static enum SIMPLE_FSM_T state = SIMPLE_IDLE;
+                         ^
+uwb_tag_.c(861): warning: unused variable 'current_count1' [-Wunused-variable]
+static uint16_t current_count1,target_count1,end_count1,start_count1;
+                ^
+uwb_tag_.c(861): warning: unused variable 'target_count1' [-Wunused-variable]
+static uint16_t current_count1,target_count1,end_count1,start_count1;
+                               ^
+uwb_tag_.c(861): warning: unused variable 'end_count1' [-Wunused-variable]
+static uint16_t current_count1,target_count1,end_count1,start_count1;
+                                             ^
+uwb_tag_.c(861): warning: unused variable 'start_count1' [-Wunused-variable]
+static uint16_t current_count1,target_count1,end_count1,start_count1;
+                                                        ^
+uwb_tag_.c(873): warning: unused variable 'status_reg' [-Wunused-variable]
+static uint32_t status_reg;
+                ^
+uwb_tag_.c(874): warning: unused variable 'frame_len' [-Wunused-variable]
+static uint32_t frame_len;
+                ^
+146 warnings generated.
+compiling uwb_tag_.c...
+linking...
+.\include\devices\MK800X\Source\ARM\MK800X_ac6_copy.sct(25): warning: L6314W: No section matches pattern *(.XIP_SECTION).
+Program Size: Code=57468 RO-data=7608 RW-data=1392 ZI-data=28000  
+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_URT no UWB\ChinaUWBProject\keil\Objects\uwb_simple_example.axf"
+".\Objects\uwb_simple_example.axf" - 0 Error(s), 147 Warning(s).
 
 <h2>Software Packages used:</h2>
 
@@ -42,7 +786,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:01
+Build Time Elapsed:  00:00:10
 </pre>
 </body>
 </html>

--
Gitblit v1.9.3