µVision Build Log
Tool Versions:
IDE-Version: ¦ÌVision V5.30.0.0
Copyright (C) 2020 ARM Ltd and ARM Germany GmbH. All rights reserved.
License Information: qweq xookko@outlook.com, qweqeq, LIC=47GU5-GD9Z0-FWK2N-Y9XQ0-MH3EA-KZ8D2
Tool Versions:
Toolchain: MDK-ARM Plus Version: 5.30.0.0
Toolchain Path: d:\Keil_v5\ARM\ARMCLANG\Bin
C Compiler: ArmClang.exe V6.14
Assembler: Armasm.exe V6.14
Linker/Locator: ArmLink.exe V6.14
Library Manager: ArmAr.exe V6.14
Hex Converter: FromElf.exe V6.14
CPU DLL: SARMCM3.DLL V5.30.0.0
Dialog DLL: DARMCM1.DLL V1.19.3.0
Target DLL: Segger\JL2CM3.dll V2.99.38.0
Dialog DLL: TARMCM1.DLL V1.14.2.0
Project:
D:\project_chen\ChinaUWBProject_URT no UWB\ChinaUWBProject\keil\uwb_simple_example.uvprojx
Project File Date: 07/04/2025
Output:
*** Using Compiler 'V6.14', folder: 'd:\Keil_v5\ARM\ARMCLANG\Bin'
Build target 'MK8000 Release'
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(72): 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(72): 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(97): warning: illegal character encoding in string literal [-Winvalid-source-encoding]
ASSERT(status, "WDT TIMEOUTλ");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/drivers\mk_trace.h(145): note: expanded from macro 'ASSERT'
trace_assert_dump(__FILE__, __FUNCTION__, __LINE__, str, ##__VA_ARGS__)
^~~
include/main/main.c(114): warning: no previous extern declaration for non-static variable 'app_wdt_cfg' [-Wmissing-variable-declarations]
struct WDT_CFG_T app_wdt_cfg = {
^
include/main/main.c(114): note: declare 'static' if the variable is not intended to be used outside of this translation unit
struct WDT_CFG_T app_wdt_cfg = {
^
include/main/main.c(121): warning: no previous extern declaration for non-static variable 'state5v' [-Wmissing-variable-declarations]
uint8_t state5v = 0;
^
include/main/main.c(121): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t state5v = 0;
^
include/main/main.c(122): 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(122): 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(122): 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(122): 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(136): warning: no previous extern declaration for non-static variable 'sleep_limit_time' [-Wmissing-variable-declarations]
uint8_t sleep_limit_time=1;
^
include/main/main.c(136): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t sleep_limit_time=1;
^
include/main/main.c(172): warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion]
bat_percent = ((fVoltage_mv - 3000) /8);
~ ~~~~~~~~~~~~~~~~~~~~~^~
include/main/main.c(179): warning: unused variable 'lost_jumpcount' [-Wunused-variable]
static uint8_t lost_jumpcount=0;
^
include/main/main.c(226): 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(240): 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(242): warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion]
tag_frequency=1000/g_com_map[COM_INTERVAL];
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
include/main/main.c(244): warning: illegal character encoding in string literal [-Winvalid-source-encoding]
LOG_INFO(TRACE_MODULE_APP,"豸ID: %x .\r\n",dev_id);
^~~~
./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__)
^~~
include/main/main.c(245): warning: illegal character encoding in string literal [-Winvalid-source-encoding]
LOG_INFO(TRACE_MODULE_APP,"̼汾:UWB-Ⲽű V%d.%d. \r\n",g_com_map[VERSION]>>8,g_com_map[VERSION]&0xff);
^~~~~~~~~~~~ ~~~~ ~~~~~~~~~~~~ ~~~~
./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__)
^~~
include/main/main.c(291): warning: implicit declaration of function 'reset_cause_get' is invalid in C99 [-Wimplicit-function-declaration]
reset_cause_get();
^
include/main/main.c(292): warning: implicit declaration of function 'reset_cause_clear' is invalid in C99 [-Wimplicit-function-declaration]
reset_cause_clear();
^
include/main/main.c(335): warning: implicit declaration of function 'Anchor_uwb_aoa_square_init' is invalid in C99 [-Wimplicit-function-declaration]
Anchor_uwb_aoa_square_init();
^
include/main/main.c(360): warning: implicit declaration of function 'LoraUp_Poll' is invalid in C99 [-Wimplicit-function-declaration]
LoraUp_Poll();
^
include/main/main.c(68): 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(68): 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(68): 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(68): 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(69): warning: no previous extern declaration for non-static variable 'battery_get_count' [-Wmissing-variable-declarations]
uint32_t battery_get_count;
^
include/main/main.c(69): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint32_t battery_get_count;
^
include/main/main.c(71): warning: no previous extern declaration for non-static variable 'reboot_num' [-Wmissing-variable-declarations]
uint32_t reboot_num;
^
include/main/main.c(71): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint32_t reboot_num;
^
include/main/main.c(123): warning: no previous extern declaration for non-static variable 'fVoltage_mv' [-Wmissing-variable-declarations]
int16_t fVoltage_mv;
^
include/main/main.c(123): 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(128): warning: no previous extern declaration for non-static variable 'tag_frequency' [-Wmissing-variable-declarations]
uint8_t tag_frequency;
^
include/main/main.c(128): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t tag_frequency;
^
include/main/main.c(247): warning: no previous extern declaration for non-static variable 'test1' [-Wmissing-variable-declarations]
uint8_t test1;
^
include/main/main.c(247): note: declare 'static' if the variable is not intended to be used outside of this translation unit
uint8_t test1;
^
include/main/main.c(100): warning: unused variable 'sample' [-Wunused-variable]
static uint32_t sample[NUM_SAMPLES] = {0};
^
include/main/main.c(101): warning: unused variable 'usr_adc_cfg' [-Wunused-variable]
static struct ADC_CFG_T usr_adc_cfg = {
^
include/main/main.c(207): warning: unused function 'adc_callback' [-Wunused-function]
static void adc_callback(void *data, uint32_t number)
^
include/main/main.c(232): warning: unused function 'voltage_input_handler' [-Wunused-function]
static void voltage_input_handler(enum IO_PIN_T pin)
^
30 warnings generated.
compiling main.c...
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(401): warning: no previous prototype for function 'FindNearBasePos' [-Wmissing-prototypes]
uint8_t FindNearBasePos(uint16_t baseid)//ѰҵǰбеĻվ
^
uwb_tag_.c(401): note: declare 'static' if the function is not intended to be used outside of this translation unit
uint8_t FindNearBasePos(uint16_t baseid)//ѰҵǰбеĻվ
^
static
uwb_tag_.c(411): warning: non-void function does not return a value in all control paths [-Wreturn-type]
}
^
uwb_tag_.c(435): warning: unused variable 'temp' [-Wunused-variable]
uint16_t i,j=0,temp[TAG_NUM_IN_SYS];
^
uwb_tag_.c(456): 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(458): 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(463): 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(464): 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(465): 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(473): 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(487): warning: variable 'temp' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
if(taglist_total_numģʽ,ļС%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(584): warning: no previous prototype for function 'Uwb_Update' [-Wmissing-prototypes]
void Uwb_Update(void)
^
uwb_tag_.c(584): 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(625): 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(618): warning: 'break' will never be executed [-Wunreachable-code-break]
break;
^~~~~
uwb_tag_.c(659): 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(659): 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(664): 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);//
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
uwb_tag_.c(678): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
tempflag=uwb_tx(uwb_sendbuffer,sizeof(uwb_sendbuffer),1,poll_tx_en_start_u32);//
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
uwb_tag_.c(694): 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(714): warning: implicit declaration of function 'IdleTask' is invalid in C99 [-Wimplicit-function-declaration]
IdleTask();
^
uwb_tag_.c(727): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
tempflag=uwb_rx(0, 0, RESP_RX_TIMEOUT_US);//ܲ0ʱ
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
uwb_tag_.c(737): 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);//ǰݲ뵱ǰеλ
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
uwb_tag_.c(741): 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(764): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
tempflag=uwb_rx(0, 0, RESP_RX_TIMEOUT_US);//ܲ0ʱ
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
uwb_tag_.c(797): warning: non-void function does not return a value [-Wreturn-type]
}
^
uwb_tag_.c(799): warning: no previous prototype for function 'UpdateCRC16' [-Wmissing-prototypes]
uint16_t UpdateCRC16(uint16_t crcIn, uint8_t byte)
^
uwb_tag_.c(799): 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(836): 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(838): 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(839): 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(829): warning: no previous prototype for function 'Cal_CRC16' [-Wmissing-prototypes]
uint16_t Cal_CRC16(const uint8_t* data, uint32_t size)
^
uwb_tag_.c(829): 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(879): warning: implicit declaration of function 'Checksum_u16' is invalid in C99 [-Wimplicit-function-declaration]
crc16=Checksum_u16(send_lora_data,6);
^
uwb_tag_.c(879): 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(885): 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);//
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
uwb_tag_.c(891): 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(913): 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(917): 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(918): warning: illegal character encoding in string literal [-Winvalid-source-encoding]
LOG_INFO(TRACE_MODULE_APP, "%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(921): 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);//
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
uwb_tag_.c(928): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
tempflag=uwb_rx(0,0, 50000);
~^~~~~~~~~~~~~~~~~~
uwb_tag_.c(940): 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(942): 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(943): warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses]
while(!result12==0)
^ ~~
uwb_tag_.c(943): note: add parentheses after the '!' to evaluate the comparison first
while(!result12==0)
^
( )
uwb_tag_.c(943): note: add parentheses around left hand side expression to silence this warning
while(!result12==0)
^
( )
uwb_tag_.c(945): 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(980): 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(984): warning: illegal character encoding in string literal [-Winvalid-source-encoding]
LOG_INFO(TRACE_MODULE_APP, "Ú·Ò»\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(986): 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);//
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
uwb_tag_.c(993): 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(994): 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(864): warning: no previous prototype for function 'LoraUp_Poll' [-Wmissing-prototypes]
void LoraUp_Poll(void)
^
uwb_tag_.c(864): 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(971): 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; //ǰб
^
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; //ǰб
^
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; //ǰб
^
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; //ǰб
^
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]; //ÿǩʱ
^
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]; //ÿǩʱ
^
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; //ǩͱǩ