WXK
2023-03-02 b045ec853979f7a1b359dc022730b9429f04ac3d
完善uwb升级功能,版本号v1.49
已修改6个文件
48930 ■■■■ 文件已修改
MDK-ARM/JLinkLog.txt 48728 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MDK-ARM/L051/L051.build_log.htm 194 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MDK-ARM/L051/L051.hex 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
MDK-ARM/L051/L051.htm 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
MDK-ARM/L051/L051_L051.dep 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Src/main.c 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
MDK-ARM/JLinkLog.txt
文件太大
MDK-ARM/L051/L051.build_log.htm
@@ -26,8 +26,196 @@
<h2>Output:</h2>
*** Using Compiler 'V5.06 update 6 (build 750)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Build target 'L051'
"L051\L051.axf" - 0 Error(s), 0 Warning(s).
Rebuild target 'L051'
assembling startup_stm32l051xx.s...
compiling deca_params_init.c...
compiling deca_range_tables.c...
compiling serial_at_cmd_app.c...
..\Src\application\serial_at_cmd_app.c(11): warning:  #47-D: incompatible redefinition of macro "EUART_RX_BUF_SIZE"  (declared at line 40 of "..\Src\OnChipDevices\Usart.h")
  #define EUART_RX_BUF_SIZE 100
..\Src\application\serial_at_cmd_app.c(52): warning:  #223-D: function "FLASH_Prepare" declared implicitly
          result = FLASH_Prepare(0x8004A38, 128);
..\Src\application\serial_at_cmd_app.c(54): warning:  #223-D: function "FLASH_Write" declared implicitly
              result = FLASH_Write(0x8004A38, (const uint8_t*)&tmp, 2);
..\Src\application\serial_at_cmd_app.c(59): warning:  #223-D: function "delay_ms" declared implicitly
          delay_ms(100);
..\Src\application\serial_at_cmd_app.c(69): warning:  #223-D: function "delay_ms" declared implicitly
          delay_ms(100);
..\Src\application\serial_at_cmd_app.c(76): warning:  #223-D: function "delay_ms" declared implicitly
          delay_ms(100);
..\Src\application\serial_at_cmd_app.c(112): warning:  #223-D: function "delay_ms" declared implicitly
                      delay_ms(100);
..\Src\application\serial_at_cmd_app.c: 7 warnings, 0 errors
compiling Flash.c...
..\Src\OnChipDevices\Flash.h(3): warning:  #47-D: incompatible redefinition of macro "FLASH_SIZE"  (declared at line 125 of "../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_hal_flash.h")
  #define FLASH_SIZE               (uint32_t)0x10000
..\Src\OnChipDevices\Flash.c: 1 warning, 0 errors
compiling global_param.c...
..\Src\OnChipDevices\Flash.h(3): warning:  #47-D: incompatible redefinition of macro "FLASH_SIZE"  (declared at line 125 of "../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_hal_flash.h")
  #define FLASH_SIZE               (uint32_t)0x10000
..\Src\application\global_param.c(17): warning:  #223-D: function "printf" declared implicitly
          printf("杩涘叆鍗囩骇妯″紡\r\n");
..\Src\application\global_param.c(20): warning:  #223-D: function "delay_ms" declared implicitly
          delay_ms(100);
..\Src\application\global_param.c(49): warning:  #68-D: integer conversion resulted in a change of sign
          g_com_map[DIST_OFFSET]=-31;
..\Src\application\global_param.c: 4 warnings, 0 errors
compiling stm32l0xx_it.c...
../Src/stm32l0xx_it.c(161): warning:  #223-D: function "UsartInit" declared implicitly
          UsartInit();
../Src/stm32l0xx_it.c: 1 warning, 0 errors
compiling ADC.c...
..\Src\OnChipDevices\ADC.c(11): warning:  #940-D: missing return statement at end of non-void function "Get_ADC_Value"
  }
..\Src\OnChipDevices\ADC.c(69): warning:  #1-D: last line of file ends without a newline
  }
..\Src\OnChipDevices\ADC.c: 2 warnings, 0 errors
compiling CRC.c...
..\Src\application\CRC.c(44): warning:  #1-D: last line of file ends without a newline
  }
..\Src\application\CRC.c: 1 warning, 0 errors
compiling dw_driver.c...
..\Src\ExternalDevices\dw_driver.c(9): warning:  #223-D: function "delay_us" declared implicitly
      delay_us(i);
..\Src\ExternalDevices\dw_driver.c: 1 warning, 0 errors
compiling Usart.c...
compiling stm32l0xx_hal_adc_ex.c...
compiling Spi.c...
..\Src\OnChipDevices\Spi.c(43): warning:  #177-D: variable "stat"  was declared but never referenced
      decaIrqStatus_t  stat ;
