cpld-temperature-control)Precedence: Active release docs (
README.zh-CN.md,docs/releases/v3.2.0.md,docs/releases/v3.1.0.md) supersede historical dates/parameters in archived notes (docs/operating-rules-2026-09-recovery.md). Keep this file concise (target < 8 KB; hard platform limit 24 KB). Put detailed specs indocs/.
v3.2.0 on dev)dev is the active production release branch; master is QA promotion. Three active repos: cpld-temperature-control, hth-platform, engineering-manifests.6400-v2): 24 PTC, 4 Front (进风) + 4 Rear (出风), 3 SSR (SSR1/SSR2/SSR4), CT/BMC telemetry, 3 buttons (EPB1=F8, SB1=C11, SB2=A11), 4000 Hz 80% buzzer (H6). Wire: SET_ALL = 36B (bytes 32..34 SSR, byte 35 buzzer 0/1; legacy 35B compat), GET_DATA = 90B (bytes 86..88 estop_btn/hood_open_btn/hood_close_btn on GET_ALL only, NO EPB1 interlock; byte 89 buzzer_state; host tools compat 88B/86B), DIAGNOSTIC = 20B (0x52, 1s auto, fw 3.2.0). V3.0 aligned CON165 pinout: SSR1=CON165.14->E14, SSR2=CON165.13->E8, CON165.12=NC (old F7 removed), SSR4=CON165.11->D9, EPB1=CON165.10->F8 (R1696/R1856, R1724=NC), SB1=CON165.9->C11 (R1693/R1855, R1717=NC), SB2=CON165.8->A11 (R1692/R1854, R1723=NC), all 3 LVCMOS33 + PULLDOWN; buzzer_out=CON146.1->H6 (CON146.2=GND); old F3/F1/G4 fixed low.mrdimm): 12 independent finite-step motor axes (BRAM-backed serial ALU: 4× BRAM32K + 1× BRAM9K), 4 FAN, 4 logical PTC (-> 24 physical PTC), CT/BMC telemetry, hood switch (L3 CON140.3 PULLDOWN), 4000 Hz 80% buzzer (H6 CON146.1). Wire: SET_ALL = 69B (byte 68 buzzer 0/1; legacy 68B compat), GET_DATA = 65B (byte 63 hood_switch on GET_ALL only, byte 64 buzzer_state), MOTOR_DONE = 4B, DIAGNOSTIC = 8B (0x52 format 2, 5s auto with 0x51, fw 3.2.0).6400): SET_ALL = 32B, GET_DATA = 83B (preserved for V1 compatibility).v3.2.0):
EF2L45BG256B at 25 MHz single clock domain. No PLL, no derived/gated clocks, no clock used as data (use enables/counters).50 ms period, 1% step = 12,500 clks; SSR shares u_pwm phase). Buzzer (buzzer_pwm_4khz, U3.H6) outputs 4000 Hz, 80% duty (6250 clks period, 5000 HIGH, 1250 LOW) when 0x01. Power-on / 30s watchdog default output: PTC 0%, FAN 20%, SSR 0%, Buzzer 0, MRDIMM STEP low.host_uart_endpoint with byte-level 0xA5 claim): 8N1 per-build fixed baud (921600 target, 460800/230400/115200 fallback); MRDIMM RS232 CON78.1/2 (N11 PULLUP), TTL CON140.1(T11)/2(P13) (CON146 is 12V/24V, NOT TTL). Never drop DONE by flushing RX before send.115200 8N1 (optional). CT7428 sensor I2C uses B14/SCL, A15/SDA; MRDIMM onboard MCU I2C0 must remain Hi-Z.git reset, clean, stash, restore, overwrite, or delete unknown changes. Stage explicitly (git add <path>, never git add -A). Do not push without explicit user authorization.USB1 only. Identify COM port & board type before acting; never perform JTAG/COM programming or claim physical hardware validation without explicit user authorization.-spd 3), explicit -vec download, and matching .bmk readback verify. SPI Flash requires program_spi -v + refresh + SRAM readback.A5 5A | TYPE:u8 | LENGTH:u8 | PAYLOAD | CRC16_LE (CCITT-FALSE 0x1021, init 0xFFFF, over TYPE+LENGTH+PAYLOAD). Independent RX/TX CRC accumulators.SET_ACCEPT reloads 30s watchdog and applies output cleanly; STOP_CLEAR (0xFF) stops STEP immediately without affecting other axes; bad frames/length consume declared bytes to sink, never corrupt state or feed watchdog. Button inputs (EPB1/SB1/SB2 on 6400-v2, hood_switch on mrdimm) are sampled ONLY on GET_ALL (forced 0 on autonomous frames) with NO CPLD safety interlock. After watchdog expiry, any valid SET recovers directly (GET alone does not clear default output).u8 °C (00..FE, FF = invalid).65535 = FF FF)../tools/td2026 (/data/prod2u/toolchain/TD_Release_2026.1_SP2_NL, license valid to 2027-09-30; NEVER use expired /data/anlogic/...). LUT, Slice subtypes, BRAM/ERAM, DSP, and IO must sit strictly below physical device limits (e.g. LUT < 4480) AND pass 25 MHz setup/hold with a generated .bit. Never disable axes or fake fit; never bypass vendor license checks.http://192.168.2.25:8765/ (board-viewer.service, /srv/board-viewer); privileged thermal test platform prod2u-thermal-test-backend on root@192.168.2.25:8766 (tools/thermal_test_server.py); Windows EXE, source/debug packages & maintained protocol doc (docs/CPLD_通讯协议v2.0.md) delivery target administrator@192.168.2.24 (C:\Prod2U_Releases\).remote_job.py / remote_transfer.py in background; network retry max 5; formal run 600s max killing full process group on timeout. Packaging maintains tools/package_prod2u.py & tools/package_unified_analysis.py (deterministic POSIX paths, explicit checksums; auto-bundles docs/CPLD_通讯协议v2.0.md on every release — keep it updated on every iteration).README.zh-CN.md, docs/CPLD_通讯协议v2.0.md, docs/releases/v3.2.0.md, docs/releases/v3.1.0.md, docs/evidence/6400-v2-electrical-alignment.mddocs/operating-rules-2026-09-recovery.mddocs/prod2u-dual-product-protocol.zh-CN.md, docs/pwm-scope.md, docs/TD_USAGE.zh-CN.md