gaoro-xiao
2679db4129
fix(uart): gate TCP forwarding by UART TX capacity
2026-05-08 05:52:58 +08:00
gaoro-xiao
be80b9dcb1
feat(iwdg): enable LED-driven watchdog refresh
2026-04-24 05:48:54 +08:00
gaoro-xiao
495fbe4298
fix(mux): 修复MUX半帧丢失与发送路径静默失败
2026-04-18 18:48:38 +08:00
gaoro-xiao
31a3da48fa
fix(tcp): MUX模式网口失联 — 对端关闭时用tcp_abort替代tcp_close避免TIME_WAIT耗尽pcb池
...
根因: tcp_close()将对端关闭的pcb推入TIME_WAIT(120s), 占用MEMP_TCP_PCB池(仅4个),
多连接同时断开后pcb池耗尽, tcp_new()返回NULL, 新连接无法建立直到120s超时释放。
核心修复:
- tcp_server/client: 对端关闭(p=NULL)时tcp_abort替代tcp_close, pcb立即释放
- ch390_runtime: PKT_ERR恢复强制OR上RCR_RXEN(与WCH官方一致)
- ch390_runtime: TX连续超时3次自动emergency reset
- ch390_runtime: 每5秒health_check读VID验证芯片存活
- main: App_StartLinksIfNeeded失败时不标记g_links_started, 允许重试
- main: MUX逐帧RTT printf改为#if DEBUG门控, 减少主循环延迟
- uart_trans: MUX帧解析改为先搜0x7E再消费header, 非法帧只丢1字节
2026-04-14 03:44:26 +08:00
gaoro-xiao
efb88ea367
feat(ch390): optimize SPI transfer, MAC fallback, and build settings for V1.0.0
...
- increase UART DMA/ring buffer sizes for mux traffic
- switch SPI1 to Mode0 with prescaler /2 and align CubeMX settings
- refactor CH390 memory read/write path with chunked SPI read and HAL bulk write
- fallback to hardware MAC when configured MAC is invalid (all-zero)
- add mux frame RTT logs and remove redundant UART1 polling
- update Keil post-build viewer integration and include build viewer artifacts
- update AT manual with all-zero MAC behavior
2026-04-05 03:49:27 +08:00
gaoro-xiao
d5b2506269
feat: save stable CH390 bridge baseline
2026-04-04 02:48:21 +08:00
gaoro-xiao
9fd748c512
fix: harden tcp bridge reconnect handling
2026-04-03 05:57:52 +08:00
gaoro-xiao
fd1fae8ad7
fix: restore CH390 bridge flow and sync driver docs
2026-04-03 05:18:02 +08:00
gaoro-xiao
1808f9916f
fix: harden CH390 bring-up diagnostics
2026-04-01 04:22:13 +08:00
gaoro-xiao
14a532290d
refactor: serialize CH390 runtime SPI access
...
Move runtime CH390 transactions behind a single ch390_runtime owner so main, lwIP glue, and EXTI no longer compete for SPI access. Keep the system stable under runtime load and capture the remaining CH390 readback failure as a credible low-level device-response issue in the handoff logs.
2026-04-01 03:39:08 +08:00
gaoro-xiao
e5fffaccdf
refactor: 清理UART调试代码并保留RTT诊断
2026-03-31 22:28:41 +08:00
gaoro-xiao
0f4f89eae4
fix: 同步CubeMX生成初始化代码
2026-03-31 16:34:44 +08:00
gaoro-xiao
3b6f52de63
refactor: 精简R8裸机工程并补强调试链路
2026-03-30 23:28:41 +08:00
gaoro-xiao
0abda47013
feat: 添加TIM4心跳闪烁并更新文档
2026-03-30 21:06:23 +08:00
gaoro-xiao
9efa2cdc59
refactor: 完成R8裸机lwIP移植并更新文档
2026-03-30 18:08:54 +08:00
gaoro-xiao
7ee96bc08d
fix: 统一R8工程目标并修复MDK编译前置问题
2026-03-30 13:14:37 +08:00
gaoro-xiao
4996b451d9
feat: 完成TCP2UART透传核心集成
...
集成CH390驱动、LwIP协议栈和FreeRTOS多任务透传框架,确保TCP Server/Client与UART链路按配置稳定联动。
2026-03-30 11:39:40 +08:00
gaoro-xiao
06c3c9b46f
更新CubeMX配置:添加CH390D引脚、USART1 DMA、FreeRTOS;更新技术文档
2026-03-23 15:26:29 +08:00
gaoro-xiao
6c3cc4ca96
添加CubeMX工程:Core、Drivers、IAR/MDK工程配置
2026-03-23 13:46:36 +08:00