..\Src\OnChipDevices\Spi.c(94): warning:  #177-D: variable "stat"  was declared but never referenced
      decaIrqStatus_t  stat ;
..\Src\OnChipDevices\Spi.c: 2 warnings, 0 errors
compiling stm32l0xx_hal_msp.c...
compiling stm32l0xx_hal_adc.c...
compiling main.c...
..\Drivers\ExternlDrivers\lis3dh_driver.h(67): warning:  #1295-D: Deprecated declaration LIS3DH_ENTER_STY_Init - give arg types
  void LIS3DH_ENTER_STY_Init();
..\Src\OnChipDevices\Flash.h(3): warning:  #47-D: incompatible redefinition of macro "FLASH_SIZE"  (declared at line 125 of "../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_hal_flash.h")
  #define FLASH_SIZE               (uint32_t)0x10000
../Src/main.c(117): warning:  #177-D: variable "current_time"  was declared but never referenced
  {u16 current_time;
../Src/main.c(161): warning:  #177-D: variable "lptime"  was declared but never referenced
    int32_t lpcount,lptime,target_time;
../Src/main.c(161): warning:  #177-D: variable "target_time"  was declared but never referenced
    int32_t lpcount,lptime,target_time;
../Src/main.c(259): warning:  #186-D: pointless comparison of unsigned integer with zero
          if(module_power<0)
../Src/main.c(269): warning:  #223-D: function "printf" declared implicitly
      printf("鏍囩ID: %d .\r\n",dev_id);
../Src/main.c(212): warning:  #177-D: variable "temp"  was declared but never referenced
  {    float temp;
../Src/main.c(213): warning:  #177-D: variable "temp2"  was declared but never referenced
      uint16_t temp2;
../Src/main.c(214): warning:  #177-D: variable "i"  was declared but never referenced
      uint16_t i;
../Src/main.c(313): warning:  #177-D: variable "bat_count"  was declared but never referenced
      static uint16_t bat_count = 0;
../Src/main.c(400): warning:  #177-D: variable "blink_count"  was declared but never referenced
      { static uint16_t blink_count=0;
../Src/main.c(745): warning:  #223-D: function "Usart1InitVariables" declared implicitly
      Usart1InitVariables();
../Src/main.c(278): warning:  #177-D: function "SystemPower_Config"  was declared but never referenced
  static void SystemPower_Config(void)
../Src/main.c: 14 warnings, 0 errors
compiling lis3dh_driver.c...
..\Drivers\ExternlDrivers\lis3dh_driver.h(67): warning:  #1295-D: Deprecated declaration LIS3DH_ENTER_STY_Init - give arg types
  void LIS3DH_ENTER_STY_Init();
..\Drivers\ExternlDrivers\lis3dh_driver.c(83): warning:  #177-D: variable "lisid"  was declared but never referenced
      uint8_t lisid,response;
..\Drivers\ExternlDrivers\lis3dh_driver.c(83): warning:  #177-D: variable "response"  was declared but never referenced
      uint8_t lisid,response;
..\Drivers\ExternlDrivers\lis3dh_driver.c(121): warning:  #177-D: variable "lisid"  was declared but never referenced
      uint8_t lisid,response;
..\Drivers\ExternlDrivers\lis3dh_driver.c(121): warning:  #177-D: variable "response"  was declared but never referenced
      uint8_t lisid,response;
..\Drivers\ExternlDrivers\lis3dh_driver.c(122): warning:  #177-D: variable "lisidtemp"  was declared but never referenced
      uint8_t lisidtemp;
..\Drivers\ExternlDrivers\lis3dh_driver.c(160): warning:  #177-D: variable "angle_x"  was declared but never referenced
      float angle_x, angle_y, angle_z, angle_xyz;
..\Drivers\ExternlDrivers\lis3dh_driver.c(160): warning:  #177-D: variable "angle_y"  was declared but never referenced
      float angle_x, angle_y, angle_z, angle_xyz;
..\Drivers\ExternlDrivers\lis3dh_driver.c(160): warning:  #177-D: variable "angle_xyz"  was declared but never referenced
      float angle_x, angle_y, angle_z, angle_xyz;
..\Drivers\ExternlDrivers\lis3dh_driver.c(161): warning:  #177-D: variable "data"  was declared but never referenced
      int8_t data[6];
..\Drivers\ExternlDrivers\lis3dh_driver.c(162): warning:  #177-D: variable "i"  was declared but never referenced
      uint8_t i;
..\Drivers\ExternlDrivers\lis3dh_driver.c(163): warning:  #550-D: variable "lisid"  was set but never used
      uint8_t lisid,response;
..\Drivers\ExternlDrivers\lis3dh_driver.c: 12 warnings, 0 errors
compiling dw_app.c...
..\Src\application\dw_app.c(247): warning:  #940-D: missing return statement at end of non-void function "FindNearBasePos"
  }
..\Src\application\dw_app.c(255): warning:  #223-D: function "Get_ADC_Value" declared implicitly
          temp_adc=Get_ADC_Value();
..\Src\application\dw_app.c(374): warning:  #175-D: subscript out of range
                                    memcpy(&tx_near_msg[MESSAGE_PARAREPLY_IDX+SENDANCPARA_LEN],&calCRC,2);
..\Src\application\dw_app.c(630): warning:  #223-D: function "delay_ms" declared implicitly
                          delay_ms(100);
..\Src\application\dw_app.c(314): warning:  #177-D: variable "start_poll"  was declared but never referenced
      u32 start_poll;
..\Src\application\dw_app.c(315): warning:  #177-D: variable "getsync_flag"  was declared but never referenced
      u8 i,j,getsync_flag=0,timeout,flag_ancreadpara=0;
..\Src\application\dw_app.c(655): warning:  #223-D: function "delay_us" declared implicitly
      delay_us(100);
..\Src\application\dw_app.c(659): warning:  #223-D: function "Get_VDDVlotage" declared implicitly
      bat_percent=Get_VDDVlotage();
..\Src\application\dw_app.c(97): warning:  #177-D: variable "poll_rx_ts"  was declared but never referenced
  static uint64_t poll_rx_ts;
..\Src\application\dw_app.c(98): warning:  #177-D: variable "resp_tx_ts"  was declared but never referenced
  static uint64_t resp_tx_ts;
..\Src\application\dw_app.c(99): warning:  #177-D: variable "final_rx_ts"  was declared but never referenced
  static uint64_t final_rx_ts;
..\Src\application\dw_app.c(100): warning:  #177-D: variable "tof"  was declared but never referenced
  static double tof;
..\Src\application\dw_app.c(151): warning:  #177-D: function "final_msg_get_ts"  was declared but never referenced
  static void final_msg_get_ts(const uint8_t *ts_field, uint32_t *ts)
..\Src\application\dw_app.c: 13 warnings, 0 errors
compiling deca_device.c...
..\Src\decadriver\deca_device.c(1532): warning:  #223-D: function "delay_ms" declared implicitly
      deca_sleep(10);
..\Src\decadriver\deca_device.c(1617): warning:  #223-D: function "delay_ms" declared implicitly
          deca_sleep(1);
..\Src\decadriver\deca_device.c(1822): warning:  #223-D: function "delay_ms" declared implicitly
      deca_sleep(1);
..\Src\decadriver\deca_device.c(1979): warning:  #223-D: function "delay_ms" declared implicitly
          deca_sleep(5);
..\Src\decadriver\deca_device.c(2045): warning:  #223-D: function "delay_ms" declared implicitly
      deca_sleep(1); // Allow time for code to upload (should take up to 120 us)
..\Src\decadriver\deca_device.c(2841): warning:  #177-D: variable "stat"  was declared but never referenced
      decaIrqStatus_t stat ;
..\Src\decadriver\deca_device.c(3063): warning:  #177-D: variable "stat"  was declared but never referenced
      decaIrqStatus_t stat ;
..\Src\decadriver\deca_device.c(3205): warning:  #223-D: function "delay_ms" declared implicitly
      deca_sleep(1);
..\Src\decadriver\deca_device.c(3395): warning:  #223-D: function "delay_ms" declared implicitly
          deca_sleep(1); // If using PLL clocks(and fast SPI rate) then this sleep is needed
..\Src\decadriver\deca_device.c: 9 warnings, 0 errors
compiling stm32l0xx_hal_flash_ramfunc.c...
compiling stm32l0xx_hal_i2c_ex.c...
compiling stm32l0xx_hal_pwr_ex.c...
compiling stm32l0xx_hal_flash_ex.c...
compiling stm32l0xx_hal_dma.c...
compiling stm32l0xx_hal_rcc_ex.c...
compiling stm32l0xx_hal_gpio.c...
compiling stm32l0xx_hal.c...
compiling stm32l0xx_hal_cortex.c...
compiling stm32l0xx_hal_flash.c...
compiling stm32l0xx_hal_pwr.c...
compiling stm32l0xx_hal_rcc.c...
compiling stm32l0xx_hal_lptim.c...
compiling stm32l0xx_hal_i2c.c...
compiling stm32l0xx_hal_spi.c...
compiling stm32l0xx_hal_tim.c...
compiling stm32l0xx_hal_tim_ex.c...
compiling stm32l0xx_hal_uart_ex.c...
compiling system_stm32l0xx.c...
compiling stm32l0xx_hal_uart.c...
linking...
Program Size: Code=20912 RO-data=908 RW-data=280 ZI-data=7584
FromELF: creating hex file...
"L051\L051.axf" - 0 Error(s), 67 Warning(s).
<h2>Software Packages used:</h2>
@@ -50,7 +238,7 @@
<h2>Collection of Component Files used:</h2>
   * Component: ARM::CMSIS:CORE:5.4.0
Build Time Elapsed:  00:00:00
Build Time Elapsed:  00:00:04
</pre>
</body>
</html>
MDK-ARM/L051/L051.hex
@@ -890,7 +890,7 @@
:10878000440D0020CE000020FFFF010070470000D4
:10879000FEB547494548086001F0C6FC454800F071
:1087A000E9F8454C60834348801C00F0E3F8A0835F
:1087B0004048001D00F0DEF8E083FF203F4D3030E0
:1087B0004048001D00F0DEF8E083FF203F4D3230DE
:1087C000688028464030017921720291E88E3C4948
:1087D000C0B208700190E88F6071A88FA071A87A6C
:1087E000E070A8880090E0622889FCF77BFF354A9A
MDK-ARM/L051/L051.htm
@@ -3,7 +3,7 @@
<title>Static Call Graph - [L051\L051.axf]</title></head>
<body><HR>
<H1>Static Call Graph for image L051\L051.axf</H1><HR>
<BR><P>#&#060CALLGRAPH&#062# ARM Linker, 5060750: Last Updated: Tue Feb 28 16:14:50 2023
<BR><P>#&#060CALLGRAPH&#062# ARM Linker, 5060750: Last Updated: Thu Mar 02 09:22:37 2023
<BR><P>
<H3>Maximum Stack Usage =        224 bytes + Unknown(Cycles, Untraceable Function Pointers)</H3><H3>
Call chain for Maximum Stack Depth:</H3>
MDK-ARM/L051/L051_L051.dep
@@ -526,7 +526,7 @@
I (..\Src\OnChipDevices\ADC.h)(0x6357A5FC)
I (..\Src\algorithm\TrackingDiff.h)(0x6357A5FC)
I (..\Src\application\global_param.h)(0x63F588EF)
F (../Src/main.c)(0x63FDB7D7)(--c99 -c --cpu Cortex-M0+ -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32L0xx_HAL_Driver/Inc -I ../Drivers/STM32L0xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32L0xx/Include -I ../Drivers/CMSIS/Include -I ..\Drivers\ExternlDrivers -I ..\Src\decadriver -I ..\Src\ExternalDevices -I ..\Src\OnChipDevices -I ..\Src\algorithm -I ..\Src\application -I.\RTE\_L051 -IC:\Keil_v5\ARM\PACK\ARM\CMSIS\5.7.0\CMSIS\Core\Include -IC:\Keil_v5\ARM\PACK\Keil\STM32L0xx_DFP\2.2.0\Drivers\CMSIS\Device\ST\STM32L0xx\Include -D__UVISION_VERSION="530" -D_RTE_ -DSTM32L051xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32L051xx -o l051\main.o --omf_browse l051\main.crf --depend l051\main.d)
F (../Src/main.c)(0x63FFFA56)(--c99 -c --cpu Cortex-M0+ -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Inc -I ../Drivers/STM32L0xx_HAL_Driver/Inc -I ../Drivers/STM32L0xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32L0xx/Include -I ../Drivers/CMSIS/Include -I ..\Drivers\ExternlDrivers -I ..\Src\decadriver -I ..\Src\ExternalDevices -I ..\Src\OnChipDevices -I ..\Src\algorithm -I ..\Src\application -I.\RTE\_L051 -IC:\Keil_v5\ARM\PACK\ARM\CMSIS\5.7.0\CMSIS\Core\Include -IC:\Keil_v5\ARM\PACK\Keil\STM32L0xx_DFP\2.2.0\Drivers\CMSIS\Device\ST\STM32L0xx\Include -D__UVISION_VERSION="530" -D_RTE_ -DSTM32L051xx -D_RTE_ -DUSE_HAL_DRIVER -DSTM32L051xx -o l051\main.o --omf_browse l051\main.crf --depend l051\main.d)
I (../Inc/main.h)(0x63F58785)
I (../Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_hal.h)(0x6357A5FB)
I (../Inc/stm32l0xx_hal_conf.h)(0x63F58785)
Src/main.c
@@ -218,7 +218,7 @@
    hardware_pici = STMFLASH_ReadHalfWord(FLASH_HARDWARE_VERSION_MAP+2);
    hardware_type = STMFLASH_ReadHalfWord(FLASH_HARDWARE_VERSION_MAP+4);
    //deca_sleep(1000);
    g_com_map[VERSION] = (1<<8)|47;
    g_com_map[VERSION] = (1<<8)|49;
    
    #ifdef DEBUG_MODE
//    g_com_map[GROUP_ID]=21;