EC-Coder-Core600 / README.md
Allmightdd's picture
Explain the purpose and fields of Core600
0d62e6e verified
|
Raw History Blame Contribute Delete
3.51 kB
metadata
pretty_name: EC-Coder Core600
configs:
  - config_name: default
    data_files:
      - split: test
        path: data/test.jsonl

EC-Coder Core600

The test split contains 600 STM32F407 tasks. Each line in data/test.jsonl is one task, with case IDs from 790001 through 790600. Browse data/test.jsonl

What Core600 measures

Core600 tests whether a model can generate bare-metal C firmware that makes an STM32F407 behave as specified. Tasks cover 17 combinations of hardware blocks, including clock control, GPIO, serial interfaces, timers, and DMA. They ask for behaviors such as configuring peripherals in dependency order, changing selected register bits while preserving unrelated bits, and following conditional steps across execution phases.

The evaluator compiles each candidate with Arm GCC and runs it in Renode. A compiled program passes the semantic checks only when it reports the required checkpoints in order and the observed register states satisfy the task's conditions. This checks the firmware's behavior in simulation as well as whether it builds.

JSONL fields

Field What it contains
case_id Stable task identifier used to match a JSONL record to its evaluator input.
requirement The embedded C task, including the hardware behavior and phase goals the program should implement.
generation_prompt_patch Additional instructions supplied during generation, such as how to initialize trace output and call the checkpoint API.
level The benchmark's task level label. All 600 records in this release are L5.
family_id The hardware blocks associated with the task, such as RCC+USART2+GPIOA+FLASH+SPI2+SysTick.
cluster_id Identifier for the scenario group that contains the task.
difficulty_type The kind of challenge represented by the case, such as cross-peripheral dependencies, register-bit preservation, or phase planning.

Example row

The two prompt fields in the first row are shortened here for readability.

{
  "case_id": 790001,
  "requirement": "core600_contract_v2_600_hardening_tranche4_delta_lite_candidate_v1 row 790001: motif semantic_intent_composition, variant 1. This phase-checkpoint case is generated from the canonical …",
  "generation_prompt_patch": "Initialize USART2 trace transport before the first CORE600_CHECKPOINT call. The exact provided prototype is `void CORE600_CHECKPOINT(uint32_t checkpoint_id);`. CORE600_CHECKPOINT is provided by the …",
  "level": "L5",
  "family_id": "RCC+USART2+GPIOA+FLASH+SPI2+SysTick",
  "cluster_id": "core600_contract_v2_600_hardening_tranche4_delta_lite_candidate_v1:semantic_intent_composition",
  "difficulty_type": "semantic_intent_composition"
}

Run the benchmark

Download evaluation/cases.json and pass its local path to the evaluator with --cases. This file contains the complete records used by the evaluator, including checkpoint order, register readback conditions, and scoring rules. It retains the original SHA-256. The manifest records the dataset version and checksums. The other files in evaluation/ document the coverage and validation of the scoring contracts. Evaluation files · Evaluation runner