Error: Implement a fault-reset feature
メンテナーはふだん 4 日以内に返信
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 30/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 静か
- 技術スタック
- c
- 領域
- embedded-iot
調査の方向性
init/appa/config/Src/stm32h7xx_it.c とエントリポイント HardFault_Handler() から始めます。EEPROM や専用の flash ブロックなしで、MCU がリセットして flight_computer_state、flash アドレス、エラー原因を保持できるかを調査します。リカバリ設計が実現可能かどうかを文書化し、そのストレージ上の制約を特定できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Description
Safety critical systems often have a requirement that the system should not have un-recoverable errors. This is next to impossible to achieve just by building a good software system, as there's always gonna be that one edge case that can still take your system out.
What we can do, however, is make sure that the system recovers when that edge case is hit. Even a segmentation fault is technically recoverable on STM32 because the MCU receives and handles an interrupt signal in this situation (see init/appa/config/Src/stm32h7xx_it.c -> HardFault_Handler()).
We could theoretically force the MCU to reset if we hit an unrecoverable error. This would pop the MCU back up in the idle state with all of the peripherals re-initialized (provided there isn't some kind of error on one of these). If there's some region of non-volatile memory in which we can save the flight_computer_state variable from the error handler, we can then resume execution in the same state as before.
This has a number of its own design challenges. We would have to also store the flash address so we can continue logging at the right point. flight_computer_state would need to sit in a special block of memory that can be readily erased/overwritten (which makes this suited for a new hardware revision with an EEPROM). We would also want to make sure we log the cause of the error somewhere so that hardfaults are debuggable and we don't lose the place where this was hit.
But theoretically, this idea could substantially increase reliability. Recommend investigating this for a while to see if it's feasible without an EEPROM or a flash block that's dedicated to error handling.
- 主要言語
- C
- スター
- 8
- フォーク
- 6
- 平均マージ
- 6日 19時間
- マージ済み PR(30日)
- 9
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
SunDevilRocketry/Flight-Computer-Firmware のほかの issue
-
Sensor: Set magnetometer ODR to 30 Hz対応中かも @NArmistead が 14 日前に担当しました。 オープンenhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
SunDevilRocketry/Flight-Computer-Firmware#347 · 担当者 1 名 ·
メンテナーはふだん 4 日以内に返信
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
SunDevilRocketry/Flight-Computer-Firmware#367 ·
メンテナーはふだん 4 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
SunDevilRocketry/Flight-Computer-Firmware#365 · コメント 1 件 ·
メンテナーはふだん 4 日以内に返信
-
advanced enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
SunDevilRocketry/Flight-Computer-Firmware#364 · コメント 2 件 ·
メンテナーはふだん 4 日以内に返信
-
Driver: Integrate existing drivers対応中かも @MasterUser43 が 7 日前に担当しました。 オープンenhancement
SunDevilRocketry/Flight-Computer-Firmware#363 · コメント 1 件 · 担当者 4 名 ·
メンテナーはふだん 4 日以内に返信
SunDevilRocketry/Flight-Computer-Firmware の issue をすべて見る
似ている issue
-
dependency component: oneMKL module: dpclang
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
intel/torch-xpu-ops#5880 ·
メンテナーはふだん 2 日以内に返信
-
area/ci-build bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
DarkFlippers/qUnleashed#423 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
CVE-2026-111497オープン
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
fink/fink-distributions#1322 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 83/100
openvehicles/Open-Vehicle-Monitoring-System-3#1563 ·
メンテナーはふだん 2 日以内に返信