Fresh arithmetic/source-independent ELF metadata verification. No GUI/board execution.

verify_model.py
{
  "scope": "Synthetic callback/sample arithmetic; physical RC/contact bounce, EXTI coalescing and MCU execution not simulated",
  "qualification_ms": 20,
  "normal_callbacks": 9,
  "accepted_presses": 2,
  "checks_passed": [
    "bouncing press",
    "stable release without toggle",
    "second press",
    "boot held",
    "release then press",
    "short pulse rejection",
    "long held no repeats",
    "extra IRQ postpones acceptance",
    "uint32 tick wrap",
    "uint32 callback counter wrap"
  ]
}

inspect_elf.py
{
  "Debug/gebrabit_lesson11_exti_v2.elf": {
    "machine": "ARM ELF32 little-endian",
    "entry_address": "0x080020F1",
    "debug_section_sizes": {
      ".debug_info": 17096,
      ".debug_abbrev": 4618,
      ".debug_loclists": 551,
      ".debug_aranges": 1112,
      ".debug_line": 18417,
      ".debug_str": 672841,
      ".debug_frame": 3656,
      ".debug_rnglists": 748,
      ".debug_macro": 111810,
      ".debug_line_str": 116
    },
    "selected_symbols": {
      "last_irq_tick": {
        "address": "0x20000030",
        "size_bytes": 4,
        "section_index": 11
      },
      "stable_level": {
        "address": "0x2000000A",
        "size_bytes": 1,
        "section_index": 9
      },
      "debounced_presses": {
        "address": "0x20000034",
        "size_bytes": 4,
        "section_index": 11
      },
      "HAL_GPIO_EXTI_Callback": {
        "address": "0x08001F25",
        "size_bytes": 52,
        "section_index": 2
      },
      "irq_callbacks": {
        "address": "0x2000002C",
        "size_bytes": 4,
        "section_index": 11
      },
      "main": {
        "address": "0x08001D71",
        "size_bytes": 296,
        "section_index": 2
      },
      "raw_level": {
        "address": "0x20000009",
        "size_bytes": 1,
        "section_index": 9
      }
    },
    "validation": "offline metadata inspection only; no board execution or target debugger observations"
  }
}

calculate_baseline.py
{
  "scope": "Nominal RC and1ms sampled-time arithmetic only. No mechanical contact, continuous stability, hardware IRQ latency or actual waveform simulated.",
  "pullup_ohm": 10000,
  "capacitor_farad": 1e-07,
  "nominal_RC_ms": 1.0,
  "synthetic_last_activity_ms": 16,
  "qualification_ms": 20,
  "expected_acceptance_ms_if_no_new_observed_activity": 36
}
