Compliance & Verification
FDA Section 524B medical device firmware testing support
Automate sensor fault-handling, watchdog recovery and security-patch regression testing on compiled medical-device MCU binaries with traceable artifacts.
FDA Section 524B cyber-device submissions and IEC 62304 software verification require repeatable test evidence whenever firmware changes—especially for rapid vulnerability patches across deployed hardware revisions.
Running your compiled MCU ELF against deterministic sensor twins (such as ±0.1 °C TMP117 temperature sensors, INA219/INA226 power monitors and SHT31 humidity sensors) verifies fault isolation and watchdog recovery on every PR and archives SHA-256-linked reports. CircuitTwin provides supporting engineering evidence and does not itself constitute regulatory clearance.
Medical firmware verification checks
| Hazard / security check | Fault / test input | Archived evidence |
|---|---|---|
Out-of-range temperature sensor | TMP117 stimulus spike / frozen register | Alarm asserted + actuator safe-off in JUnit XML |
I2C bus lockup during therapy | Permanent NACK on sensor address | Watchdog / fallback state entered within budget |
Patch regression without new hardware | Re-run pinned suite on patched ELF | Matching digest + ELF SHA-256 in JSON log |
Power-rail brownout / memory guard | MPU fault & brownout scenario | Clean reset without corrupting EEPROM state |
Local CLI workflow
ct test run --json --recheck \
--junit evidence/fda-524b-regression.xml \
--sarif evidence/fda-524b.sarif \
tests/medical-sensor-safety.suite.yamlSuite & fault configuration
version: 1
board: nucleo-l476rg
firmware: build/device_fw.elf
tests:
- name: tmp117-stuck-reading-alarm
faults:
- at_ms: 200
part: tmp117
kind: frozen_reading
expect:
console_contains: "ALARM_SENSOR_STALE"
exit_code: 0
- name: eeprom-calibration-integrity
expect:
console_contains: "CAL_CRC_VALID"
exit_code: 0CI pipeline integration
name: Medical Firmware Verification CI
on: [push, pull_request]
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cmake --build build
- uses: circuittwin/action@v1
with:
suite: tests/medical-sensor-safety.suite.yaml
junit-out: evidence/fda-524b-regression.xmlFDA Section 524B SBOM and fault traceability
Link every software requirement and risk-control item to a repeatable, SHA-256-indexed ELF test run in CI.
FDA Section 524B cybersecurity reviews expect verifiable evidence that medical device firmware enforces fail-safe bounds under corrupted telemetry, disconnected optical sensors and low-battery conditions.
Running compiled firmware on CircuitTwin gives verification engineers deterministic pass/fail traces that tie directly to requirement IDs and commit hashes.
FDA 524B verification artifacts
| Submission item | How CI produces it | Traceability key |
|---|---|---|
Risk control verification | Inject sensor NACK/freeze/open-circuit in suite.yaml | Requirement ID in JUnit testcase name |
Malformed input resilience | Fuzz UART/BLE-AT parser boundaries deterministically | Seeded replay + zero HardFaults |
Build provenance | Pair CycloneDX SBOM with ELF + twin SHA-256 digest | Git commit SHA + artifact hash |
ct test run --json --recheck --junit artifacts/fda-524b.xml tests/fda-risk-controls.suite.yamlversion: 1
board: nrf52840-dk
firmware: build/patient_monitor.elf
tests:
- name: REQ-SAF-014-ppg-sensor-disconnect-alarm
timeout_ms: 3000
faults:
- at_ms: 200
bus: TWIM0
kind: nack
address: 0x57
count: 4
expect:
console_contains: "ALARM_SENSOR_FAULT"
exit_code: 0Troubleshooting checklist
| Symptom | Fix |
|---|---|
| Need reproducible patch verification years post-launch | Commit both the suite YAML and twin manifest beside the firmware source so every release tag replays identically. |
| Sensor tolerances must match clinical spec | Check published datasheet accuracy bounds on each component twin page (e.g. TMP117, SHT31-DIS). |
| Memory safety regressions on Cortex-M33 | Enable MPU stack guards and gate CI on zero MemManage/HardFault events. |
| Audit requires full provenance chain | Store the ct --json record, JUnit XML and SARIF file alongside your SBOM in each release package. |
| Test names do not map cleanly to DHF traceability matrix | Prefix every suite.yaml test name with your requirement ID (e.g. REQ-SAF-014). |
| Two runs show differing timestamps | Confirm deterministic seed is pinned and re-verify with ct test run --recheck. |
Frequently asked questions
| Question | Answer |
|---|---|
| Can CircuitTwin run inside an air-gapped medical validation environment? | Yes. Run the ct binary offline with local cached twins and --network none so zero external traffic occurs during formal V&V runs. |