# 6400-front-rear production design lock Status: ACTIVE destructive protocol migration, 2026-08-25. This supersedes the previous SET_TARGET-first autonomous contract. ## Hardware and duty boundary - EF2L45BG256B, one 25 MHz clock, no PLL. - Host RS232/TTL 921600 8N1; production V1.1 physical top exports confirmed RS232 only. BMC RS232 is 115200. - Outputs are PTC0..23, Front0..3, Rear0..3. PTC is active high. - Every Host/GUI/Snapshot/Requested/Applied FAN value is connector-side high-level duty. - `FAN_BOARD_INVERT_MASK=8'h0F` is the only fan polarity adapter: Front balls B1/C4/B5/A14 invert; Rear balls P15/N15/M14/P5 are direct. - PTC connectors CON18/27/28/29 and all V1.1 ADC pins remain fixed. - PWM is 500 Hz: 100 phases x 500 clocks = 50,000 clocks. - The carrier is independent of control reset. While control reset is held, every period has PTC high 0 clocks, connector FAN high 10,000 clocks, Front ball low 10,000 clocks, Rear ball high 10,000 clocks. - PRE_CONFIGURATION_OUTPUT is NOT VERIFIED. RPM, airflow and physical thermal behavior are NOT RUN. ## Safe and hard-protect outputs - Reset, boot, standby, watchdog transition, PID waiting and ordinary non-overtemperature global fault atomically apply PTC0/FAN20. - BMC absence or stale data never integrates and never requests full speed. - A valid channel at or above 76 C clamps that channel PTC Applied duty to zero. A valid channel at or above 77 C latches its lane, applies lane PTC0/FAN100, and invalidates Manual ownership. - A latched lane releases only after three new complete valid BMC epochs in which every valid lane temperature is at or below 72 C; release commits PTC0/FAN20 and returns ownership to PID. - Requested and Applied banks are separate; a safety override cannot weaken the required protection. ## Owner and watchdog - The only ownership values are SAFE, MANUAL and PID. Hard protection is an independent Applied-output override, not an owner. - Reset: SAFE, PID off, PTC0/FAN20, watchdog 30 seconds, PID target 70 C. - First 30-second watchdog expiry commits safe duty, clears PI and transfers ownership to PID. - A new complete valid BMC epoch permits PID calculation. No BMC means no integration and PTC0/FAN20. - Legal SET_ALL atomically enters MANUAL, freezes PID state, reloads 30 seconds and ACKs after the PWM-boundary commit. Identical SET_ALL also commits/feeds/ACKs. - Manual expiry commits safe duty, clears PI and transfers ownership to PID. A SET_ALL commit wins over the same-cycle final expiry tick. - Only legal atomically committed SET_ALL feeds watchdog. GET_SNAPSHOT, SET_PID_TARGET, SET_STIMULUS, NACK and invalid traffic do not. ## Host protocol Frame: `A5 5A | TYPE | LENGTH | PAYLOAD | CRC_LOW | CRC_HIGH`. CRC-16/CCITT-FALSE covers TYPE+LENGTH+PAYLOAD. - `0x01 SET_ALL`, length 32: PTC0..23, Front0..3, Rear0..3; all 0..100. - `0x02 GET_SNAPSHOT`, length 0. - `0x03 SET_STIMULUS`, existing name and 33-byte payload retained in the registry; the single product returns UNSUPPORTED. - `0x04 SET_PID_TARGET`, length 1, 20..70; updates only the next PID target and does not change Manual output or feed watchdog. - `0x06 ACK_NACK`, length 4: `[ok, request_type, status, detail]`. - `0x82 SNAPSHOT_DATA`, generated fixed layout. - Status: 0 OK, 1 UNSUPPORTED, 2 BAD_LENGTH, 3 BAD_VALUE, 4 SAFETY_LOCKED. Every complete CRC-correct Host request produces exactly one ACK/NACK. Bad header/CRC, partial, timeout and UART framing errors are silent. One outstanding request, no FIFO and one Frame TX/CRC/UART TX set are permitted. SET_ALL is validated completely before staging. The first value above 100 returns BAD_VALUE with its index; there is no partial write, bank switch, mode change or watchdog feed. A valid vector stages into the inactive bank and becomes visible only at a safe PWM boundary. GET_SNAPSHOT locks BMC, CT, output banks, control epoch and fixed fields before its `0x06` ACK. It then sends `0x82` DATA. The selected Host port and all snapshot locks remain held through the final DATA CRC byte stop bit. Snapshot includes mode, watchdog active/remaining, PID target/running, Manual flag, BMC/CT valid/stale/epochs/ages, Requested/Applied PTC/Front/Rear connector duties, faults and hard-protect state. ## Product and GUI - The only active product is `6400-front-rear`. Historical profile files are not active build or release inputs. The single `6400-front-rear` HEX GUI generates/parses HEX only, never opens a serial port, and embeds the same generated Host Contract/Golden Vector SHA as the firmware package.