[{"content":"Welcome to sysreliability.dev!\nModern connected products rarely fail in just one layer. A subtle watchdog misconfiguration in firmware, an untested OTA rollback path, or a retry storm from a fleet of IoT devices hitting a cloud API can all turn into a production incident.\nThis blog is where I document practical engineering notes, architecture patterns, and lessons learned across that entire stack:\nEmbedded Software: clean firmware boundaries, deterministic execution, memory safety in constrained environments, and RTOS design. Reliability Principles: fault isolation, defensive programming, observability, and designing systems that fail safely. CI/CD for Embedded Systems: bringing modern software delivery practices—reproducible builds, automated tests, and hardware-in-the-loop (HIL) pipelines—to firmware teams. IoT \u0026amp; Cloud Computing: connecting fleets reliably, managing telemetry at scale, and designing resilient cloud backends. Feel free to explore the Archives, browse by Tags, or read more on the About page.\n","permalink":"https://sysreliability.dev/posts/welcome-to-sysreliability/","summary":"Why I started sysreliability.dev and what you can expect to find here: embedded software, reliability principles, CI/CD for firmware, and IoT/cloud systems.","title":"Welcome to sysreliability.dev"},{"content":"(Sample post — edit or replace anytime)\nBringing continuous integration to embedded software often feels harder than web backends because the target hardware isn\u0026rsquo;t sitting inside a standard cloud runner. The key is layering your verification so fast, hardware-independent checks run on every commit while real hardware is reserved for integration and release gates.\nA Four-Stage Firmware Pipeline Stage Runs On Purpose Target Runtime 1. Build \u0026amp; Static Analysis Containerized toolchain Reproducible cross-compilation, compiler warnings as errors, cppcheck/clang-tidy \u0026lt; 2 min 2. Host Unit Tests x86/ARM CI runner Test business logic, parsers, and state machines with hardware abstractions mocked \u0026lt; 1 min 3. Emulation / Simulation QEMU / Renode Boot firmware image, verify startup sequence, peripheral register flows 2–5 min 4. Hardware-in-the-Loop (HIL) Self-hosted runner + target board Flash real MCU, verify power, RF, timing, and OTA rollback 5–15 min Pinning the Toolchain The single highest-leverage step is making builds 100% reproducible inside a versioned container image so \u0026ldquo;works on my machine\u0026rdquo; disappears:\n# Example GitHub Actions job for deterministic firmware builds jobs: firmware-build: runs-on: ubuntu-latest container: image: ghcr.io/example/arm-gnu-toolchain:13.3-rel1 steps: - uses: actions/checkout@v4 with: submodules: recursive - name: Configure \u0026amp; Build run: | cmake -B build -G Ninja -DCMAKE_TOOLCHAIN_FILE=cmake/arm-none-eabi.cmake cmake --build build - name: Print Flash \u0026amp; RAM Footprint run: arm-none-eabi-size build/firmware.elf Tracking Binary Footprint Over Time Catching a sudden 40 KB flash jump in a pull request is much easier than discovering it two weeks before production. Recording arm-none-eabi-size output on every PR turns flash and RAM budgets into first-class CI metrics.\n","permalink":"https://sysreliability.dev/posts/ci-cd-for-embedded-systems/","summary":"A layered approach to automating firmware builds, host unit tests, static analysis, and hardware-in-the-loop verification.","title":"Building a Practical CI/CD Pipeline for Embedded Systems"},{"content":"(Sample post — edit or replace anytime)\nReliability isn\u0026rsquo;t a feature you bolt on at the end of a project—it\u0026rsquo;s a set of invariants that hold across every boundary in your system, from an interrupt handler on a Cortex-M microcontroller to an ingestion worker in the cloud.\n1. Assume Every Boundary Can Stall or Fail Whether it\u0026rsquo;s an I2C sensor hanging on a bus or an MQTT broker dropping a connection, every I/O operation needs an explicit timeout and a deterministic recovery path.\n/* Always bound hardware waits and report structured errors */ status_t sensor_read_with_timeout(uint8_t *buf, size_t len, uint32_t timeout_ms) { uint32_t start = hal_millis(); while (!i2c_is_ready()) { if ((hal_millis() - start) \u0026gt;= timeout_ms) { i2c_bus_recover(); return STATUS_ERR_TIMEOUT; } } return i2c_read(buf, len); } 2. Protect the Fleet from Synchronized Retries If 50,000 IoT devices lose connectivity and all reconnect at the exact same second, they will DDoS your own backend. Always combine:\nExponential backoff with a sensible upper cap Full jitter seeded per device (e.g., from a hardware RNG or device ID hash) Server-side rate limiting and clear retry hints 3. Make OTA Updates Atomic and Reversible An over-the-air update should never brick a device if power is lost halfway through:\nDownload and verify the cryptographic signature into an inactive flash slot (A/B partitioning). Mark the new slot as pending and reboot. Require the new firmware to pass a self-health check (including cloud connectivity) before confirming the slot; otherwise, let the bootloader automatically roll back to the previous known-good image. ","permalink":"https://sysreliability.dev/posts/reliability-principles-from-mcu-to-cloud/","summary":"How core reliability patterns—bounded retries, watchdogs, idempotency, and graceful degradation—apply across both firmware and cloud services.","title":"Reliability Principles: From Microcontroller to Cloud"},{"content":"Hi, I\u0026rsquo;m Yusuf Caglar Akyuz.\nsysreliability.dev is my personal engineering notebook focused on building dependable systems across the full hardware-to-cloud boundary.\nWhat I Write About Embedded Software — firmware architecture, RTOS patterns, deterministic state machines, and resource-constrained design. Reliability Principles — fault isolation, watchdogs, graceful degradation, safe OTA updates, and lessons from real-world failures. CI/CD for Embedded Systems — reproducible toolchains, host-based unit testing, emulation, and hardware-in-the-loop (HIL) automation. IoT \u0026amp; Cloud Computing — device telemetry, fleet management, backpressure, edge-to-cloud protocols, and resilient backend services. About This Site This blog is built with Hugo and the PaperMod theme, and deployed globally on Cloudflare Workers Static Assets.\n","permalink":"https://sysreliability.dev/about/","summary":"About sysreliability.dev and Yusuf Caglar Akyuz","title":"About"}]