From 3eb4e891caae5ba226dae64fe4a4c3276ebee7b3 Mon Sep 17 00:00:00 2001 From: chen <15335560115@163.com> Date: 星期四, 13 三月 2025 14:02:01 +0800 Subject: [PATCH] 初步缩小到能用间隔测距 --- keil/Objects/uwb_simple_example.build_log.htm | 613 ------------------------------------------------------- 1 files changed, 7 insertions(+), 606 deletions(-) diff --git a/keil/Objects/uwb_simple_example.build_log.htm b/keil/Objects/uwb_simple_example.build_log.htm index c0b1cdf..9a90811 100644 --- a/keil/Objects/uwb_simple_example.build_log.htm +++ b/keil/Objects/uwb_simple_example.build_log.htm @@ -21,610 +21,12 @@ Dialog DLL: TARMCM1.DLL V1.14.2.0 <h2>Project:</h2> -D:\project chen\ChinaUWBProject_tag_URT\keil\uwb_simple_example.uvprojx -Project File Date: 09/13/2024 +D:\project_chen\ChinaUWBProject_tag_URT\keil\uwb_simple_example.uvprojx +Project File Date: 03/13/2025 <h2>Output:</h2> *** Using Compiler 'V6.14', folder: 'd:\Keil_v5\ARM\ARMCLANG\Bin' -Rebuild target 'MK8000 Release' -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); - ~~ ^~~~ -./include/drivers/mk_trace.h(170): 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(132): note: expanded from macro 'TRACE' -#define TRACE(module, level, str, ...) trace_printf((module), (level), (str), ##__VA_ARGS__) - ~~~ ^~~~~~~~~~~ -1 warning generated. -compiling mk_adc.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) - ^ -include/drivers/global_param.c(9): note: declare 'static' if the function is not intended to be used outside of this translation unit -uint8_t parameter_check(void) -^ -static -include/drivers/global_param.c(46): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion] - result=flash_open(FLASH_ID0,NULL); - ~^~~~~~~~~~~~~~~~~~~~~~~~~~ -include/drivers/global_param.c(70): warning: implicit conversion changes signedness: 'int' to 'uint16_t' (aka 'unsigned short') [-Wsign-conversion] - g_com_map[DIST_OFFSET]=-31; - ~^~~ -include/drivers/global_param.c(107): warning: implicit conversion changes signedness: 'int' to 'uint16_t' (aka 'unsigned short') [-Wsign-conversion] - g_com_map[DIST_OFFSET]=-31; - ~^~~ -include/drivers/global_param.c(129): warning: no newline at end of file [-Wnewline-eof] -} - ^ -5 warnings generated. -compiling global_param.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> - ^ -include/drivers/Usart.c(10): note: declare 'static' if the variable is not intended to be used outside of this translation unit -volatile int8_t m_EUART_TxFrm_Tail = 0; //<CA><FD><BE>莘<A2><CB><CD>帧<B6><D3><C1><D0>尾指<D5><EB> - ^ -include/drivers/Usart.c(11): warning: no previous extern declaration for non-static variable 'm_EUART_TxFrm_Head' [-Wmissing-variable-declarations] -volatile int8_t m_EUART_TxFrm_Head = 0; //<CA><FD><BE>莘<A2><CB><CD>帧<B6><D3><C1><D0>头指<D5><EB> - ^ -include/drivers/Usart.c(11): note: declare 'static' if the variable is not intended to be used outside of this translation unit -volatile int8_t m_EUART_TxFrm_Head = 0; //<CA><FD><BE>莘<A2><CB><CD>帧<B6><D3><C1><D0>头指<D5><EB> - ^ -include/drivers/Usart.c(12): warning: no previous extern declaration for non-static variable 'm_EUART_TxFrm_FreeFrmLen' [-Wmissing-variable-declarations] -volatile int8_t m_EUART_TxFrm_FreeFrmLen = 0; //<CA><FD><BE>莘<A2><CB><CD>帧<B6><D3><C1><D0>剩<D3><E0>帧<CA><FD> - ^ -include/drivers/Usart.c(12): note: declare 'static' if the variable is not intended to be used outside of this translation unit -volatile int8_t m_EUART_TxFrm_FreeFrmLen = 0; //<CA><FD><BE>莘<A2><CB><CD>帧<B6><D3><C1><D0>剩<D3><E0>帧<CA><FD> - ^ -include/drivers/Usart.c(15): warning: no previous extern declaration for non-static variable 'm_EUART_DMA_RXPtr' [-Wmissing-variable-declarations] -volatile int32_t m_EUART_DMA_RXPtr = 0; //<B5><B1>前<CA><FD><BE>莸<D8>址 - ^ -include/drivers/Usart.c(15): note: declare 'static' if the variable is not intended to be used outside of this translation unit -volatile int32_t m_EUART_DMA_RXPtr = 0; //<B5><B1>前<CA><FD><BE>莸<D8>址 - ^ -include/drivers/Usart.c(19): warning: no previous extern declaration for non-static variable 'm_bEUARTPushingFrms' [-Wmissing-variable-declarations] -volatile uint8_t m_bEUARTPushingFrms = 0; //<D5><FD><D4><DA><CD><F9><B7><A2><CB>投<D3><C1>写<E6><CA><FD><BE><DD> - ^ -include/drivers/Usart.c(19): note: declare 'static' if the variable is not intended to be used outside of this translation unit -volatile uint8_t m_bEUARTPushingFrms = 0; //<D5><FD><D4><DA><CD><F9><B7><A2><CB>投<D3><C1>写<E6><CA><FD><BE><DD> - ^ -include/drivers/Usart.c(20): warning: no previous extern declaration for non-static variable 'm_bEUARTCheckingSend' [-Wmissing-variable-declarations] -volatile uint8_t m_bEUARTCheckingSend = 0; //<D5><FD><D4><DA>确<C8><CF><CA><FD><BE>莘<A2><CB><CD> - ^ -include/drivers/Usart.c(20): note: declare 'static' if the variable is not intended to be used outside of this translation unit -volatile uint8_t m_bEUARTCheckingSend = 0; //<D5><FD><D4><DA>确<C8><CF><CA><FD><BE>莘<A2><CB><CD> - ^ -include/drivers/Usart.c(21): warning: no previous extern declaration for non-static variable 'm_bEUARTCheckingRec' [-Wmissing-variable-declarations] -volatile uint8_t m_bEUARTCheckingRec = 0; //<D5><FD><D4><DA>确<C8>辖<D3><CA><D5><CA><FD><BE><DD> - ^ -include/drivers/Usart.c(21): note: declare 'static' if the variable is not intended to be used outside of this translation unit -volatile uint8_t m_bEUARTCheckingRec = 0; //<D5><FD><D4><DA>确<C8>辖<D3><CA><D5><CA><FD><BE><DD> - ^ -include/drivers/Usart.c(22): warning: no previous extern declaration for non-static variable 'm_bEUARTTxEn' [-Wmissing-variable-declarations] -volatile uint8_t m_bEUARTTxEn = 0; //使<C4>芊<A2><CB><CD> - ^ -include/drivers/Usart.c(22): note: declare 'static' if the variable is not intended to be used outside of this translation unit -volatile uint8_t m_bEUARTTxEn = 0; //使<C4>芊<A2><CB><CD> - ^ -include/drivers/Usart.c(25): warning: no previous prototype for function 'Usart1InitVariables' [-Wmissing-prototypes] -void Usart1InitVariables(void) - ^ -include/drivers/Usart.c(25): note: declare 'static' if the function is not intended to be used outside of this translation unit -void Usart1InitVariables(void) -^ -static -include/drivers/Usart.c(38): warning: no previous extern declaration for non-static variable 'cndtr' [-Wmissing-variable-declarations] -uint32_t cndtr=0; - ^ -include/drivers/Usart.c(38): note: declare 'static' if the variable is not intended to be used outside of this translation unit -uint32_t cndtr=0; -^ -include/drivers/Usart.c(57): warning: implicit conversion changes signedness: 'unsigned int' to 'int32_t' (aka 'int') [-Wsign-conversion] - DMACnt = EUART_RX_BUF_SIZE - cndtr; - ~ ~~~~~~~~~~~~~~~~~~^~~~~~~ -include/drivers/Usart.c(67): warning: implicit conversion changes signedness: 'unsigned int' to 'int32_t' (aka 'int') [-Wsign-conversion] - DMACnt = EUART_RX_BUF_SIZE - cndtr; - ~ ~~~~~~~~~~~~~~~~~~^~~~~~~ -include/drivers/Usart.c(92): warning: implicit conversion changes signedness: 'unsigned int' to 'int32_t' (aka 'int') [-Wsign-conversion] - DMACnt = EUART_RX_BUF_SIZE - cndtr; - ~ ~~~~~~~~~~~~~~~~~~^~~~~~~ -include/drivers/Usart.c(102): warning: implicit conversion changes signedness: 'unsigned int' to 'int32_t' (aka 'int') [-Wsign-conversion] - DMACnt = EUART_RX_BUF_SIZE - cndtr; - ~ ~~~~~~~~~~~~~~~~~~^~~~~~~ -include/drivers/Usart.c(239): warning: implicit conversion changes signedness: 'int32_t' (aka 'int') to 'unsigned int' [-Wsign-conversion] - memcpy((uint8_t*)m_EUART_TxFrames[m_EUART_TxFrm_Head].buf, (uint8_t*)pdata, data_len); - ~~~~~~ ^~~~~~~~ -include/drivers/Usart.c(259): warning: no previous prototype for function 'USART_putc' [-Wmissing-prototypes] -void USART_putc(uint8_t c) - ^ -include/drivers/Usart.c(259): note: declare 'static' if the function is not intended to be used outside of this translation unit -void USART_putc(uint8_t c) -^ -static -include/drivers/Usart.c(269): warning: no previous prototype for function 'USART_puts' [-Wmissing-prototypes] -void USART_puts(uint8_t *s,uint8_t len) - ^ -include/drivers/Usart.c(269): note: declare 'static' if the function is not intended to be used outside of this translation unit -void USART_puts(uint8_t *s,uint8_t len) -^ -static -include/drivers/Usart.c(9): warning: no previous extern declaration for non-static variable 'm_EUART_TxFrames' [-Wmissing-variable-declarations] -EUART_Frame m_EUART_TxFrames[EUART_TX_FRM_SIZE]; //<CA><FD><BE>莘<A2><CB><CD>帧<B6><D3><C1><D0> - ^ -include/drivers/Usart.c(9): note: declare 'static' if the variable is not intended to be used outside of this translation unit -EUART_Frame m_EUART_TxFrames[EUART_TX_FRM_SIZE]; //<CA><FD><BE>莘<A2><CB><CD>帧<B6><D3><C1><D0> -^ -include/drivers/Usart.c(37): warning: no previous extern declaration for non-static variable 't3' [-Wmissing-variable-declarations] -uint16_t t3; - ^ -include/drivers/Usart.c(37): note: declare 'static' if the variable is not intended to be used outside of this translation unit -uint16_t t3; -^ -19 warnings generated. -compiling Usart.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 ; - ^ -include/drivers/serial_at_cmd_app.c(43): note: declare 'static' if the variable is not intended to be used outside of this translation unit -uint8_t j_ct=0,CT_satrt_temp=0,CT_satrt=0,numb_base=0 ; -^ -include/drivers/serial_at_cmd_app.c(43): warning: no previous extern declaration for non-static variable 'CT_satrt_temp' [-Wmissing-variable-declarations] -uint8_t j_ct=0,CT_satrt_temp=0,CT_satrt=0,numb_base=0 ; - ^ -include/drivers/serial_at_cmd_app.c(43): note: declare 'static' if the variable is not intended to be used outside of this translation unit -uint8_t j_ct=0,CT_satrt_temp=0,CT_satrt=0,numb_base=0 ; -^ -include/drivers/serial_at_cmd_app.c(43): warning: no previous extern declaration for non-static variable 'CT_satrt' [-Wmissing-variable-declarations] -uint8_t j_ct=0,CT_satrt_temp=0,CT_satrt=0,numb_base=0 ; - ^ -include/drivers/serial_at_cmd_app.c(43): note: declare 'static' if the variable is not intended to be used outside of this translation unit -uint8_t j_ct=0,CT_satrt_temp=0,CT_satrt=0,numb_base=0 ; -^ -include/drivers/serial_at_cmd_app.c(43): warning: no previous extern declaration for non-static variable 'numb_base' [-Wmissing-variable-declarations] -uint8_t j_ct=0,CT_satrt_temp=0,CT_satrt=0,numb_base=0 ; - ^ -include/drivers/serial_at_cmd_app.c(43): note: declare 'static' if the variable is not intended to be used outside of this translation unit -uint8_t j_ct=0,CT_satrt_temp=0,CT_satrt=0,numb_base=0 ; -^ -include/drivers/serial_at_cmd_app.c(45): warning: no previous extern declaration for non-static variable 'id_cmpare' [-Wmissing-variable-declarations] -uint8_t id_cmpare[12]={0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x30, 0x30, 0x30, 0x31};//123456780001//<B2><E2><CA><D4>//RC2202A<A3><BA> - ^ -include/drivers/serial_at_cmd_app.c(45): note: declare 'static' if the variable is not intended to be used outside of this translation unit -uint8_t id_cmpare[12]={0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x30, 0x30, 0x30, 0x31};//123456780001//<B2><E2><CA><D4>//RC2202A<A3><BA> -^ -include/drivers/serial_at_cmd_app.c(46): warning: no previous extern declaration for non-static variable 'CT_sum' [-Wmissing-variable-declarations] -uint32_t CT_sum=0; - ^ -include/drivers/serial_at_cmd_app.c(46): note: declare 'static' if the variable is not intended to be used outside of this translation unit -uint32_t CT_sum=0; -^ -include/drivers/serial_at_cmd_app.c(58): warning: no previous prototype for function 'Checksum_u16' [-Wmissing-prototypes] -uint16_t Checksum_u16(uint8_t* pdata, uint32_t len) - ^ -include/drivers/serial_at_cmd_app.c(58): note: declare 'static' if the function is not intended to be used outside of this translation unit -uint16_t Checksum_u16(uint8_t* pdata, uint32_t len) -^ -static -include/drivers/serial_at_cmd_app.c(67): warning: no previous prototype for function 'SendComMap0' [-Wmissing-prototypes] -void SendComMap0(uint8_t data_length, uint8_t index)//<B1><ED>示<B3>晒<A6><B6><C1>取<B5>幕<D8>应<B0><FC> - ^ -include/drivers/serial_at_cmd_app.c(67): note: declare 'static' if the function is not intended to be used outside of this translation unit -void SendComMap0(uint8_t data_length, uint8_t index)//<B1><ED>示<B3>晒<A6><B6><C1>取<B5>幕<D8>应<B0><FC> -^ -static -include/drivers/serial_at_cmd_app.c(88): warning: no previous prototype for function 'SendComMap' [-Wmissing-prototypes] -void SendComMap(uint8_t data_length, uint8_t index)//<B1><ED>示<B3>晒<A6><B6><C1>取<B5>幕<D8>应<B0><FC> - ^ -include/drivers/serial_at_cmd_app.c(88): note: declare 'static' if the function is not intended to be used outside of this translation unit -void SendComMap(uint8_t data_length, uint8_t index)//<B1><ED>示<B3>晒<A6><B6><C1>取<B5>幕<D8>应<B0><FC> -^ -static -include/drivers/serial_at_cmd_app.c(116): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion] - result = flash_open(FLASH_ID0,NULL); - ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~ -include/drivers/serial_at_cmd_app.c(119): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion] - result = flash_write_nbytes(FLASH_ID0,APP_CONFIG_IAPFLAG_MAP,(uint8_t*)&tmp,2); - ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -include/drivers/serial_at_cmd_app.c(121): warning: illegal character encoding in string literal [-Winvalid-source-encoding] - Serial0PutString("<BD><F8><C8><EB><C9><FD><BC><B6>模式\r\n"); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -./include/drivers/mk_uart.h(70): note: expanded from macro 'Serial0PutString' -#define Serial0PutString(x) Serial0_PutString((uint8_t*)(x)) - ^ -include/drivers/serial_at_cmd_app.c(179): warning: 'break' will never be executed [-Wunreachable-code-break] - break; - ^~~~~ -include/drivers/serial_at_cmd_app.c(240): warning: unused variable 'checksum' [-Wunused-variable] - uint16_t checksum = 0; - ^ -include/drivers/serial_at_cmd_app.c(242): warning: unused variable 'pack_datalen' [-Wunused-variable] - static uint8_t pack_datalen = 0,pack_length = 0,pack_index = 0,pack_msgtype = 0,pack_cmd = CMD_READ; - ^ -include/drivers/serial_at_cmd_app.c(242): warning: unused variable 'pack_length' [-Wunused-variable] - static uint8_t pack_datalen = 0,pack_length = 0,pack_index = 0,pack_msgtype = 0,pack_cmd = CMD_READ; - ^ -include/drivers/serial_at_cmd_app.c(242): warning: unused variable 'pack_index' [-Wunused-variable] - static uint8_t pack_datalen = 0,pack_length = 0,pack_index = 0,pack_msgtype = 0,pack_cmd = CMD_READ; - ^ -include/drivers/serial_at_cmd_app.c(242): warning: unused variable 'pack_msgtype' [-Wunused-variable] - static uint8_t pack_datalen = 0,pack_length = 0,pack_index = 0,pack_msgtype = 0,pack_cmd = CMD_READ; - ^ -include/drivers/serial_at_cmd_app.c(242): warning: unused variable 'pack_cmd' [-Wunused-variable] - static uint8_t pack_datalen = 0,pack_length = 0,pack_index = 0,pack_msgtype = 0,pack_cmd = CMD_READ; - ^ -include/drivers/serial_at_cmd_app.c(42): warning: no previous extern declaration for non-static variable 'mUsart2ReceivePack_before' [-Wmissing-variable-declarations] -uint8_t mUsart2ReceivePack_before , mUsart2ReceivePack_now; - ^ -include/drivers/serial_at_cmd_app.c(42): note: declare 'static' if the variable is not intended to be used outside of this translation unit -uint8_t mUsart2ReceivePack_before , mUsart2ReceivePack_now; -^ -include/drivers/serial_at_cmd_app.c(42): warning: no previous extern declaration for non-static variable 'mUsart2ReceivePack_now' [-Wmissing-variable-declarations] -uint8_t mUsart2ReceivePack_before , mUsart2ReceivePack_now; - ^ -include/drivers/serial_at_cmd_app.c(42): note: declare 'static' if the variable is not intended to be used outside of this translation unit -uint8_t mUsart2ReceivePack_before , mUsart2ReceivePack_now; -^ -include/drivers/serial_at_cmd_app.c(47): warning: no previous extern declaration for non-static variable 'char_broadcast_data' [-Wmissing-variable-declarations] -char char_broadcast_data[80];//<B9>悴�<CA><FD><BE><DD> - ^ -include/drivers/serial_at_cmd_app.c(47): note: declare 'static' if the variable is not intended to be used outside of this translation unit -char char_broadcast_data[80];//<B9>悴�<CA><FD><BE><DD> -^ -include/drivers/serial_at_cmd_app.c(49): warning: no previous extern declaration for non-static variable 'Lora_TXD_bff' [-Wmissing-variable-declarations] -uint8_t Lora_TXD_bff[Lora_TXD_bff_MAX]; //lora<B7><A2><CB>突<BA><B4><E6><C7><F8> - ^ -include/drivers/serial_at_cmd_app.c(49): note: declare 'static' if the variable is not intended to be used outside of this translation unit -uint8_t Lora_TXD_bff[Lora_TXD_bff_MAX]; //lora<B7><A2><CB>突<BA><B4><E6><C7><F8> -^ -include/drivers/serial_at_cmd_app.c(50): warning: no previous extern declaration for non-static variable 'data_buff' [-Wmissing-variable-declarations] -uint16_t data_buff[data_buff_MAX][2]; //<BB><F9>站<CA><FD><BE>莼<BA><B4><E6><C7><F8> - ^ -include/drivers/serial_at_cmd_app.c(50): note: declare 'static' if the variable is not intended to be used outside of this translation unit -uint16_t data_buff[data_buff_MAX][2]; //<BB><F9>站<CA><FD><BE>莼<BA><B4><E6><C7><F8> -^ -include/drivers/serial_at_cmd_app.c(52): warning: no previous extern declaration for non-static variable 'char_mac' [-Wmissing-variable-declarations] -char char_mac[14],char_ssi[6]; - ^ -include/drivers/serial_at_cmd_app.c(52): note: declare 'static' if the variable is not intended to be used outside of this translation unit -char char_mac[14],char_ssi[6]; -^ -include/drivers/serial_at_cmd_app.c(52): warning: no previous extern declaration for non-static variable 'char_ssi' [-Wmissing-variable-declarations] -char char_mac[14],char_ssi[6]; - ^ -include/drivers/serial_at_cmd_app.c(52): note: declare 'static' if the variable is not intended to be used outside of this translation unit -char char_mac[14],char_ssi[6]; -^ -include/drivers/serial_at_cmd_app.c(54): warning: no previous extern declaration for non-static variable 'ssi_double' [-Wmissing-variable-declarations] -double ssi_double; - ^ -include/drivers/serial_at_cmd_app.c(54): note: declare 'static' if the variable is not intended to be used outside of this translation unit -double ssi_double; -^ -include/drivers/serial_at_cmd_app.c(55): warning: no previous extern declaration for non-static variable 'temp_16' [-Wmissing-variable-declarations] -uint16_t temp_16,temp_16_id,temp_16_distance,data_buff_start; - ^ -include/drivers/serial_at_cmd_app.c(55): note: declare 'static' if the variable is not intended to be used outside of this translation unit -uint16_t temp_16,temp_16_id,temp_16_distance,data_buff_start; -^ -include/drivers/serial_at_cmd_app.c(55): warning: no previous extern declaration for non-static variable 'temp_16_id' [-Wmissing-variable-declarations] -uint16_t temp_16,temp_16_id,temp_16_distance,data_buff_start; - ^ -include/drivers/serial_at_cmd_app.c(55): note: declare 'static' if the variable is not intended to be used outside of this translation unit -uint16_t temp_16,temp_16_id,temp_16_distance,data_buff_start; -^ -include/drivers/serial_at_cmd_app.c(55): warning: no previous extern declaration for non-static variable 'temp_16_distance' [-Wmissing-variable-declarations] -uint16_t temp_16,temp_16_id,temp_16_distance,data_buff_start; - ^ -include/drivers/serial_at_cmd_app.c(55): note: declare 'static' if the variable is not intended to be used outside of this translation unit -uint16_t temp_16,temp_16_id,temp_16_distance,data_buff_start; -^ -include/drivers/serial_at_cmd_app.c(55): warning: no previous extern declaration for non-static variable 'data_buff_start' [-Wmissing-variable-declarations] -uint16_t temp_16,temp_16_id,temp_16_distance,data_buff_start; - ^ -include/drivers/serial_at_cmd_app.c(55): note: declare 'static' if the variable is not intended to be used outside of this translation unit -uint16_t temp_16,temp_16_id,temp_16_distance,data_buff_start; -^ -31 warnings generated. -compiling serial_at_cmd_app.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(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; -^ -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... -compiling mk_uwb.c... -compiling mk_uart.c... -compiling board.c... -compiling mk_trace.c... -compiling pin_config.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}; - ^ -include/main/main.c(57): note: declare 'static' if the variable is not intended to be used outside of this translation unit -uint8_t trx_buf[10] = {0}; -^ -include/main/main.c(67): warning: no previous extern declaration for non-static variable 'test_uart_cfg' [-Wmissing-variable-declarations] -struct UART_CFG_T test_uart_cfg = - ^ -include/main/main.c(67): note: declare 'static' if the variable is not intended to be used outside of this translation unit -struct UART_CFG_T test_uart_cfg = -^ -include/main/main.c(106): warning: no previous extern declaration for non-static variable 'state5v' [-Wmissing-variable-declarations] -uint8_t state5v = 1; - ^ -include/main/main.c(106): note: declare 'static' if the variable is not intended to be used outside of this translation unit -uint8_t state5v = 1; -^ -include/main/main.c(107): warning: no previous extern declaration for non-static variable 'bat_percent' [-Wmissing-variable-declarations] -uint8_t bat_percent=0,g_start_send_flag=1; - ^ -include/main/main.c(107): note: declare 'static' if the variable is not intended to be used outside of this translation unit -uint8_t bat_percent=0,g_start_send_flag=1; -^ -include/main/main.c(107): warning: no previous extern declaration for non-static variable 'g_start_send_flag' [-Wmissing-variable-declarations] -uint8_t bat_percent=0,g_start_send_flag=1; - ^ -include/main/main.c(107): note: declare 'static' if the variable is not intended to be used outside of this translation unit -uint8_t bat_percent=0,g_start_send_flag=1; -^ -include/main/main.c(165): warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] - bat_percent = ((fVoltage_mv - 3300) /8); - ~ ~~~~~~~~~~~~~~~~~~~~~^~ -include/main/main.c(178): warning: implicit conversion loses integer precision: 'uint16_t' (aka 'unsigned short') to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] -group_id=g_com_map[GROUP_ID]; - ~^~~~~~~~~~~~~~~~~~~ -include/main/main.c(180): warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion] -tag_frequence=1000/g_com_map[COM_INTERVAL]; - ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ -include/main/main.c(182): warning: illegal character encoding in string literal [-Winvalid-source-encoding] -LOG_INFO(TRACE_MODULE_APP,"<C9>璞窱D: %x .\r\n",dev_id); - ^~~~ -./include/drivers\mk_trace.h(170): 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(132): note: expanded from macro 'TRACE' -#define TRACE(module, level, str, ...) trace_printf((module), (level), (str), ##__VA_ARGS__) - ^~~ -include/main/main.c(183): warning: illegal character encoding in string literal [-Winvalid-source-encoding] -LOG_INFO(TRACE_MODULE_APP,"<B9>碳<FE><B0>姹�:UWB-<B1><EA>签 V%d.%d. \r\n",g_com_map[VERSION]>>8,g_com_map[VERSION]&0xff); - ^~~~~~~~~~~~ ~~~~~~~~ -./include/drivers\mk_trace.h(170): 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(132): note: expanded from macro 'TRACE' -#define TRACE(module, level, str, ...) trace_printf((module), (level), (str), ##__VA_ARGS__) - ^~~ -include/main/main.c(226): warning: implicit declaration of function 'reset_cause_get' is invalid in C99 [-Wimplicit-function-declaration] - reset_cause_get(); - ^ -include/main/main.c(227): warning: implicit declaration of function 'reset_cause_clear' is invalid in C99 [-Wimplicit-function-declaration] - reset_cause_clear(); - ^ -include/main/main.c(65): warning: no previous extern declaration for non-static variable 'enable_sleep_count' [-Wmissing-variable-declarations] -uint8_t enable_sleep_count,sleep_flag; - ^ -include/main/main.c(65): note: declare 'static' if the variable is not intended to be used outside of this translation unit -uint8_t enable_sleep_count,sleep_flag; -^ -include/main/main.c(65): warning: no previous extern declaration for non-static variable 'sleep_flag' [-Wmissing-variable-declarations] -uint8_t enable_sleep_count,sleep_flag; - ^ -include/main/main.c(65): note: declare 'static' if the variable is not intended to be used outside of this translation unit -uint8_t enable_sleep_count,sleep_flag; -^ -include/main/main.c(108): warning: no previous extern declaration for non-static variable 'fVoltage_mv' [-Wmissing-variable-declarations] -int16_t fVoltage_mv; - ^ -include/main/main.c(108): note: declare 'static' if the variable is not intended to be used outside of this translation unit -int16_t fVoltage_mv; -^ -include/main/main.c(112): warning: no previous extern declaration for non-static variable 'tag_frequence' [-Wmissing-variable-declarations] -uint8_t tag_frequence; - ^ -include/main/main.c(112): note: declare 'static' if the variable is not intended to be used outside of this translation unit -uint8_t tag_frequence; -^ -include/main/main.c(91): warning: unused variable 'sample' [-Wunused-variable] -static uint32_t sample[NUM_SAMPLES] = {0}; - ^ -include/main/main.c(92): warning: unused variable 'usr_adc_cfg' [-Wunused-variable] -static struct ADC_CFG_T usr_adc_cfg = { - ^ -include/main/main.c(146): warning: unused function 'adc_callback' [-Wunused-function] -static void adc_callback(void *data, uint32_t number) - ^ -include/main/main.c(170): warning: unused function 'voltage_input_handler' [-Wunused-function] -static void voltage_input_handler(enum IO_PIN_T pin) - ^ -20 warnings generated. -compiling main.c... -compiling wsf_heap.c... -compiling wsf_bufio.c... -compiling wsf_msg.c... -compiling wsf_nvm.c... -compiling wsf_os.c... -compiling wsf_queue.c... -compiling pal_flash.c... -compiling wsf_trace.c... -compiling pal_sys.c... -compiling crc.c... -compiling wsf_timer.c... -compiling pal_uart.c... +Build target 'MK8000 Release' uwb_tag_.c(8): warning: In file included from... ./dw_app.h(45): warning: no newline at end of file [-Wnewline-eof] #endif @@ -1015,14 +417,13 @@ ^ 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=48824 RO-data=7260 RW-data=1272 ZI-data=25020 +Program Size: Code=48780 RO-data=7268 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), 182 Warning(s). +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), 76 Warning(s). <h2>Software Packages used:</h2> @@ -1036,7 +437,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:10 +Build Time Elapsed: 00:00:05 </pre> </body> </html> -- Gitblit v1.9.3