16HART测试完成

This commit is contained in:
王绪洁 2025-04-07 20:08:45 +08:00
parent 61d4c005c7
commit b9194044d8
6 changed files with 455 additions and 292 deletions

View File

@ -109,7 +109,7 @@ void MX_FREERTOS_Init(void) {
/* Create the thread(s) */
/* definition and creation of lwip_task */
osThreadDef(lwip_task, start_lwip_task, osPriorityNormal, 0, 8192);
osThreadDef(lwip_task, start_lwip_task, osPriorityNormal, 0, 10000);
lwip_taskHandle = osThreadCreate(osThread(lwip_task), NULL);
/* definition and creation of dac_task */

View File

@ -47,10 +47,18 @@
/* LwIP Stack Parameters (modified compared to initialization value in opt.h) -*/
/* Parameters set in STM32CubeMX LwIP Configuration GUI -*/
/*----- Default Value for MEMP_NUM_TCP_PCB: 5 ---*/
#define MEMP_NUM_TCP_PCB 20
/*----- Value in opt.h for MEM_ALIGNMENT: 1 -----*/
#define MEM_ALIGNMENT 4
/*----- Default Value for MEMP_NUM_RAW_PCB: 4 ---*/
#define MEMP_NUM_RAW_PCB 20
/*----- Default Value for MEMP_NUM_TCP_PCB_LISTEN: 8 ---*/
#define MEMP_NUM_TCP_PCB_LISTEN 20
/*----- Default Value for MEMP_NUM_NETCONN: 4 ---*/
#define MEMP_NUM_NETCONN 20
/*----- Default Value for MEMP_NUM_SELECT_CB: 4 ---*/
#define MEMP_NUM_SELECT_CB 20
/*----- Value in opt.h for LWIP_ETHERNET: LWIP_ARP || PPPOE_SUPPORT -*/
#define LWIP_ETHERNET 1
/*----- Value in opt.h for LWIP_DNS_SECURE: (LWIP_DNS_SECURE_RAND_XID | LWIP_DNS_SECURE_NO_MULTIPLE_OUTSTANDING | LWIP_DNS_SECURE_RAND_SRC_PORT) -*/

View File

@ -190,6 +190,11 @@
<WinNumber>1</WinNumber>
<ItemText>tcpecho_accept_hart</ItemText>
</Ww>
<Ww>
<count>8</count>
<WinNumber>1</WinNumber>
<ItemText>tcp_echo_flags</ItemText>
</Ww>
</WatchWindow1>
<MemoryWindow1>
<Mm>

View File

@ -0,0 +1,145 @@
<html>
<body>
<pre>
<h1>µVision Build Log</h1>
<h2>Tool Versions:</h2>
IDE-Version: ¦ÌVision V5.36.0.0
Copyright (C) 2021 ARM Ltd and ARM Germany GmbH. All rights reserved.
License Information: aaa Administrator, aaa, LIC=6XJT4-F8J98-8YUVV-P833R-DBAKX-Y8EU6
Tool Versions:
Toolchain: MDK-ARM Professional Version: 5.36.0.0
Toolchain Path: C:\Keil_v5\ARM\ARMCC\Bin
C Compiler: Armcc.exe V5.06 update 7 (build 960)
Assembler: Armasm.exe V5.06 update 7 (build 960)
Linker/Locator: ArmLink.exe V5.06 update 7 (build 960)
Library Manager: ArmAr.exe V5.06 update 7 (build 960)
Hex Converter: FromElf.exe V5.06 update 7 (build 960)
CPU DLL: SARMCM3.DLL V5.36.0.0
Dialog DLL: DCM.DLL V1.17.3.0
Target DLL: STLink\ST-LINKIII-KEIL_SWO.dll V3.0.9.0
Dialog DLL: TCM.DLL V1.53.0.0
<h2>Project:</h2>
D:\WORK\positioner_testing\valve_debugging\MDK-ARM\valve_debugging.uvprojx
Project File Date: 04/07/2025
<h2>Output:</h2>
*** Using Compiler 'V5.06 update 7 (build 960)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Build target 'valve_debugging'
compiling demand.c...
compiling eui64.c...
compiling lcp.c...
compiling chap-md5.c...
compiling eap.c...
compiling fsm.c...
compiling chap-new.c...
compiling ccp.c...
compiling chap_ms.c...
compiling ipv6cp.c...
compiling ipcp.c...
compiling auth.c...
compiling lwip.c...
compiling main.c...
compiling ethernetif.c...
compiling pppapi.c...
compiling ppp.c...
compiling utils.c...
compiling pppol2tp.c...
compiling magic.c...
compiling vj.c...
compiling mppe.c...
compiling pppos.c...
compiling pppoe.c...
compiling pppcrypt.c...
compiling multilink.c...
compiling upap.c...
compiling bridgeif.c...
compiling ethernet.c...
compiling bridgeif_fdb.c...
compiling lowpan6.c...
compiling lowpan6_ble.c...
compiling zepif.c...
compiling netdb.c...
compiling lowpan6_common.c...
compiling netifapi.c...
compiling ecp.c...
compiling netbuf.c...
compiling err.c...
compiling slipif.c...
compiling if_api.c...
compiling tcpip.c...
compiling api_msg.c...
compiling api_lib.c...
compiling sockets.c...
compiling altcp.c...
compiling altcp_tcp.c...
compiling dns.c...
compiling altcp_alloc.c...
compiling def.c...
compiling inet_chksum.c...
compiling ip.c...
compiling stats.c...
compiling raw.c...
compiling mem.c...
compiling sys.c...
compiling netif.c...
compiling init.c...
compiling pbuf.c...
compiling memp.c...
compiling dhcp.c...
compiling autoip.c...
compiling igmp.c...
compiling etharp.c...
compiling tcp.c...
compiling tcp_in.c...
compiling dhcp6.c...
compiling icmp.c...
compiling udp.c...
compiling ethip6.c...
compiling ip4_addr.c...
compiling ip4.c...
compiling tcp_out.c...
compiling ip4_frag.c...
compiling timeouts.c...
compiling icmp6.c...
compiling inet6.c...
compiling ip6.c...
compiling ip6_addr.c...
compiling mld6.c...
compiling nd6.c...
compiling ip6_frag.c...
compiling sys_arch.c...
compiling tcpserverc.c...
compiling mqtt.c...
linking...
Program Size: Code=82088 RO-data=1404 RW-data=420 ZI-data=114008
FromELF: creating hex file...
"valve_debugging\valve_debugging.axf" - 0 Error(s), 0 Warning(s).
<h2>Software Packages used:</h2>
Package Vendor: ARM
http://www.keil.com/pack/ARM.CMSIS.5.8.0.pack
ARM.CMSIS.5.8.0
CMSIS (Common Microcontroller Software Interface Standard)
* Component: CORE Version: 5.5.0
Package Vendor: Keil
https://www.keil.com/pack/Keil.STM32F4xx_DFP.2.17.1.pack
Keil.STM32F4xx_DFP.2.17.1
STMicroelectronics STM32F4 Series Device Support, Drivers and Examples
<h2>Collection of Component include folders:</h2>
.\RTE\_valve_debugging
C:\Users\Administrator\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\CMSIS\Core\Include
C:\Users\Administrator\AppData\Local\Arm\Packs\Keil\STM32F4xx_DFP\2.17.1\Drivers\CMSIS\Device\ST\STM32F4xx\Include
<h2>Collection of Component Files used:</h2>
* Component: ARM::CMSIS:CORE:5.5.0
Include file: CMSIS\Core\Include\tz_context.h
Build Time Elapsed: 00:00:20
</pre>
</body>
</html>

File diff suppressed because it is too large Load Diff

View File

@ -9,7 +9,7 @@ ETH.RxBuffLen=1536
ETH.RxMode=ETH_RXINTERRUPT_MODE
FREERTOS.FootprintOK=true
FREERTOS.IPParameters=Tasks01,configENABLE_FPU,configMAX_PRIORITIES,configMAX_TASK_NAME_LEN,FootprintOK,configTOTAL_HEAP_SIZE,configMINIMAL_STACK_SIZE
FREERTOS.Tasks01=lwip_task,0,8192,start_lwip_task,Default,NULL,Dynamic,NULL,NULL;dac_task,0,512,start_dac_task,Default,NULL,Dynamic,NULL,NULL;ch438_task,0,512,start_ch438_task,Default,NULL,Dynamic,NULL,NULL
FREERTOS.Tasks01=lwip_task,0,10000,start_lwip_task,Default,NULL,Dynamic,NULL,NULL;dac_task,0,512,start_dac_task,Default,NULL,Dynamic,NULL,NULL;ch438_task,0,512,start_ch438_task,Default,NULL,Dynamic,NULL,NULL
FREERTOS.configENABLE_FPU=1
FREERTOS.configMAX_PRIORITIES=32
FREERTOS.configMAX_TASK_NAME_LEN=24
@ -27,9 +27,14 @@ GPIO.groupedBy=Group By Peripherals
KeepUserPlacement=false
LWIP.BSP.number=1
LWIP.GATEWAY_ADDRESS=192.168.001.222
LWIP.IPParameters=LWIP_DHCP,IP_ADDRESS,NETMASK_ADDRESS,GATEWAY_ADDRESS,MEMP_NUM_TCP_PCB_LISTEN
LWIP.IPParameters=LWIP_DHCP,IP_ADDRESS,NETMASK_ADDRESS,GATEWAY_ADDRESS,MEMP_NUM_TCP_PCB_LISTEN,MEMP_NUM_NETCONN,MEMP_NUM_RAW_PCB,MEMP_NUM_SELECT_CB,MEMP_NUM_REASSDATA,MEMP_NUM_TCP_PCB
LWIP.IP_ADDRESS=192.168.001.029
LWIP.LWIP_DHCP=0
LWIP.MEMP_NUM_NETCONN=20
LWIP.MEMP_NUM_RAW_PCB=20
LWIP.MEMP_NUM_REASSDATA=5
LWIP.MEMP_NUM_SELECT_CB=20
LWIP.MEMP_NUM_TCP_PCB=20
LWIP.MEMP_NUM_TCP_PCB_LISTEN=20
LWIP.NETMASK_ADDRESS=255.255.255.000
LWIP.Version=v2.1.2_Cube