{
  "id": "embedded/flash-ecc-error-detected",
  "signature": "Flash: ECC error detected at address 0x08010000, data corruption",
  "signature_zh": "闪存：在地址 0x08010000 检测到 ECC 错误，数据损坏",
  "regex": "Flash: ECC error detected at address 0x[0-9A-F]+",
  "domain": "embedded",
  "category": "hardware_error",
  "subcategory": null,
  "root_cause": "Flash memory ECC detected uncorrectable error due to bit-flip from radiation or aging, causing data corruption.",
  "root_cause_type": "generic",
  "root_cause_zh": "闪存 ECC 因辐射或老化导致的位翻转检测到不可纠正错误，造成数据损坏。",
  "versions": [
    {
      "version": "STM32Cube_FW_U5 V1.3.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "HAL V2.0.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Re-flashing firmware does not fix hardware-level ECC errors in specific sectors.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Disabling ECC in flash controller removes error detection but leaves data vulnerable.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Map out faulty flash sector in linker script: add `*(.faulty_sector)` to custom section and exclude from use.",
      "success_rate": 0.75,
      "how": "Map out faulty flash sector in linker script: add `*(.faulty_sector)` to custom section and exclude from use.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use flash redundancy by storing critical data in multiple locations and majority voting.",
      "success_rate": 0.8,
      "how": "Use flash redundancy by storing critical data in multiple locations and majority voting.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Trigger software reset after ECC error to attempt recovery: `NVIC_SystemReset();`",
      "success_rate": 0.6,
      "how": "Trigger software reset after ECC error to attempt recovery: `NVIC_SystemReset();`",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "在链接脚本中映射出故障闪存扇区：将 `*(.faulty_sector)` 添加到自定义段并排除使用。",
    "使用闪存冗余，将关键数据存储到多个位置并采用多数投票机制。",
    "ECC 错误后触发软件复位以尝试恢复：`NVIC_SystemReset();`"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://www.st.com/resource/en/application_note/an5342.pdf",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.81,
  "fix_success_rate": 0.7,
  "resolvable": "partial",
  "first_seen": "2024-04-12",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}