From dc277b040b8a549f4a4706f8a609cd9abfecd56e Mon Sep 17 00:00:00 2001 From: xiao Date: Mon, 13 Apr 2026 15:50:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0.gitignore=E4=BB=A5?= =?UTF-8?q?=E6=8E=92=E9=99=A4Keil=E6=9E=84=E5=BB=BA=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E5=92=8CWireshark=E6=97=A5=E5=BF=97=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 4 + AT固件使用手册.md | 4 +- MDK-ARM/keil-build-viewer.log | 236 ++++++++++++++++++++++++++++++++++ 3 files changed, 242 insertions(+), 2 deletions(-) create mode 100644 MDK-ARM/keil-build-viewer.log diff --git a/.gitignore b/.gitignore index 6fa5c09..32429b6 100644 --- a/.gitignore +++ b/.gitignore @@ -26,6 +26,7 @@ Release/ *.uvguix.* MDK-ARM/DebugConfig/ MDK-ARM/TCP2UART/ +build_keil.log # OS Thumbs.db @@ -34,3 +35,6 @@ Desktop.ini # 项目文档 项目计划.md + +# Wireshark +WiresharkLog/ diff --git a/AT固件使用手册.md b/AT固件使用手册.md index 0fa2334..38820a1 100644 --- a/AT固件使用手册.md +++ b/AT固件使用手册.md @@ -70,8 +70,8 @@ SYNC | LEN_H | LEN_L | SRCID | DSTMASK | PAYLOAD | TAIL |------|------| | `C1` | `0x01` | | `C2` | `0x02` | -| `UART2` | `0x04` | -| `UART3` | `0x08` | +| `U0` | `0x04` | +| `U1` | `0x08` | | `S1` | `0x10` | | `S2` | `0x20` | diff --git a/MDK-ARM/keil-build-viewer.log b/MDK-ARM/keil-build-viewer.log new file mode 100644 index 0000000..0ccb20d --- /dev/null +++ b/MDK-ARM/keil-build-viewer.log @@ -0,0 +1,236 @@ + +=================================================== keil-build-viewer v1.6 ================================================== + +[Search keil project] 1 item(s) + D:\code\STM32Project\TCP2UART\MDK-ARM\TCP2UART.uvprojx + +[User input] +[Current folder] D:\code\STM32Project\TCP2UART\MDK-ARM +[Encoding] 936 +[Keil project path] D:\code\STM32Project\TCP2UART\MDK-ARM\TCP2UART.uvprojx +[Keil project name] TCP2UART.uvprojx +[Is keil v4] 0 +[target name] TCP2UART +[final target name] TCP2UART + +[Device] STM32F103R8 +[Target name] +[Output name] TCP2UART +[Output path] TCP2UART\ +[Listing path] .\TCP2UART\ +[Is has pack] 1 +[Is enbale LTO] 0 +[Is has user library] 0 +[Is custom scatter file] 0 + +[TCP2UART.uvprojx] [TCP2UART] [STM32F103R8] [LTO disable] + +[memory info] +[name] IRAM [base addr] 0x20000000 [size] 0x00005000 [type] 1 [off-chip] 0 [is pack] 1 [ID] 2 +[name] IROM [base addr] 0x08000000 [size] 0x00010000 [type] 2 [off-chip] 0 [is pack] 1 [ID] 3 + + +[map file path] D:\code\STM32Project\TCP2UART\MDK-ARM\TCP2UART\TCP2UART.map + +[region info] +[load region] LR_IROM1 + [execution region] ER_IROM1, 0x08000000, 0x00010000, 0x0000D178 [memory type] 2 [memory ID] 3 + + [execution region] RW_IRAM1, 0x20000000, 0x00005000, 0x00004FF8 [memory type] 1 [memory ID] 2 + [ZI block] addr: 0x2000015C, size: 0x00004E9C (20124) + + +[object name max length] 24 +[object path max length] 60 + +[object in map file] +[object name] ch390.o [path] ..\Drivers\CH390\CH390.c +[object name] ch390_interface.o [path] ..\Drivers\CH390\CH390_Interface.c +[object name] ch390_runtime.o [path] ..\Drivers\CH390\ch390_runtime.c +[object name] config.o [path] ..\App\config.c +[object name] def.o [path] ..\Drivers\LwIP\src\core\def.c +[object name] dma.o [path] ../Core/Src/dma.c +[object name] etharp.o [path] ..\Drivers\LwIP\src\core\ipv4\etharp.c +[object name] ethernet.o [path] ..\Drivers\LwIP\src\netif\ethernet.c +[object name] ethernetif.o [path] ..\Drivers\LwIP\src\netif\ethernetif.c +[object name] flash_param.o [path] ..\App\flash_param.c +[object name] gpio.o [path] ../Core/Src/gpio.c +[object name] icmp.o [path] ..\Drivers\LwIP\src\core\ipv4\icmp.c +[object name] inet_chksum.o [path] ..\Drivers\LwIP\src\core\inet_chksum.c +[object name] init.o [path] ..\Drivers\LwIP\src\core\init.c +[object name] ip.o [path] ..\Drivers\LwIP\src\core\ip.c +[object name] ip4.o [path] ..\Drivers\LwIP\src\core\ipv4\ip4.c +[object name] ip4_addr.o [path] ..\Drivers\LwIP\src\core\ipv4\ip4_addr.c +[object name] iwdg.o [path] ../Core/Src/iwdg.c +[object name] main.o [path] ../Core/Src/main.c +[object name] mem.o [path] ..\Drivers\LwIP\src\core\mem.c +[object name] memp.o [path] ..\Drivers\LwIP\src\core\memp.c +[object name] netif.o [path] ..\Drivers\LwIP\src\core\netif.c +[object name] pbuf.o [path] ..\Drivers\LwIP\src\core\pbuf.c +[object name] raw.o [path] ..\Drivers\LwIP\src\core\raw.c +[object name] segger_rtt.o [path] ..\Middlewares\Third_Party\SEGGER_RTT\SEGGER_RTT.c +[object name] segger_rtt_printf.o [path] ..\Middlewares\Third_Party\SEGGER_RTT\SEGGER_RTT_printf.c +[object name] spi.o [path] ../Core/Src/spi.c +[object name] startup_stm32f103xb.o [path] startup_stm32f103xb.s +[object name] stm32f1xx_hal.o [path] ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.c +[object name] stm32f1xx_hal_cortex.o [path] ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.c +[object name] stm32f1xx_hal_dma.o [path] ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.c +[object name] stm32f1xx_hal_flash.o [path] ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c +[object name] stm32f1xx_hal_flash_ex.o [path] ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.c +[object name] stm32f1xx_hal_gpio.o [path] ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.c +[object name] stm32f1xx_hal_iwdg.o [path] ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_iwdg.c +[object name] stm32f1xx_hal_msp.o [path] ../Core/Src/stm32f1xx_hal_msp.c +[object name] stm32f1xx_hal_rcc.o [path] ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.c +[object name] stm32f1xx_hal_spi.o [path] ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.c +[object name] stm32f1xx_hal_tim.o [path] ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.c +[object name] stm32f1xx_hal_tim_ex.o [path] ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.c +[object name] stm32f1xx_hal_uart.o [path] ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.c +[object name] stm32f1xx_it.o [path] ../Core/Src/stm32f1xx_it.c +[object name] system_stm32f1xx.o [path] ../Core/Src/system_stm32f1xx.c +[object name] tcp.o [path] ..\Drivers\LwIP\src\core\tcp.c +[object name] tcp_client.o [path] ..\App\tcp_client.c +[object name] tcp_in.o [path] ..\Drivers\LwIP\src\core\tcp_in.c +[object name] tcp_out.o [path] ..\Drivers\LwIP\src\core\tcp_out.c +[object name] tcp_server.o [path] ..\App\tcp_server.c +[object name] tim.o [path] ../Core/Src/tim.c +[object name] timeouts.o [path] ..\Drivers\LwIP\src\core\timeouts.c +[object name] uart_trans.o [path] ..\App\uart_trans.c +[object name] usart.o [path] ../Core/Src/usart.c + +[file path in keil project] +[old name] startup_stm32f103xb.s [type] 1 [path] startup_stm32f103xb.s +[old name] main.c [type] 1 [path] ../Core/Src/main.c +[old name] gpio.c [type] 1 [path] ../Core/Src/gpio.c +[old name] dma.c [type] 1 [path] ../Core/Src/dma.c +[old name] iwdg.c [type] 1 [path] ../Core/Src/iwdg.c +[old name] tim.c [type] 1 [path] ../Core/Src/tim.c +[old name] spi.c [type] 1 [path] ../Core/Src/spi.c +[old name] usart.c [type] 1 [path] ../Core/Src/usart.c +[old name] stm32f1xx_it.c [type] 1 [path] ../Core/Src/stm32f1xx_it.c +[old name] stm32f1xx_hal_msp.c [type] 1 [path] ../Core/Src/stm32f1xx_hal_msp.c +[old name] stm32f1xx_hal_gpio_ex.c [type] 1 [path] ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.c +[old name] stm32f1xx_hal_iwdg.c [type] 1 [path] ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_iwdg.c +[old name] stm32f1xx_hal.c [type] 1 [path] ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.c +[old name] stm32f1xx_hal_rcc.c [type] 1 [path] ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.c +[old name] stm32f1xx_hal_rcc_ex.c [type] 1 [path] ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.c +[old name] stm32f1xx_hal_gpio.c [type] 1 [path] ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.c +[old name] stm32f1xx_hal_dma.c [type] 1 [path] ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.c +[old name] stm32f1xx_hal_cortex.c [type] 1 [path] ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.c +[old name] stm32f1xx_hal_pwr.c [type] 1 [path] ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.c +[old name] stm32f1xx_hal_flash.c [type] 1 [path] ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c +[old name] stm32f1xx_hal_flash_ex.c [type] 1 [path] ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.c +[old name] stm32f1xx_hal_exti.c [type] 1 [path] ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c +[old name] stm32f1xx_hal_spi.c [type] 1 [path] ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.c +[old name] stm32f1xx_hal_tim.c [type] 1 [path] ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.c +[old name] stm32f1xx_hal_tim_ex.c [type] 1 [path] ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.c +[old name] stm32f1xx_hal_uart.c [type] 1 [path] ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.c +[old name] system_stm32f1xx.c [type] 1 [path] ../Core/Src/system_stm32f1xx.c +[old name] CH390.c [type] 1 [path] ..\Drivers\CH390\CH390.c +[old name] CH390_Interface.c [type] 1 [path] ..\Drivers\CH390\CH390_Interface.c +[old name] ch390_runtime.c [type] 1 [path] ..\Drivers\CH390\ch390_runtime.c +[old name] def.c [type] 1 [path] ..\Drivers\LwIP\src\core\def.c +[old name] inet_chksum.c [type] 1 [path] ..\Drivers\LwIP\src\core\inet_chksum.c +[old name] init.c [type] 1 [path] ..\Drivers\LwIP\src\core\init.c +[old name] ip.c [type] 1 [path] ..\Drivers\LwIP\src\core\ip.c +[old name] mem.c [type] 1 [path] ..\Drivers\LwIP\src\core\mem.c +[old name] memp.c [type] 1 [path] ..\Drivers\LwIP\src\core\memp.c +[old name] netif.c [type] 1 [path] ..\Drivers\LwIP\src\core\netif.c +[old name] pbuf.c [type] 1 [path] ..\Drivers\LwIP\src\core\pbuf.c +[old name] raw.c [type] 1 [path] ..\Drivers\LwIP\src\core\raw.c +[old name] stats.c [type] 1 [path] ..\Drivers\LwIP\src\core\stats.c +[old name] sys.c [type] 1 [path] ..\Drivers\LwIP\src\core\sys.c +[old name] tcp.c [type] 1 [path] ..\Drivers\LwIP\src\core\tcp.c +[old name] tcp_in.c [type] 1 [path] ..\Drivers\LwIP\src\core\tcp_in.c +[old name] tcp_out.c [type] 1 [path] ..\Drivers\LwIP\src\core\tcp_out.c +[old name] timeouts.c [type] 1 [path] ..\Drivers\LwIP\src\core\timeouts.c +[old name] udp.c [type] 1 [path] ..\Drivers\LwIP\src\core\udp.c +[old name] etharp.c [type] 1 [path] ..\Drivers\LwIP\src\core\ipv4\etharp.c +[old name] icmp.c [type] 1 [path] ..\Drivers\LwIP\src\core\ipv4\icmp.c +[old name] ip4.c [type] 1 [path] ..\Drivers\LwIP\src\core\ipv4\ip4.c +[old name] ip4_addr.c [type] 1 [path] ..\Drivers\LwIP\src\core\ipv4\ip4_addr.c +[old name] ip4_frag.c [type] 1 [path] ..\Drivers\LwIP\src\core\ipv4\ip4_frag.c +[old name] ethernet.c [type] 1 [path] ..\Drivers\LwIP\src\netif\ethernet.c +[old name] ethernetif.c [type] 1 [path] ..\Drivers\LwIP\src\netif\ethernetif.c +[old name] config.c [type] 1 [path] ..\App\config.c +[old name] flash_param.c [type] 1 [path] ..\App\flash_param.c +[old name] tcp_client.c [type] 1 [path] ..\App\tcp_client.c +[old name] tcp_server.c [type] 1 [path] ..\App\tcp_server.c +[old name] uart_trans.c [type] 1 [path] ..\App\uart_trans.c +[old name] SEGGER_RTT.c [type] 1 [path] ..\Middlewares\Third_Party\SEGGER_RTT\SEGGER_RTT.c +[old name] SEGGER_RTT_printf.c [type] 1 [path] ..\Middlewares\Third_Party\SEGGER_RTT\SEGGER_RTT_printf.c + +[record region info] +[load region] LR_IROM1 + [execution region] ER_IROM1, 0x08000000, 0x00010000, 0x0000D178 [type] 2 [ID] 3 + [execution region] RW_IRAM1, 0x20000000, 0x00005000, 0x00004FF8 [type] 1 [ID] 2 +--------------------------------------------------------------------------------- + FILE(s) | RAM (byte) | FLASH (byte) | +--------------------------------------------------------------------------------- +ch390.o | 0 | 590 | +ch390_interface.o | 0 | 680 | +ch390_runtime.o | 91 | 1534 | +config.o | 1248 | 4289 | +def.o | 0 | 8 | +dma.o | 0 | 124 | +etharp.o | 241 | 1773 | +ethernet.o | 0 | 250 | +ethernetif.o | 48 | 178 | +flash_param.o | 0 | 246 | +gpio.o | 0 | 240 | +icmp.o | 0 | 452 | +inet_chksum.o | 0 | 334 | +init.o | 0 | 26 | +ip.o | 24 | 0 | +ip4.o | 2 | 780 | +ip4_addr.o | 0 | 50 | +iwdg.o | 12 | 0 | +main.o | 278 | 2937 | +mem.o | 4127 | 840 | +memp.o | 6496 | 472 | +netif.o | 12 | 594 | +pbuf.o | 0 | 1118 | +raw.o | 4 | 252 | +segger_rtt.o | 440 | 391 | +segger_rtt_printf.o | 0 | 64 | +spi.o | 88 | 216 | +startup_stm32f103xb.o | 1024 | 296 | +stm32f1xx_hal.o | 12 | 140 | +stm32f1xx_hal_cortex.o | 0 | 198 | +stm32f1xx_hal_dma.o | 0 | 808 | +stm32f1xx_hal_flash.o | 32 | 392 | +stm32f1xx_hal_flash_ex.o | 0 | 240 | +stm32f1xx_hal_gpio.o | 0 | 516 | +stm32f1xx_hal_iwdg.o | 0 | 12 | +stm32f1xx_hal_msp.o | 0 | 60 | +stm32f1xx_hal_rcc.o | 0 | 1258 | +stm32f1xx_hal_spi.o | 0 | 1510 | +stm32f1xx_hal_tim.o | 0 | 936 | +stm32f1xx_hal_tim_ex.o | 0 | 108 | +stm32f1xx_hal_uart.o | 0 | 2300 | +stm32f1xx_it.o | 0 | 490 | +system_stm32f1xx.o | 4 | 30 | +tcp.o | 32 | 3699 | +tcp_client.o | 1120 | 1216 | +tcp_in.o | 56 | 3720 | +tcp_out.o | 0 | 3862 | +tcp_server.o | 1104 | 962 | +tim.o | 72 | 164 | +timeouts.o | 12 | 402 | +uart_trans.o | 2936 | 1268 | +usart.o | 624 | 816 | +--------------------------------------------------------------------------------- +[memory print mode]: 0 +LR_IROM1 + RAM 1 [0x20000000 | 0x00005000 (20480)] + [zi start] 1 [zi end] 49 + RW_IRAM1 [0x20000000]|¡ö¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ¡õ_| ( 19.9 KB / 20.0 KB ) 100.0% + + FLASH 1 [0x08000000 | 0x00010000 (65536)] + ER_IROM1 [0x08000000]|¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö__________| ( 52.3 KB / 64.0 KB ) 81.8% + +[htm file path] D:\code\STM32Project\TCP2UART\MDK-ARM\TCP2UART\TCP2UART.htm +Maximum Stack Usage = 968 bytes + Unknown(Functions without stacksize, Cycles, Untraceable Function Pointers) + +============================================================================================================================= + +run time: 0.179 s