HART的RTS需要加个延时,这里用最后一个字节后加个0xff来代替延时
This commit is contained in:
parent
b9194044d8
commit
6f397f6161
|
@ -1,145 +0,0 @@
|
||||||
<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
|
@ -260,6 +260,7 @@ void ch438_send_data(uint8_t uart_num, uint8_t *data, uint16_t len)
|
||||||
{
|
{
|
||||||
hart_ht1200m_rts_io_send(uart_num);
|
hart_ht1200m_rts_io_send(uart_num);
|
||||||
uint8_t ch438_num = 0;
|
uint8_t ch438_num = 0;
|
||||||
|
data[len] = 0xff; // 因为发送数据RHART的RTS需要延时,这里用多一个字节的发送来代替延时
|
||||||
if (uart_num < 8)
|
if (uart_num < 8)
|
||||||
{
|
{
|
||||||
ch438_num = CH438_CHIP0;
|
ch438_num = CH438_CHIP0;
|
||||||
|
@ -269,7 +270,7 @@ void ch438_send_data(uint8_t uart_num, uint8_t *data, uint16_t len)
|
||||||
ch438_num = CH438_CHIP1;
|
ch438_num = CH438_CHIP1;
|
||||||
uart_num -= 8;
|
uart_num -= 8;
|
||||||
}
|
}
|
||||||
for (uint8_t i = 0; i < len; i++)
|
for (uint8_t i = 0; i < len + 1; i++)
|
||||||
{
|
{
|
||||||
ch438_write_reg(ch438_num, offsetadd[uart_num] | REG_THR_ADDR, data[i], 1);
|
ch438_write_reg(ch438_num, offsetadd[uart_num] | REG_THR_ADDR, data[i], 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue