# STM32G030F6P6 target image candidate

Run sh 固件/lamp_target/build.sh from the engineering-package root with arm-none-eabi-gcc, arm-none-eabi-objcopy, arm-none-eabi-size, and Python 3 available.

The build produces an ELF, BIN, linker map, size report, and static vector/symbol verification under 固件/lamp_target/build/. The target initializes USART2 on PA2/PA3 as 8N1 and receives into a 256-byte single-producer/single-consumer ring buffer. The AIW v2 stream parser validates AI results and UI session/command/ACK frames, then resynchronizes after framing gaps, malformed packets, UART errors, or ring overflow. UI commands are passed to `lamp_ui_wire_service`; ACK frames are atomically queued to UART TX.

The clock profile after reset uses a 16 MHz HSI with APB prescaler 1. The USART2 baud register is rounded from that peripheral clock and the requested 460800 bit/s, yielding BRR 35 and about 457143 bit/s nominal. This is an unmeasured candidate; confirm actual clock and UART waveform on the board.

The image remains hardware-off. CRC-valid AI results reach `lamp_guard`, but the guard is deliberately not configured and rejects them; timed UI starts return `NOT_READY`. The image does not issue usable AI tickets, run the vision SoC, or write LED driver registers. No measured channel-current table or power/thermal calibration is present, so runtime arming is disabled. LED_PWR_REQ_MCU stays low, LED_OE_N_MCU stays high, the LED driver stays in reset, and the external watchdog is not kicked. `aiw_soc_ui_client.*` is host-testable protocol code; no product SoC app or physical UI is connected.

A successful link is not evidence of flashing, UART electrical timing, board operation, hand detection, optical equivalence, thermal safety, EMC, or manufacturing readiness. See 46-AI灯USART2目标接收与AIW流解析候选-2026-10-08.md.
