Skip to content

Target and schedule

Choose the measurements you need before choosing the hardware settings. A desktop study can still request compilation if the scoring policy references compiler-reported metrics.

Goal device.hil device.compile_when_hil_disabled
Pure desktop search with task metrics and FLOPs false false
Fetch compiler-reported RAM or flash for selected metrics false auto
Collect measured latency or board energy true Applies only when HIL is disabled

For measured runs, set device.name to the target backend and device.runtime_mode to back_to_back or cadenced. In cadenced mode CREST can derive the latency budget from dataset timing, or you can give a positive device.latency_budget_ms.

Device, harness and backend-specific fields

The device block owns target selection and runtime behavior.

Common keys

  • device.name Target device identifier.
  • device.hil Enables or disables hardware-in-the-loop measurement.
  • device.compile_when_hil_disabled Controls whether device.hil: false still calls the HIL server for compile-only proxy metrics. Valid values are auto, true, and false. YAML booleans are accepted and normalized to true/false. The default auto compiles only when the active score/prune policy references compile-derived metrics such as ram_bytes, flash_bytes, external_flash_bytes, or arena_bytes.
  • device.runtime_mode back_to_back selects continuous execution, while cadenced selects periodic execution.
  • device.latency_budget_ms Optional shared cadence-budget override. When omitted, the runtime derives it from the active dataset cadence, first dataset.params.batch_period_ms, then dataset.params.stride / dataset.params.sampling_rate_hz * 1000 for the built-in oxiod dataset.
  • device.serial_port DUT serial port.
  • device.measured_inference_runs Number of repeated inference invokes averaged into one measured pass.
  • device.serial_timeout_s
  • device.dut_ready_timeout_s
  • device.cpu_clock_mhz_options Optional per-trial CPU presets for boards that support runtime clock selection.

Harness-related keys

  • device.harness_serial_port
  • device.harness_fqbn
  • device.harness_auto_flash
  • device.harness_arm_pin
  • device.harness_trigger_pin
  • device.dut_arm_hold_ms
  • device.harness_stable_low_ms
  • device.harness_ready_timeout_s
  • device.harness_arm_timeout_s
  • device.harness_active_timeout_s
  • device.harness_done_timeout_s

Per-backend nested blocks include the following.

  • device.portenta.*
  • device.stm32.*

See the STM32 backend guide for setup and supported options. STM32 settings include the following.

  • template_root
  • project_root
  • gdbserver
  • gdb
  • cubeprog_bin
  • signing_tool
  • gdb_port
  • apid
  • server_ready_timeout_s
  • wake_margin_us
  • min_sleep_us
  • weight_storage_mode
  • appli_flash_address
  • weights_flash_address
  • weights_memory_pool
  • weights_external_loader
  • signing_load_offset
  • signing_header_version
  • max_external_flash_bytes

Validation notes

  • device.runtime_mode must be back_to_back or cadenced.
  • The STM32 backend uses the LRUN dev_boot layout.
  • device.latency_budget_ms must be positive when set.
  • device.measured_inference_runs must be an integer >= 1.
  • device.cpu_clock_mhz_options must be a non-empty integer list when set.
  • For STM32_NUCLEO_N657X0_Q, device.cpu_clock_mhz_options is validated against the backend-supported set in code.
  • For PORTENTA_H7 and ARDUINO_NANO_33_BLE_SENSE, cadenced mode requires training.input_mode: uniform.

Understand measurement windows · Bring up hardware

For more information, read the full config README on GitHub.