From 2d43068c500d6420b0864eebfcfcdd0943c5738c Mon Sep 17 00:00:00 2001
From: chen <15335560115@163.com>
Date: 星期三, 02 四月 2025 18:08:01 +0800
Subject: [PATCH] 修改PA驱动代码,成功驱动pa并且修复串口读取bug

---
 keil/Objects/uwb_simple_example.build_log.htm |  154 +++------------------------------------------------
 1 files changed, 9 insertions(+), 145 deletions(-)

diff --git a/keil/Objects/uwb_simple_example.build_log.htm b/keil/Objects/uwb_simple_example.build_log.htm
index 407ff49..ec74541 100644
--- a/keil/Objects/uwb_simple_example.build_log.htm
+++ b/keil/Objects/uwb_simple_example.build_log.htm
@@ -5,11 +5,11 @@
 <h2>Tool Versions:</h2>
 IDE-Version: μVision V5.30.0.0
 Copyright (C) 2020 ARM Ltd and ARM Germany GmbH. All rights reserved.
-License Information: WXK WXK, WXK, LIC=LSNXV-PQMLL-2Z8W4-FC0XG-4GU90-PI7N8
+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:  C:\Keil_v5\ARM\ARMCLANG\Bin
+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
@@ -21,150 +21,14 @@
 Dialog DLL:      TARMCM1.DLL V1.14.2.0
  
 <h2>Project:</h2>
-C:\git-mk8000\ChinaUWBProject - tx\keil\uwb_simple_example.uvprojx
-Project File Date:  12/25/2024
+D:\project_chen\ChinaUWBProject_URT no UWB\ChinaUWBProject\keil\uwb_simple_example.uvprojx
+Project File Date:  03/14/2025
 
 <h2>Output:</h2>
-*** Using Compiler 'V6.14', folder: 'C:\Keil_v5\ARM\ARMCLANG\Bin'
+*** 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<A3><AC><B3><CC><D0><F2><B8><B4>位");
-                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-./include/drivers\mk_trace.h(144): 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 = 1;
-        ^
-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 = 1;
-^
-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(171): 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(178): warning: unused variable 'lost_jumpcount' [-Wunused-variable]
-        static uint8_t lost_jumpcount=0;
-                       ^
-include/main/main.c(222): 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(236): 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(238): 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(240): 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(241): 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(284): warning: implicit declaration of function 'reset_cause_get' is invalid in C99 [-Wimplicit-function-declaration]
-    reset_cause_get();
-    ^
-include/main/main.c(285): warning: implicit declaration of function 'reset_cause_clear' is invalid in C99 [-Wimplicit-function-declaration]
-    reset_cause_clear();
-    ^
-include/main/main.c(326): warning: implicit declaration of function 'Tag_uwb_init' is invalid in C99 [-Wimplicit-function-declaration]
-                Tag_uwb_init();
-                ^
-include/main/main.c(351): 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(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(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(203): warning: unused function 'adc_callback' [-Wunused-function]
-static void adc_callback(void *data, uint32_t number)
-            ^
-include/main/main.c(228): warning: unused function 'voltage_input_handler' [-Wunused-function]
-static void voltage_input_handler(enum IO_PIN_T pin)
-            ^
-27 warnings generated.
-compiling main.c...
-linking...
-.\include\devices\MK800X\Source\ARM\MK800X_ac6_copy.sct(25): warning: L6314W: No section matches pattern *(.XIP_SECTION).
-Program Size: Code=52604 RO-data=7292 RW-data=1284 ZI-data=26156  
-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" "C:\git-mk8000\ChinaUWBProject - tx\keil\Objects\uwb_simple_example.axf"
-".\Objects\uwb_simple_example.axf" - 0 Error(s), 28 Warning(s).
+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), 0 Warning(s).
 
 <h2>Software Packages used:</h2>
 
@@ -175,10 +39,10 @@
 
 <h2>Collection of Component include folders:</h2>
   .\RTE\_MK8000_Release
-  C:\Keil_v5\ARM\PACK\MKSEMI\MK800X_DFP\1.0.3\Device\Include
+  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:04
+Build Time Elapsed:  00:00:02
 </pre>
 </body>
 </html>

--
Gitblit v1.9.3