[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AN831PDKM7T4Y5Z3EADA5S":3,"skill-same:01M7AN831PDKM7T4Y5Z3EADA5S":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7AN831PDKM7T4Y5Z3EADA5S","embedded-reference",null,"Use when weighing contested embedded questions (HAL vs bare registers, C vs C++ vs Rust, RTOS vs superloop, vendor lock-in vs portability, OPC UA vs MQTT\u002FSparkplug, certification burden vs agility, test on hardware vs host, Zephyr vs FreeRTOS), finding the books and primary documentation practitioners actually cite, learning from the case-study failures everyone should know (Therac-25, Toyota unintended acceleration, 737 MAX, Mars Pathfinder, Mirai), checking whether a vendor or regulatory claim is still current (snapshot verified August 2026), or needing the diagnostic cards — 'why doesn't my peripheral work', 'why does it crash randomly', 'why is battery life bad', numbers worth memorizing, and the firmware review checklist. Companion to the other embedded-iot-controls skills.","the-vibey-project\u002Fvibey","the-vibey-project","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F329298758?v=4","01M7AJHGZ9722CTJ4JNQZVRH0Q","the vibey project","01M7AJHGZVMG2K7TGXQ6XFHVG3",5,"MIT","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fembedded-iot-controls\u002Fskills\u002Fembedded-reference\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: embedded-reference\ndescription: \"Use when weighing contested embedded questions (HAL vs bare registers, C vs C++ vs Rust, RTOS vs superloop, vendor lock-in vs portability, OPC UA vs MQTT\u002FSparkplug, certification burden vs agility, test on hardware vs host, Zephyr vs FreeRTOS), finding the books and primary documentation practitioners actually cite, learning from the case-study failures everyone should know (Therac-25, Toyota unintended acceleration, 737 MAX, Mars Pathfinder, Mirai), checking whether a vendor or regulatory claim is still current (snapshot verified August 2026), or needing the diagnostic cards — 'why doesn't my peripheral work', 'why does it crash randomly', 'why is battery life bad', numbers worth memorizing, and the firmware review checklist. Companion to the other embedded-iot-controls skills.\"\n---\n\n# Embedded & IoT: Contested Questions, Canon, Case Studies, Currency, and Quick Reference\n\n> **Part 5 of 5** of the *Embedded Systems & IoT Controls — Deep Technical Reference* reference (plugin `embedded-iot-controls`), covering §14–§19. Sibling skills: `embedded-silicon-and-firmware-models` (§0–§2), `embedded-languages-realtime-and-patterns` (§3–§5), `embedded-industrial-control-connectivity-and-cloud` (§6–§9), `embedded-security-safety-and-testing` (§10–§13). Section numbers are shared across the set; a reference written as §N → `skill` points into that sibling skill.\n>\n> **Currency:** Verified August 2026. See §17 below for the currency snapshot and what goes stale first.\n\n> **How to read this.** This is a reference, not a tutorial. Sections are independent.\n> Three markers appear throughout:\n> - **[UNIVERSAL]** — physics, math, or architecture. True regardless of vendor. Trust it.\n> - **[VENDOR]** — specific to a chip, SDK, or toolchain. Verify against the datasheet\u002Ferrata.\n> - **[CONTESTED]** — competent engineers disagree. Both cases are presented. Do not pick a side on the reader's behalf.\n>\n> **⚠️ GOTCHA** boxes mark the failure modes that actually burn people. They are the\n> highest-value content in this document.\n\n---\n\n## §14. Contested Questions — present both cases, don't adjudicate\n\nThese are the arguments where competent, experienced engineers genuinely disagree. When\nasked, give the strongest version of each side and the conditions that favour it. Do not\npresent one as settled.\n\n### 14.1 HAL vs bare registers\nCovered in §2.1 → `embedded-silicon-and-firmware-models`. Favouring factors: HAL when time-to-market, peripheral complexity, and\nerrata coverage dominate; registers when footprint, worst-case timing, and auditability\ndominate. Most shipping products use both, at different layers.\n\n### 14.2 C vs C++ vs Rust\nCovered in §3.4 → `embedded-languages-realtime-and-patterns`. The honest summary: **the memory-safety argument for Rust is\ntechnically strong and the ecosystem argument for C is practically strong**, and which\nwins depends entirely on your silicon, your team, and whether your product's threat model\nor certification path makes memory safety a first-order requirement.\n\n### 14.3 RTOS vs superloop\n- *For an RTOS*: independent activities with different rates and blocking I\u002FO become\n  tractable; you get standard primitives instead of hand-rolled ones; the ecosystem\n  (network stacks, MCUboot, shells) assumes one.\n- *For a superloop \u002F time-triggered design*: no context-switch overhead, no per-task\n  stacks, no priority inversion, no deadlock, no mutex bugs, and **the timing is\n  analyzable by inspection**. A large fraction of shipped embedded products are superloops\n  and are more reliable for it. Adding an RTOS to a system that didn't need one adds\n  a whole class of concurrency bugs in exchange for nothing.\n- The dividing line most people converge on: **an RTOS earns its keep when you have\n  genuinely blocking operations at different priorities**, not merely \"several things to\n  do.\"\n\n### 14.4 Vendor lock-in vs portability\n- *For going all-in on a vendor SDK* (ESP-IDF, nRF Connect SDK, STM32Cube): the\n  integration is deep and tested, connectivity stacks come pre-certified, support is real,\n  and you ship faster.\n- *For a portable core*: silicon shortages happen (2020–23 taught everyone this), pricing\n  changes, parts go EOL, and a product line that can't second-source a MCU is a business\n  risk. Portability lives in the layered architecture (§5.1 → `embedded-languages-realtime-and-patterns`), not in avoiding the SDK.\n\n### 14.5 OPC UA vs MQTT\u002FSparkplug for IIoT\nCovered in §6.4 → `embedded-industrial-control-connectivity-and-cloud`. Note especially the disputed claim about **OPC UA PubSub adoption** —\nproponents describe it as the convergence point; practitioners report limited\nproduction-grade broker implementations and continued dominance of client\u002Fserver mode as\nof 2026. Both observations can be true; be precise about which one you're relying on.\n\n### 14.6 Certification burden vs agility\n- *For heavy process*: in safety and regulated domains the artefacts **are** the product;\n  retrofitting them is more expensive than producing them (§11.3 → `embedded-security-safety-and-testing`).\n- *Against*: process without engineering judgment produces compliant, unsafe systems —\n  the Therac-25 and 737 MAX lessons are about organizational and requirements failure, not\n  missing paperwork. Certification is necessary and nowhere near sufficient.\n\n### 14.7 Test on hardware vs test on host\n- *For hardware-only*: \"the only test that counts is on the real thing\"; host tests can\n  pass while the product fails because your fakes lie.\n- *For host-first*: a 10-second feedback loop finds 10× more bugs than a 5-minute one, and\n  sanitizers find classes of bug that on-target testing cannot. The synthesis is\n  **both**: host tests gate every commit; hardware tests run nightly on a farm.\n\n### 14.8 Zephyr vs FreeRTOS\nCovered in §2.3 → `embedded-silicon-and-firmware-models`. Add: for CRA-era products the maintained-security-process argument\nfavours Zephyr or FreeRTOS-LTS-with-EMP over any unmaintained or in-house kernel — the\n\"we wrote our own scheduler\" option now carries a regulatory cost it didn't in 2015.\n\n---\n\n## §15. The Canon — who and what to cite\n\n### 15.1 Books that practitioners actually reference\n\n| Author | Work | Why it matters |\n|---|---|---|\n| **Michael Barr** | *Programming Embedded Systems in C and C++*; **Barr Group Embedded C Coding Standard** | The coding standard is a genuinely usable, rule-by-rule document designed to prevent specific bugs |\n| **Jack Ganssle** | *The Art of Designing Embedded Systems*; *The Embedded Muse* newsletter | Decades of hard-won engineering-management and firmware-quality wisdom; the standards\u002Fdiscipline advocate |\n| **Miro Samek** | *Practical UML Statecharts in C\u002FC++* (QP framework) | The definitive treatment of hierarchical state machines and the active-object model in firmware |\n| **Elecia White** | *Making Embedded Systems* (2nd ed.) | The best modern on-ramp; strong on architecture and the engineer's mindset |\n| **Joseph Yiu** | *The Definitive Guide to Arm Cortex-M0\u002FM3\u002FM4\u002FM23\u002FM33* | The authoritative Cortex-M architecture reference outside Arm's own TRMs |\n| **Philip Koopman** | *Better Embedded System Software*; *Understanding Checksums and CRCs*; the Toyota UA analysis | The safety\u002Freliability authority; his CRC selection work and his expert testimony on Toyota are both foundational |\n| **James Grenning** | *Test-Driven Development for Embedded C* | The book that made host-based TDD for firmware a mainstream practice |\n| **Bruce Powel Douglass** | *Design Patterns for Embedded Systems in C*; *Real-Time Agility* | Catalogue of RT patterns with concrete trade-off analysis |\n| **Christopher Kormanyos** | *Real-Time C++* | The reference for using modern C++ properly on microcontrollers |\n| **Jean Labrosse** | *MicroC\u002FOS-II \u002F µC\u002FOS-III* books | Written by the kernel author; the classic \"how an RTOS actually works\" text |\n| **Jonathan Valvano** | *Embedded Systems* series | Rigorous academic treatment with real hardware |\n| **Colin Walls** | *Embedded Software: The Works* | Broad practitioner survey |\n| **Rust Embedded WG** | *The Embedded Rust Book*, *Discovery*, *The Embedonomicon* | The canonical embedded Rust texts |\n\n### 15.2 Primary documentation (always prefer over blogs)\n- **Arm**: Architecture Reference Manuals (ARMv7-M ARM, ARMv8-M ARM), core Technical\n  Reference Manuals, CMSIS documentation, and Arm's application notes.\n- **Zephyr**: `docs.zephyrproject.org` — release notes, migration guides, devicetree\n  bindings index.\n- **FreeRTOS**: `freertos.org` — the API docs and the \"FreeRTOS on Cortex-M\" pages,\n  especially the interrupt-priority section.\n- **Espressif**: ESP-IDF Programming Guide (versioned per chip), plus the technical\n  reference manuals and **errata**.\n- **Silicon vendors**: reference manual + datasheet + **errata sheet** (read the errata;\n  the bug you're chasing is often in there) + app notes.\n- **IETF RFCs** worth knowing by number: **7228** (terminology for constrained-node\n  networks — defines Class 0\u002F1\u002F2 devices), **7252** (CoAP), **8323** (CoAP over TCP\u002FTLS),\n  **8949** (CBOR), **9019**\u002F**9124** (SUIT firmware update), **9147** (DTLS 1.3),\n  **8554** (LMS), **8391** (XMSS).\n- **Standards bodies**: MISRA (`misra.org.uk`), IEC\u002FISO, IEEE 802.1\u002F802.3, Bluetooth SIG,\n  CSA (`csa-iot.org`), OPC Foundation, LoRa Alliance, 3GPP.\n\n### 15.3 Ongoing sources worth following\n**Interrupt** (Memfault's engineering blog — consistently the best deep firmware writing\nbeing published), **Embedded Artistry** (Phillip Johnston — architecture and process),\n**Jack Ganssle's Embedded Muse**, **Beningo Embedded Group** (Jacob Beningo),\n**Ferrous Systems** blog (Rust safety-critical), **embedded.fm** podcast (Elecia White),\n**The Amp Hour**, **Phil's Lab** (hardware\u002Ffirmware crossover), **CNX Software** (news),\n**\u002Fr\u002Fembedded** (surprisingly high signal for tooling and part-selection questions),\nand the **Rust Blog's** safety-critical series.\n\n---\n\n## §16. Case Studies — the failures everyone should know\n\n| Case | What happened | The transferable lesson |\n|---|---|---|\n| **Therac-25** (1985–87) | Radiation therapy machine gave massive overdoses; a race condition between the UI task and the setup task, plus a one-byte counter overflow, reachable only when an operator typed quickly. Hardware interlocks had been *removed* in favour of software. | Removing hardware protection because \"software will handle it\" is the original sin. Also: concurrency bugs are reachable by timing you didn't imagine, and a vendor who dismisses reports as impossible is a systemic failure. |\n| **Ariane 5 Flight 501** (1996) | Reused Ariane 4 inertial reference software; a 64-bit float horizontal-velocity value converted to a 16-bit signed int overflowed on a trajectory it was never designed for. The exception handler shut the unit down; the redundant unit ran identical code and failed identically. | **Reuse without re-validating the operating envelope is not reuse.** Identical redundancy protects against random faults, not systematic ones. |\n| **Mars Pathfinder** (1997) | Repeated system resets on Mars. A low-priority meteorological task held a mutex on the information bus; a high-priority bus-management task blocked on it; a medium-priority comms task preempted the low-priority one. Classic **priority inversion**; the watchdog reset the system. | Fixed remotely by enabling **priority inheritance** on that mutex. The reason every RTOS mutex now offers PI, and the reason you should ship a debug\u002Ftrace capability you can enable in the field. |\n| **Toyota unintended acceleration** (analysed 2013) | Koopman's expert analysis found ~10,000 global variables, deeply nested logic, stack overflow risk, a single-point-of-failure task, inadequate watchdog design, and recursion — in software controlling throttle. | The watchdog architecture matters as much as the code (§5.9 → `embedded-languages-realtime-and-patterns`). Complexity metrics and global-state count are safety-relevant. Firmware quality is legally discoverable. |\n| **Boeing 737 MAX \u002F MCAS** (2018–19) | A flight-control function authorized to command large nose-down trim, driven by a **single** angle-of-attack sensor, with a disagreement alert sold as an option, and inadequate pilot documentation. | Single-sensor authority over a safety-critical actuator is a requirements\u002Farchitecture failure, not a coding failure. Certification did not catch it. |\n| **Stuxnet** (2010) | Targeted Siemens S7 PLCs, altered centrifuge speeds while replaying recorded normal values to the HMI. | Air gaps are a myth; OT is a target; **the HMI can lie**. Drove the creation of the modern ICS security discipline and much of IEC 62443's urgency. |\n| **Mirai** (2016) | Botnet built by scanning for IoT devices with **default telnet credentials**; used to launch record DDoS. | Why every regulation since (ETSI 303 645, PSTI, EN 18031, CRA) bans universal default passwords. The simplest possible attack, at enormous scale. |\n| **Jeep Cherokee remote hack** (Miller\u002FValasek, 2015) | Remote compromise via the cellular-connected head unit, then pivot onto the CAN bus to control steering and brakes. 1.4 M vehicle recall. | **Flat internal networks turn one compromised component into total compromise.** The direct ancestor of automotive gateway\u002Fdomain-controller architectures and UNECE R155. |\n| **Ukraine grid attacks** (2015, 2016 Industroyer) | Coordinated intrusion opened breakers; 2016's Industroyer\u002FCrashOverride spoke IEC 60870-5-101\u002F104, IEC 61850, and OPC DA natively. | Attackers learn your protocols. Protocol-aware malware is the norm, not the exception. |\n| **Triton \u002F Trisis** (2017) | Malware targeting Triconex **Safety Instrumented Systems** — an attempt to disable the last line of defence against a physical catastrophe. | The safety system is itself a target. Safety and security cannot be separate programmes. |\n| **Ripple20 \u002F URGENT-11** (2019–20) | Vulnerabilities in the Treck and VxWorks TCP\u002FIP stacks propagated into hundreds of millions of devices across every industry — most vendors could not tell whether they were affected. | The birth of the SBOM mandate. **You cannot patch what you cannot inventory.** |\n| **Colonial Pipeline** (2021) | Ransomware hit IT\u002Fbilling; operations were shut down precautionarily because the OT\u002FIT boundary couldn't be trusted. | Business continuity, not just technical compromise. The Purdue boundary must be *designed and testable*, not assumed. |\n| **Log4Shell** (2021) | A logging library vulnerability with unbounded blast radius across the software supply chain. | Accelerated SBOM\u002FVEX adoption and directly informs the CRA's supply-chain provisions. |\n\n---\n\n## §17. Currency Snapshot — verified August 2026\n\nEverything in this section decays. Re-verify against the primary source before relying on\na date or version number.\n\n| Thing | Status as of Aug 2026 | Decay risk |\n|---|---|---|\n| **Zephyr** | 4.4 (Apr 2026) stable; **v3.7 is current LTS**; v4.5 due Oct 2026; **v4.6 planned LTS Apr 2027**; 6-month Apr\u002FOct cadence | High — releases every 6 months |\n| **FreeRTOS** | **202604 LTS**, kernel **v11.3.0**; coreMQTT **v5.0.2 adds MQTT v5**; SMP in mainline since v11.0; EMP offers up to 10 extra years of patches | Medium |\n| **Linux \u002F PREEMPT_RT** | PREEMPT_RT **mainlined in 6.12** (Sept 2024, x86\u002Farm64\u002FRISC-V); 6.18 is the current LTS; 7.0 released May 2026 | Medium |\n| **Yocto** | **6.0 \"Wrynose\" LTS** (May 2026), Linux 6.18, GCC 15.2, glibc 2.43, supported to **Apr 2030**; explicit SBOM\u002FCVE work for CRA. 5.3 Whinlatter EOL June 2026 | Low (LTS) |\n| **ESP-IDF** | **v6.0** (Mar 2026): full support for ESP32-C5\u002FC61, preview H21\u002FH4; picolibc; PSA Crypto replacing legacy mbedTLS APIs; **recovery bootloader on C5\u002FC61**; warnings-as-errors default; legacy ADC\u002FDAC\u002FI2S drivers removed. v6.1 in beta | High |\n| **Rust embedded** | **embedded-hal 1.0 stable**; Embassy is the de facto async runtime, compiles on stable since Rust 1.75; probe-rs has largely displaced OpenOCD in Rust workflows; esp-rs is Espressif-official | Medium |\n| **Ferrocene** | TÜV SÜD-qualified: ISO 26262 **ASIL D**, IEC 61508 **SIL 3** (supporting SIL 4), IEC 62304 **Class C**; **certified `core` subset at SIL 2 \u002F ASIL B** (25.11.0, extended in 26.02.0); targets incl. Armv7E-M, Armv8-A, QNX | Medium |\n| **MISRA** | **MISRA C:2025** (Mar 2025) current, ~225 guidelines, C90–C18; **MISRA C++:2023** current (C++17, ~179 rules, absorbed AUTOSAR C++14); new MISRA C++ in development, no date | Low |\n| **EU CRA** | ⚠️ **Reporting obligations start 11 Sept 2026** (24 h \u002F 72 h \u002F 14 d); full application **11 Dec 2027**; Commission guidance published 27 Jul 2026 | **Imminent** |\n| **EU RED cyber** | Mandatory since **1 Aug 2025**; EN 18031-1\u002F2\u002F3 harmonised **with restrictions** (Decision 2025\u002F138) — restricted clauses still need a Notified Body | Low |\n| **Bluetooth** | Core **6.3** (May 2026); 6.2 (Nov 2025) cut min connection interval to **375 µs**; 6.0 introduced Channel Sounding; twice-yearly cadence | Medium |\n| **Matter** | 1.5 (Nov 2025) added cameras\u002Fclosures\u002Fsoil sensors; 1.5.1 (Mar 2026) camera refinements; **1.6 reported as current** mid-2026 | High |\n| **Cellular IoT** | 2G\u002F3G sunset in most markets; **AT&T shut down NB-IoT**; LTE-M leads roaming; Cat-1\u002FCat-1bis is the safe global default; RedCap live with **~30 operators in 21 countries** (early 2026), broader 2027–28; **SGP.32 eSIM** accelerating | Medium |\n| **Edge AI** | LiteRT-for-Microcontrollers still the most-used MCU runtime; ExecuTorch growing (best with NPUs); **Ethos-U85** adds transformer support + TOSA; ONNX + INT8 the de facto interchange | Medium |\n| **Azure IoT** | IoT Hub + **IoT Operations** (Arc\u002FK8s edge, MQTT broker, OPC UA connectors, 72 h offline); releases 2510, 2603 GA'd persistence, X.509 via Device Registry, no-code dataflow graphs. IoT Central retirement notice was **retracted as erroneous** — verify current status | High |\n| **AWS IoT** | IoT Core + Greengrass **v2**; ⚠️ **Greengrass V1 end of support 7 Oct 2026** | Medium |\n| **Google Cloud IoT Core** | **Retired 16 Aug 2023.** No managed replacement on GCP | Settled |\n| **Single-pair Ethernet** | IEEE 802.3cg: 10BASE-T1L (1000 m, 10 Mbps) and 10BASE-T1S (multidrop, ~25 m); **Ethernet-APL** builds on T1L for intrinsically-safe process (trunk-and-spur, ~1000 m, ~50 devices, ~500 mW\u002Fspur); 10BASE-T1M and 100BASE-T1L in progress | Medium |\n\n**What goes stale fastest**, in order: cloud platform service names and retirement dates;\nMatter\u002FBluetooth spec versions; vendor SDK major versions; regulatory deadlines. **What\nessentially never goes stale**: §1 → `embedded-silicon-and-firmware-models` (silicon fundamentals), §4 → `embedded-languages-realtime-and-patterns` (concurrency), §5 → `embedded-languages-realtime-and-patterns` (patterns),\n§7 → `embedded-industrial-control-connectivity-and-cloud` (control theory), §16 (case studies).\n\n---\n\n## §18. Quick Reference Cards\n\n### 18.1 \"Why doesn't my peripheral work?\" — in diagnostic order\n1. Is the **peripheral clock enabled**? (+ dummy read-back after enabling)\n2. Is the **pin muxed** to the right alternate function, at the right speed\u002Fpull?\n3. Is the peripheral **out of reset** and **enabled**?\n4. For SPI: **right mode** (try all four). For I²C: **pull-ups sized**, right 7-bit address\n   (shifted or not — datasheets disagree).\n5. Is the **interrupt enabled** in both the peripheral **and** the NVIC?\n6. Is the **ISR name** exactly the weak symbol from the startup file? (A typo silently\n   leaves the default infinite-loop handler in the vector table.)\n7. Is **DMA** configured with the right stream\u002Fchannel\u002Frequest, direction, and increment\n   modes — and is the buffer **32-byte aligned and cache-maintained** on an M7?\n8. Scope it. The bus either has edges or it doesn't.\n\n### 18.2 \"Why does it crash randomly?\"\nStack overflow → interrupt priority misconfiguration (FreeRTOS `configMAX_SYSCALL...`) →\nrace on a shared variable → buffer overrun → uninitialized pointer\u002Fvariable → cache\ncoherency with DMA → power supply droop\u002Fbrown-out → flash corruption from an unsafe write\n→ hardware errata. Enable the specific fault handlers (§5.8 → `embedded-languages-realtime-and-patterns`) and MPU stack guards before\nguessing.\n\n### 18.3 \"Why is battery life bad?\"\nMeasure first, with a current probe, at µs resolution. Then check: never actually entering\ndeep sleep (a peripheral or debugger holds a clock domain); tickless idle not enabled;\nfloating GPIOs; regulator\u002Fpull-up quiescent current; radio interval too aggressive;\nretries because of poor RF; a chatty logging path; wake-up sources firing more often than\nyou think.\n\n### 18.4 Numbers worth memorizing\n- Cortex-M exception entry: **~12 cycles** (16 with FP stacking); tail-chained: **~6**.\n- 32-bit ms counter rolls over at **49.7 days**; 32-bit µs at **71.6 minutes**.\n- I²C standard\u002Ffast\u002Ffast+\u002Fhigh-speed: **100 k \u002F 400 k \u002F 1 M \u002F 3.4 M**.\n- CAN classic max **1 Mbps**; CAN-FD data phase up to **8 Mbps**.\n- BLE connection interval range **7.5 ms – 4 s** (1.25 ms units); **375 µs** minimum from\n  Bluetooth 6.2.\n- Default BLE ATT MTU **23 bytes** (20 payload) until negotiated.\n- LoRaWAN EU868 duty cycle typically **1%** per sub-band — a legal limit.\n- MQTT QoS 1 = 2 messages; QoS 2 = 4 messages.\n- Rate-monotonic utilization bound: **69.3%** as N→∞.\n- Control loop sampling: **10–20×** the desired closed-loop bandwidth.\n- Cascade loops: each inner loop **5–10×** faster than the one enclosing it.\n- Cache line on Cortex-M7: **32 bytes** — align every DMA buffer to it.\n- TLS 1.2\u002F1.3 client on an MCU: roughly **20–40 KB flash, 15–30 KB RAM**.\n- LiteRT-Micro core runtime: **~16 KB** on Cortex-M3.\n- UART at 115200: **~87 µs per character**. Never in an ISR.\n\n### 18.5 Review checklist for someone else's firmware\n- [ ] Is there a hardware seam that makes logic host-testable? (§5.1 → `embedded-languages-realtime-and-patterns`)\n- [ ] Any `delay()`, blocking call, or `malloc` in a real-time path? (§5.10 → `embedded-languages-realtime-and-patterns`)\n- [ ] Every `while(!flag)` bounded by a timeout?\n- [ ] Every return code checked?\n- [ ] Time comparisons rollover-safe? (§5.5 → `embedded-languages-realtime-and-patterns`)\n- [ ] ISRs short, non-blocking, correct `FromISR` APIs, correct priorities? (§5.7 → `embedded-languages-realtime-and-patterns`)\n- [ ] Shared variables `volatile` **and** atomic\u002Flocked? (§4.3 → `embedded-languages-realtime-and-patterns`)\n- [ ] Mutexes (with PI) for locking, not binary semaphores? (§2.4 → `embedded-silicon-and-firmware-models`)\n- [ ] Watchdog supervised, not blindly kicked? (§5.9 → `embedded-languages-realtime-and-patterns`)\n- [ ] Fault handler captures PC\u002FLR\u002FCFSR and persists it? (§5.8 → `embedded-languages-realtime-and-patterns`)\n- [ ] Stack sizes justified by high-water marks + MPU guards? (§1.2 → `embedded-silicon-and-firmware-models`)\n- [ ] DMA buffers aligned and cache-maintained (M7)? (§1.2 → `embedded-silicon-and-firmware-models`)\n- [ ] Secrets not in flash; OTA signed with rollback protection? (§9.3 → `embedded-industrial-control-connectivity-and-cloud`, §10 → `embedded-security-safety-and-testing`)\n- [ ] Build reproducible, versioned, SBOM emitted? (§12.6 → `embedded-security-safety-and-testing`)\n\n---\n\n## §19. Sources and Method\n\n**Method note.** This document was assembled as a narrative (not systematic) review.\nDurable engineering content (§1 → `embedded-silicon-and-firmware-models`, §4 → `embedded-languages-realtime-and-patterns`, §5 → `embedded-languages-realtime-and-patterns`, §7 → `embedded-industrial-control-connectivity-and-cloud`, §11 → `embedded-security-safety-and-testing`, §16) is synthesized from established\npractice and the canonical literature in §15. Every **time-sensitive** claim — versions,\ndates, regulatory deadlines, product status — was verified against a primary or\nnear-primary source in **August 2026** and is flagged in §17 with a decay-risk rating.\nWhere practitioners disagree, §14 presents both cases rather than adjudicating, and\ndisputed claims (notably OPC UA PubSub adoption and Azure IoT Central's status) are\nmarked as disputed in place.\n\n**Search log** (queries run, August 2026): Zephyr LTS status · embedded-hal 1.0 \u002F Embassy \u002F\nRTIC ecosystem · EU CRA deadlines · Matter specification releases · Bluetooth Core\nversions · Azure IoT Central\u002FHub\u002FOperations status · MISRA C:2025 and C++:2023 · EN 18031\nand the RED delegated act · Unified Namespace \u002F Sparkplug B \u002F OPC UA · TinyML runtimes and\nEthos-U · FreeRTOS LTS and kernel versions · ESP-IDF v6.0 and RISC-V ESP32 parts ·\nMCUboot\u002FSUIT\u002Fpost-quantum firmware signing · PREEMPT_RT mainlining and Yocto releases ·\nFerrocene safety qualification · IEC 62443 parts and current practice · cellular IoT\n(NB-IoT\u002FLTE-M\u002FRedCap) status · single-pair Ethernet and Ethernet-APL · AWS IoT\nCore\u002FGreengrass status.\n\n**Primary sources consulted (selected):**\n- Zephyr Project release documentation and release-management wiki — docs.zephyrproject.org\n- FreeRTOS 202604 LTS announcement (AWS) and FreeRTOS-Kernel release notes — freertos.org, github.com\u002FFreeRTOS\n- European Commission, Cyber Resilience Act and CRA reporting obligations — digital-strategy.ec.europa.eu\n- CEN-CENELEC and Commission Implementing Decision (EU) 2025\u002F138 on EN 18031 harmonisation\n- MISRA Consortium — misra.org.uk (MISRA C and MISRA C++ pages)\n- Bluetooth SIG — bluetooth.com (Core 6.0\u002F6.2 feature overviews and release blogs)\n- Connectivity Standards Alliance — csa-iot.org (Matter 1.5, 1.5.1 releases)\n- Microsoft Learn \u002F Azure IoT Operations documentation and release notes; Microsoft Tech Community\n- AWS IoT Greengrass documentation (V1 end-of-support notice)\n- Espressif — ESP-IDF v6.0 announcement and Programming Guide\n- Yocto Project release notes 6.0 (Wrynose)\n- Ferrous Systems — Ferrocene qualification announcements and release notes\n- Arm Developer — Cortex-M and Ethos-U edge AI documentation\n- NIST SP 800-208; NSA CNSA 2.0 advisory; IETF RFCs 9019, 9124, 8554, 8391\n- Linux Foundation realtime wiki; Linux 6.12 release coverage\n- Embassy and rust-embedded working group documentation\n\n**Confidence statement.** High confidence in §1–§8 → `embedded-silicon-and-firmware-models`, `embedded-industrial-control-connectivity-and-cloud`, §11–§13 → `embedded-security-safety-and-testing`, §15–§16 and §18 (durable\nengineering and well-documented history). High confidence in §17's verified items as of\nthe stated date. Moderate confidence in market-adoption characterizations (§6.4 → `embedded-industrial-control-connectivity-and-cloud`, §8.1 → `embedded-industrial-control-connectivity-and-cloud`,\n§8.3 → `embedded-industrial-control-connectivity-and-cloud`) — these rest partly on vendor and practitioner commentary, where incentives differ;\nthey are stated as tendencies, not measurements.\n","# Embedded & IoT: Contested Questions, Canon, Case Studies, Currency, and Quick Reference\n\n> **Part 5 of 5** of the *Embedded Systems & IoT Controls — Deep Technical Reference* reference (plugin `embedded-iot-controls`), covering §14–§19. Sibling skills: `embedded-silicon-and-firmware-models` (§0–§2), `embedded-languages-realtime-and-patterns` (§3–§5), `embedded-industrial-control-connectivity-and-cloud` (§6–§9), `embedded-security-safety-and-testing` (§10–§13). Section numbers are shared across the set; a reference written as §N → `skill` points into that sibling skill.\n>\n> **Currency:** Verified August 2026. See §17 below for the currency snapshot and what goes stale first.\n\n> **How to read this.** This is a reference, not a tutorial. Sections are independent.\n> Three markers appear throughout:\n> - **[UNIVERSAL]** — physics, math, or architecture. True regardless of vendor. Trust it.\n> - **[VENDOR]** — specific to a chip, SDK, or toolchain. Verify against the datasheet\u002Ferrata.\n> - **[CONTESTED]** — competent engineers disagree. Both cases are presented. Do not pick a side on the reader's behalf.\n>\n> **⚠️ GOTCHA** boxes mark the failure modes that actually burn people. They are the\n> highest-value content in this document.\n\n---\n\n## §14. Contested Questions — present both cases, don't adjudicate\n\nThese are the arguments where competent, experienced engineers genuinely disagree. When\nasked, give the strongest version of each side and the conditions that favour it. Do not\npresent one as settled.\n\n### 14.1 HAL vs bare registers\nCovered in §2.1 → `embedded-silicon-and-firmware-models`. Favouring factors: HAL when time-to-market, peripheral complexity, and\nerrata coverage dominate; registers when footprint, worst-case timing, and auditability\ndominate. Most shipping products use both, at different layers.\n\n### 14.2 C vs C++ vs Rust\nCovered in §3.4 → `embedded-languages-realtime-and-patterns`. The honest summary: **the memory-safety argument for Rust is\ntechnically strong and the ecosystem argument for C is practically strong**, and which\nwins depends entirely on your silicon, your team, and whether your product's threat model\nor certification path makes memory safety a first-order requirement.\n\n### 14.3 RTOS vs superloop\n- *For an RTOS*: independent activities with different rates and blocking I\u002FO become\n  tractable; you get standard primitives instead of hand-rolled ones; the ecosystem\n  (network stacks, MCUboot, shells) assumes one.\n- *For a superloop \u002F time-triggered design*: no context-switch overhead, no per-task\n  stacks, no priority inversion, no deadlock, no mutex bugs, and **the timing is\n  analyzable by inspection**. A large fraction of shipped embedded products are superloops\n  and are more reliable for it. Adding an RTOS to a system that didn't need one adds\n  a whole class of concurrency bugs in exchange for nothing.\n- The dividing line most people converge on: **an RTOS earns its keep when you have\n  genuinely blocking operations at different priorities**, not merely \"several things to\n  do.\"\n\n### 14.4 Vendor lock-in vs portability\n- *For going all-in on a vendor SDK* (ESP-IDF, nRF Connect SDK, STM32Cube): the\n  integration is deep and tested, connectivity stacks come pre-certified, support is real,\n  and you ship faster.\n- *For a portable core*: silicon shortages happen (2020–23 taught everyone this), pricing\n  changes, parts go EOL, and a product line that can't second-source a MCU is a business\n  risk. Portability lives in the layered architecture (§5.1 → `embedded-languages-realtime-and-patterns`), not in avoiding the SDK.\n\n### 14.5 OPC UA vs MQTT\u002FSparkplug for IIoT\nCovered in §6.4 → `embedded-industrial-control-connectivity-and-cloud`. Note especially the disputed claim about **OPC UA PubSub adoption** —\nproponents describe it as the convergence point; practitioners report limited\nproduction-grade broker implementations and continued dominance of client\u002Fserver mode as\nof 2026. Both observations can be true; be precise about which one you're relying on.\n\n### 14.6 Certification burden vs agility\n- *For heavy process*: in safety and regulated domains the artefacts **are** the product;\n  retrofitting them is more expensive than producing them (§11.3 → `embedded-security-safety-and-testing`).\n- *Against*: process without engineering judgment produces compliant, unsafe systems —\n  the Therac-25 and 737 MAX lessons are about organizational and requirements failure, not\n  missing paperwork. Certification is necessary and nowhere near sufficient.\n\n### 14.7 Test on hardware vs test on host\n- *For hardware-only*: \"the only test that counts is on the real thing\"; host tests can\n  pass while the product fails because your fakes lie.\n- *For host-first*: a 10-second feedback loop finds 10× more bugs than a 5-minute one, and\n  sanitizers find classes of bug that on-target testing cannot. The synthesis is\n  **both**: host tests gate every commit; hardware tests run nightly on a farm.\n\n### 14.8 Zephyr vs FreeRTOS\nCovered in §2.3 → `embedded-silicon-and-firmware-models`. Add: for CRA-era products the maintained-security-process argument\nfavours Zephyr or FreeRTOS-LTS-with-EMP over any unmaintained or in-house kernel — the\n\"we wrote our own scheduler\" option now carries a regulatory cost it didn't in 2015.\n\n---\n\n## §15. The Canon — who and what to cite\n\n### 15.1 Books that practitioners actually reference\n\n| Author | Work | Why it matters |\n|---|---|---|\n| **Michael Barr** | *Programming Embedded Systems in C and C++*; **Barr Group Embedded C Coding Standard** | The coding standard is a genuinely usable, rule-by-rule document designed to prevent specific bugs |\n| **Jack Ganssle** | *The Art of Designing Embedded Systems*; *The Embedded Muse* newsletter | Decades of hard-won engineering-management and firmware-quality wisdom; the standards\u002Fdiscipline advocate |\n| **Miro Samek** | *Practical UML Statecharts in C\u002FC++* (QP framework) | The definitive treatment of hierarchical state machines and the active-object model in firmware |\n| **Elecia White** | *Making Embedded Systems* (2nd ed.) | The best modern on-ramp; strong on architecture and the engineer's mindset |\n| **Joseph Yiu** | *The Definitive Guide to Arm Cortex-M0\u002FM3\u002FM4\u002FM23\u002FM33* | The authoritative Cortex-M architecture reference outside Arm's own TRMs |\n| **Philip Koopman** | *Better Embedded System Software*; *Understanding Checksums and CRCs*; the Toyota UA analysis | The safety\u002Freliability authority; his CRC selection work and his expert testimony on Toyota are both foundational |\n| **James Grenning** | *Test-Driven Development for Embedded C* | The book that made host-based TDD for firmware a mainstream practice |\n| **Bruce Powel Douglass** | *Design Patterns for Embedded Systems in C*; *Real-Time Agility* | Catalogue of RT patterns with concrete trade-off analysis |\n| **Christopher Kormanyos** | *Real-Time C++* | The reference for using modern C++ properly on microcontrollers |\n| **Jean Labrosse** | *MicroC\u002FOS-II \u002F µC\u002FOS-III* books | Written by the kernel author; the classic \"how an RTOS actually works\" text |\n| **Jonathan Valvano** | *Embedded Systems* series | Rigorous academic treatment with real hardware |\n| **Colin Walls** | *Embedded Software: The Works* | Broad practitioner survey |\n| **Rust Embedded WG** | *The Embedded Rust Book*, *Discovery*, *The Embedonomicon* | The canonical embedded Rust texts |\n\n### 15.2 Primary documentation (always prefer over blogs)\n- **Arm**: Architecture Reference Manuals (ARMv7-M ARM, ARMv8-M ARM), core Technical\n  Reference Manuals, CMSIS documentation, and Arm's application notes.\n- **Zephyr**: `docs.zephyrproject.org` — release notes, migration guides, devicetree\n  bindings index.\n- **FreeRTOS**: `freertos.org` — the API docs and the \"FreeRTOS on Cortex-M\" pages,\n  especially the interrupt-priority section.\n- **Espressif**: ESP-IDF Programming Guide (versioned per chip), plus the technical\n  reference manuals and **errata**.\n- **Silicon vendors**: reference manual + datasheet + **errata sheet** (read the errata;\n  the bug you're chasing is often in there) + app notes.\n- **IETF RFCs** worth knowing by number: **7228** (terminology for constrained-node\n  networks — defines Class 0\u002F1\u002F2 devices), **7252** (CoAP), **8323** (CoAP over TCP\u002FTLS),\n  **8949** (CBOR), **9019**\u002F**9124** (SUIT firmware update), **9147** (DTLS 1.3),\n  **8554** (LMS), **8391** (XMSS).\n- **Standards bodies**: MISRA (`misra.org.uk`), IEC\u002FISO, IEEE 802.1\u002F802.3, Bluetooth SIG,\n  CSA (`csa-iot.org`), OPC Foundation, LoRa Alliance, 3GPP.\n\n### 15.3 Ongoing sources worth following\n**Interrupt** (Memfault's engineering blog — consistently the best deep firmware writing\nbeing published), **Embedded Artistry** (Phillip Johnston — architecture and process),\n**Jack Ganssle's Embedded Muse**, **Beningo Embedded Group** (Jacob Beningo),\n**Ferrous Systems** blog (Rust safety-critical), **embedded.fm** podcast (Elecia White),\n**The Amp Hour**, **Phil's Lab** (hardware\u002Ffirmware crossover), **CNX Software** (news),\n**\u002Fr\u002Fembedded** (surprisingly high signal for tooling and part-selection questions),\nand the **Rust Blog's** safety-critical series.\n\n---\n\n## §16. Case Studies — the failures everyone should know\n\n| Case | What happened | The transferable lesson |\n|---|---|---|\n| **Therac-25** (1985–87) | Radiation therapy machine gave massive overdoses; a race condition between the UI task and the setup task, plus a one-byte counter overflow, reachable only when an operator typed quickly. Hardware interlocks had been *removed* in favour of software. | Removing hardware protection because \"software will handle it\" is the original sin. Also: concurrency bugs are reachable by timing you didn't imagine, and a vendor who dismisses reports as impossible is a systemic failure. |\n| **Ariane 5 Flight 501** (1996) | Reused Ariane 4 inertial reference software; a 64-bit float horizontal-velocity value converted to a 16-bit signed int overflowed on a trajectory it was never designed for. The exception handler shut the unit down; the redundant unit ran identical code and failed identically. | **Reuse without re-validating the operating envelope is not reuse.** Identical redundancy protects against random faults, not systematic ones. |\n| **Mars Pathfinder** (1997) | Repeated system resets on Mars. A low-priority meteorological task held a mutex on the information bus; a high-priority bus-management task blocked on it; a medium-priority comms task preempted the low-priority one. Classic **priority inversion**; the watchdog reset the system. | Fixed remotely by enabling **priority inheritance** on that mutex. The reason every RTOS mutex now offers PI, and the reason you should ship a debug\u002Ftrace capability you can enable in the field. |\n| **Toyota unintended acceleration** (analysed 2013) | Koopman's expert analysis found ~10,000 global variables, deeply nested logic, stack overflow risk, a single-point-of-failure task, inadequate watchdog design, and recursion — in software controlling throttle. | The watchdog architecture matters as much as the code (§5.9 → `embedded-languages-realtime-and-patterns`). Complexity metrics and global-state count are safety-relevant. Firmware quality is legally discoverable. |\n| **Boeing 737 MAX \u002F MCAS** (2018–19) | A flight-control function authorized to command large nose-down trim, driven by a **single** angle-of-attack sensor, with a disagreement alert sold as an option, and inadequate pilot documentation. | Single-sensor authority over a safety-critical actuator is a requirements\u002Farchitecture failure, not a coding failure. Certification did not catch it. |\n| **Stuxnet** (2010) | Targeted Siemens S7 PLCs, altered centrifuge speeds while replaying recorded normal values to the HMI. | Air gaps are a myth; OT is a target; **the HMI can lie**. Drove the creation of the modern ICS security discipline and much of IEC 62443's urgency. |\n| **Mirai** (2016) | Botnet built by scanning for IoT devices with **default telnet credentials**; used to launch record DDoS. | Why every regulation since (ETSI 303 645, PSTI, EN 18031, CRA) bans universal default passwords. The simplest possible attack, at enormous scale. |\n| **Jeep Cherokee remote hack** (Miller\u002FValasek, 2015) | Remote compromise via the cellular-connected head unit, then pivot onto the CAN bus to control steering and brakes. 1.4 M vehicle recall. | **Flat internal networks turn one compromised component into total compromise.** The direct ancestor of automotive gateway\u002Fdomain-controller architectures and UNECE R155. |\n| **Ukraine grid attacks** (2015, 2016 Industroyer) | Coordinated intrusion opened breakers; 2016's Industroyer\u002FCrashOverride spoke IEC 60870-5-101\u002F104, IEC 61850, and OPC DA natively. | Attackers learn your protocols. Protocol-aware malware is the norm, not the exception. |\n| **Triton \u002F Trisis** (2017) | Malware targeting Triconex **Safety Instrumented Systems** — an attempt to disable the last line of defence against a physical catastrophe. | The safety system is itself a target. Safety and security cannot be separate programmes. |\n| **Ripple20 \u002F URGENT-11** (2019–20) | Vulnerabilities in the Treck and VxWorks TCP\u002FIP stacks propagated into hundreds of millions of devices across every industry — most vendors could not tell whether they were affected. | The birth of the SBOM mandate. **You cannot patch what you cannot inventory.** |\n| **Colonial Pipeline** (2021) | Ransomware hit IT\u002Fbilling; operations were shut down precautionarily because the OT\u002FIT boundary couldn't be trusted. | Business continuity, not just technical compromise. The Purdue boundary must be *designed and testable*, not assumed. |\n| **Log4Shell** (2021) | A logging library vulnerability with unbounded blast radius across the software supply chain. | Accelerated SBOM\u002FVEX adoption and directly informs the CRA's supply-chain provisions. |\n\n---\n\n## §17. Currency Snapshot — verified August 2026\n\nEverything in this section decays. Re-verify against the primary source before relying on\na date or version number.\n\n| Thing | Status as of Aug 2026 | Decay risk |\n|---|---|---|\n| **Zephyr** | 4.4 (Apr 2026) stable; **v3.7 is current LTS**; v4.5 due Oct 2026; **v4.6 planned LTS Apr 2027**; 6-month Apr\u002FOct cadence | High — releases every 6 months |\n| **FreeRTOS** | **202604 LTS**, kernel **v11.3.0**; coreMQTT **v5.0.2 adds MQTT v5**; SMP in mainline since v11.0; EMP offers up to 10 extra years of patches | Medium |\n| **Linux \u002F PREEMPT_RT** | PREEMPT_RT **mainlined in 6.12** (Sept 2024, x86\u002Farm64\u002FRISC-V); 6.18 is the current LTS; 7.0 released May 2026 | Medium |\n| **Yocto** | **6.0 \"Wrynose\" LTS** (May 2026), Linux 6.18, GCC 15.2, glibc 2.43, supported to **Apr 2030**; explicit SBOM\u002FCVE work for CRA. 5.3 Whinlatter EOL June 2026 | Low (LTS) |\n| **ESP-IDF** | **v6.0** (Mar 2026): full support for ESP32-C5\u002FC61, preview H21\u002FH4; picolibc; PSA Crypto replacing legacy mbedTLS APIs; **recovery bootloader on C5\u002FC61**; warnings-as-errors default; legacy ADC\u002FDAC\u002FI2S drivers removed. v6.1 in beta | High |\n| **Rust embedded** | **embedded-hal 1.0 stable**; Embassy is the de facto async runtime, compiles on stable since Rust 1.75; probe-rs has largely displaced OpenOCD in Rust workflows; esp-rs is Espressif-official | Medium |\n| **Ferrocene** | TÜV SÜD-qualified: ISO 26262 **ASIL D**, IEC 61508 **SIL 3** (supporting SIL 4), IEC 62304 **Class C**; **certified `core` subset at SIL 2 \u002F ASIL B** (25.11.0, extended in 26.02.0); targets incl. Armv7E-M, Armv8-A, QNX | Medium |\n| **MISRA** | **MISRA C:2025** (Mar 2025) current, ~225 guidelines, C90–C18; **MISRA C++:2023** current (C++17, ~179 rules, absorbed AUTOSAR C++14); new MISRA C++ in development, no date | Low |\n| **EU CRA** | ⚠️ **Reporting obligations start 11 Sept 2026** (24 h \u002F 72 h \u002F 14 d); full application **11 Dec 2027**; Commission guidance published 27 Jul 2026 | **Imminent** |\n| **EU RED cyber** | Mandatory since **1 Aug 2025**; EN 18031-1\u002F2\u002F3 harmonised **with restrictions** (Decision 2025\u002F138) — restricted clauses still need a Notified Body | Low |\n| **Bluetooth** | Core **6.3** (May 2026); 6.2 (Nov 2025) cut min connection interval to **375 µs**; 6.0 introduced Channel Sounding; twice-yearly cadence | Medium |\n| **Matter** | 1.5 (Nov 2025) added cameras\u002Fclosures\u002Fsoil sensors; 1.5.1 (Mar 2026) camera refinements; **1.6 reported as current** mid-2026 | High |\n| **Cellular IoT** | 2G\u002F3G sunset in most markets; **AT&T shut down NB-IoT**; LTE-M leads roaming; Cat-1\u002FCat-1bis is the safe global default; RedCap live with **~30 operators in 21 countries** (early 2026), broader 2027–28; **SGP.32 eSIM** accelerating | Medium |\n| **Edge AI** | LiteRT-for-Microcontrollers still the most-used MCU runtime; ExecuTorch growing (best with NPUs); **Ethos-U85** adds transformer support + TOSA; ONNX + INT8 the de facto interchange | Medium |\n| **Azure IoT** | IoT Hub + **IoT Operations** (Arc\u002FK8s edge, MQTT broker, OPC UA connectors, 72 h offline); releases 2510, 2603 GA'd persistence, X.509 via Device Registry, no-code dataflow graphs. IoT Central retirement notice was **retracted as erroneous** — verify current status | High |\n| **AWS IoT** | IoT Core + Greengrass **v2**; ⚠️ **Greengrass V1 end of support 7 Oct 2026** | Medium |\n| **Google Cloud IoT Core** | **Retired 16 Aug 2023.** No managed replacement on GCP | Settled |\n| **Single-pair Ethernet** | IEEE 802.3cg: 10BASE-T1L (1000 m, 10 Mbps) and 10BASE-T1S (multidrop, ~25 m); **Ethernet-APL** builds on T1L for intrinsically-safe process (trunk-and-spur, ~1000 m, ~50 devices, ~500 mW\u002Fspur); 10BASE-T1M and 100BASE-T1L in progress | Medium |\n\n**What goes stale fastest**, in order: cloud platform service names and retirement dates;\nMatter\u002FBluetooth spec versions; vendor SDK major versions; regulatory deadlines. **What\nessentially never goes stale**: §1 → `embedded-silicon-and-firmware-models` (silicon fundamentals), §4 → `embedded-languages-realtime-and-patterns` (concurrency), §5 → `embedded-languages-realtime-and-patterns` (patterns),\n§7 → `embedded-industrial-control-connectivity-and-cloud` (control theory), §16 (case studies).\n\n---\n\n## §18. Quick Reference Cards\n\n### 18.1 \"Why doesn't my peripheral work?\" — in diagnostic order\n1. Is the **peripheral clock enabled**? (+ dummy read-back after enabling)\n2. Is the **pin muxed** to the right alternate function, at the right speed\u002Fpull?\n3. Is the peripheral **out of reset** and **enabled**?\n4. For SPI: **right mode** (try all four). For I²C: **pull-ups sized**, right 7-bit address\n   (shifted or not — datasheets disagree).\n5. Is the **interrupt enabled** in both the peripheral **and** the NVIC?\n6. Is the **ISR name** exactly the weak symbol from the startup file? (A typo silently\n   leaves the default infinite-loop handler in the vector table.)\n7. Is **DMA** configured with the right stream\u002Fchannel\u002Frequest, direction, and increment\n   modes — and is the buffer **32-byte aligned and cache-maintained** on an M7?\n8. Scope it. The bus either has edges or it doesn't.\n\n### 18.2 \"Why does it crash randomly?\"\nStack overflow → interrupt priority misconfiguration (FreeRTOS `configMAX_SYSCALL...`) →\nrace on a shared variable → buffer overrun → uninitialized pointer\u002Fvariable → cache\ncoherency with DMA → power supply droop\u002Fbrown-out → flash corruption from an unsafe write\n→ hardware errata. Enable the specific fault handlers (§5.8 → `embedded-languages-realtime-and-patterns`) and MPU stack guards before\nguessing.\n\n### 18.3 \"Why is battery life bad?\"\nMeasure first, with a current probe, at µs resolution. Then check: never actually entering\ndeep sleep (a peripheral or debugger holds a clock domain); tickless idle not enabled;\nfloating GPIOs; regulator\u002Fpull-up quiescent current; radio interval too aggressive;\nretries because of poor RF; a chatty logging path; wake-up sources firing more often than\nyou think.\n\n### 18.4 Numbers worth memorizing\n- Cortex-M exception entry: **~12 cycles** (16 with FP stacking); tail-chained: **~6**.\n- 32-bit ms counter rolls over at **49.7 days**; 32-bit µs at **71.6 minutes**.\n- I²C standard\u002Ffast\u002Ffast+\u002Fhigh-speed: **100 k \u002F 400 k \u002F 1 M \u002F 3.4 M**.\n- CAN classic max **1 Mbps**; CAN-FD data phase up to **8 Mbps**.\n- BLE connection interval range **7.5 ms – 4 s** (1.25 ms units); **375 µs** minimum from\n  Bluetooth 6.2.\n- Default BLE ATT MTU **23 bytes** (20 payload) until negotiated.\n- LoRaWAN EU868 duty cycle typically **1%** per sub-band — a legal limit.\n- MQTT QoS 1 = 2 messages; QoS 2 = 4 messages.\n- Rate-monotonic utilization bound: **69.3%** as N→∞.\n- Control loop sampling: **10–20×** the desired closed-loop bandwidth.\n- Cascade loops: each inner loop **5–10×** faster than the one enclosing it.\n- Cache line on Cortex-M7: **32 bytes** — align every DMA buffer to it.\n- TLS 1.2\u002F1.3 client on an MCU: roughly **20–40 KB flash, 15–30 KB RAM**.\n- LiteRT-Micro core runtime: **~16 KB** on Cortex-M3.\n- UART at 115200: **~87 µs per character**. Never in an ISR.\n\n### 18.5 Review checklist for someone else's firmware\n- [ ] Is there a hardware seam that makes logic host-testable? (§5.1 → `embedded-languages-realtime-and-patterns`)\n- [ ] Any `delay()`, blocking call, or `malloc` in a real-time path? (§5.10 → `embedded-languages-realtime-and-patterns`)\n- [ ] Every `while(!flag)` bounded by a timeout?\n- [ ] Every return code checked?\n- [ ] Time comparisons rollover-safe? (§5.5 → `embedded-languages-realtime-and-patterns`)\n- [ ] ISRs short, non-blocking, correct `FromISR` APIs, correct priorities? (§5.7 → `embedded-languages-realtime-and-patterns`)\n- [ ] Shared variables `volatile` **and** atomic\u002Flocked? (§4.3 → `embedded-languages-realtime-and-patterns`)\n- [ ] Mutexes (with PI) for locking, not binary semaphores? (§2.4 → `embedded-silicon-and-firmware-models`)\n- [ ] Watchdog supervised, not blindly kicked? (§5.9 → `embedded-languages-realtime-and-patterns`)\n- [ ] Fault handler captures PC\u002FLR\u002FCFSR and persists it? (§5.8 → `embedded-languages-realtime-and-patterns`)\n- [ ] Stack sizes justified by high-water marks + MPU guards? (§1.2 → `embedded-silicon-and-firmware-models`)\n- [ ] DMA buffers aligned and cache-maintained (M7)? (§1.2 → `embedded-silicon-and-firmware-models`)\n- [ ] Secrets not in flash; OTA signed with rollback protection? (§9.3 → `embedded-industrial-control-connectivity-and-cloud`, §10 → `embedded-security-safety-and-testing`)\n- [ ] Build reproducible, versioned, SBOM emitted? (§12.6 → `embedded-security-safety-and-testing`)\n\n---\n\n## §19. Sources and Method\n\n**Method note.** This document was assembled as a narrative (not systematic) review.\nDurable engineering content (§1 → `embedded-silicon-and-firmware-models`, §4 → `embedded-languages-realtime-and-patterns`, §5 → `embedded-languages-realtime-and-patterns`, §7 → `embedded-industrial-control-connectivity-and-cloud`, §11 → `embedded-security-safety-and-testing`, §16) is synthesized from established\npractice and the canonical literature in §15. Every **time-sensitive** claim — versions,\ndates, regulatory deadlines, product status — was verified against a primary or\nnear-primary source in **August 2026** and is flagged in §17 with a decay-risk rating.\nWhere practitioners disagree, §14 presents both cases rather than adjudicating, and\ndisputed claims (notably OPC UA PubSub adoption and Azure IoT Central's status) are\nmarked as disputed in place.\n\n**Search log** (queries run, August 2026): Zephyr LTS status · embedded-hal 1.0 \u002F Embassy \u002F\nRTIC ecosystem · EU CRA deadlines · Matter specification releases · Bluetooth Core\nversions · Azure IoT Central\u002FHub\u002FOperations status · MISRA C:2025 and C++:2023 · EN 18031\nand the RED delegated act · Unified Namespace \u002F Sparkplug B \u002F OPC UA · TinyML runtimes and\nEthos-U · FreeRTOS LTS and kernel versions · ESP-IDF v6.0 and RISC-V ESP32 parts ·\nMCUboot\u002FSUIT\u002Fpost-quantum firmware signing · PREEMPT_RT mainlining and Yocto releases ·\nFerrocene safety qualification · IEC 62443 parts and current practice · cellular IoT\n(NB-IoT\u002FLTE-M\u002FRedCap) status · single-pair Ethernet and Ethernet-APL · AWS IoT\nCore\u002FGreengrass status.\n\n**Primary sources consulted (selected):**\n- Zephyr Project release documentation and release-management wiki — docs.zephyrproject.org\n- FreeRTOS 202604 LTS announcement (AWS) and FreeRTOS-Kernel release notes — freertos.org, github.com\u002FFreeRTOS\n- European Commission, Cyber Resilience Act and CRA reporting obligations — digital-strategy.ec.europa.eu\n- CEN-CENELEC and Commission Implementing Decision (EU) 2025\u002F138 on EN 18031 harmonisation\n- MISRA Consortium — misra.org.uk (MISRA C and MISRA C++ pages)\n- Bluetooth SIG — bluetooth.com (Core 6.0\u002F6.2 feature overviews and release blogs)\n- Connectivity Standards Alliance — csa-iot.org (Matter 1.5, 1.5.1 releases)\n- Microsoft Learn \u002F Azure IoT Operations documentation and release notes; Microsoft Tech Community\n- AWS IoT Greengrass documentation (V1 end-of-support notice)\n- Espressif — ESP-IDF v6.0 announcement and Programming Guide\n- Yocto Project release notes 6.0 (Wrynose)\n- Ferrous Systems — Ferrocene qualification announcements and release notes\n- Arm Developer — Cortex-M and Ethos-U edge AI documentation\n- NIST SP 800-208; NSA CNSA 2.0 advisory; IETF RFCs 9019, 9124, 8554, 8391\n- Linux Foundation realtime wiki; Linux 6.12 release coverage\n- Embassy and rust-embedded working group documentation\n\n**Confidence statement.** High confidence in §1–§8 → `embedded-silicon-and-firmware-models`, `embedded-industrial-control-connectivity-and-cloud`, §11–§13 → `embedded-security-safety-and-testing`, §15–§16 and §18 (durable\nengineering and well-documented history). High confidence in §17's verified items as of\nthe stated date. Moderate confidence in market-adoption characterizations (§6.4 → `embedded-industrial-control-connectivity-and-cloud`, §8.1 → `embedded-industrial-control-connectivity-and-cloud`,\n§8.3 → `embedded-industrial-control-connectivity-and-cloud`) — these rest partly on vendor and practitioner commentary, where incentives differ;\nthey are stated as tendencies, not measurements.\n",{"name":5,"description":7},"develop","ae32736a1aabddabca5d2c96d665aa0ebc7d8700","src\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fembedded-iot-controls\u002Fskills\u002Fembedded-reference",3,"https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey","https:\u002F\u002Fthe-vibey-project.github.io\u002Fvibey\u002F","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project","https:\u002F\u002Fvibewithadam.matthewsteinberger.com","freedom for software engineers","2026-11-15 05:47:42",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add the-vibey-project\u002Fvibey --skill embedded-reference",{"tool":40,"command":41},"bunx","bunx skills add the-vibey-project\u002Fvibey --skill embedded-reference",{"tool":43,"command":44},"pnpm","pnpm dlx skills add the-vibey-project\u002Fvibey --skill embedded-reference","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fembedded-iot-controls\u002Fskills\u002Fembedded-reference\u002FSKILL.md",true,[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M7AT1FQJAE1FQYAMDTF490Y4","white-paper-writing","Use when writing white papers, technical reports, policy documents, thought leadership pieces, or any long-form authoritative document. Triggers on requests to write, structure, outline, or review white papers, technical reports, position papers, policy briefs, or evidence-driven arguments. Also use for B2B content marketing strategy, technical documentation requiring authority, academic-style reports, or any document that must educate while persuading. Use when someone asks \"how should I structure this\" for a long-form document.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fwhite-paper-writing\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7AT16BJRJJKK2MASXRZS76G","prose-technical-mechanics","Use when editing or writing prose at a technical\u002Fmechanical level: choosing between Anglo-Saxon and Latinate diction, placing information in topic vs stress positions, writing periodic vs cumulative sentences, handling sentence rhythm, punctuation as logic, transitions, paragraph structure, or phonesthetics. Use when someone wants to understand WHY prose works or doesn't, not just surface-level style advice. Triggers on word choice, sentence structure, emphasis, rhythm, diction, or any deep writing mechanics question.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fprose-technical-mechanics\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7AT0W9HT0ZZ9Y287NW99MR3","prose-mechanics","Use when writing, editing, or analyzing prose style; when trying to avoid generic AI-sounding writing; when applying specific prose styles such as journalistic, academic, narrative, KJV biblical, Hemingway plain, Latinate\u002FJamesian, Orwellian, Augustan, Victorian, Early Modern (Bacon, Browne, Milton), or free indirect discourse; or when coaching someone on writing voice and mechanics. Triggers on any request to improve, analyze, or write in a specific prose style, to fix \"AI-sounding\" writing, to make prose more vivid or concrete, to vary sentence rhythm, or to understand how a particular writer achieves their effects.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fprose-mechanics\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7AT0KR635JX66X2X6F3E2CP","narrative-structure","Use when structuring stories, pitches, presentations, white papers, or any persuasive narrative; analyzing the hero's journey in fiction or non-fiction; applying StoryBrand for business communication; designing narrative arcs for thought leadership; or understanding Vogler, Snyder, Propp, or Campbell frameworks. Triggers on any narrative structure, storytelling, pitch structure, StoryBrand, hero's journey, three-act structure, Freytag, Save the Cat, narrative arc, or \"how should I structure this story\u002Fpitch\u002Fpresentation\" request.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fnarrative-structure\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7AT0AKGW09NKKZDYBT8VRDE","legal-brief-writing","Use when writing legal briefs, motions, or any court filing; when analyzing judicial cognition and persuasion; when applying elite brief-writing techniques from Roberts, Clement, Kagan, Garner; or when structuring legal arguments for maximum persuasion. Also use for autistic\u002Fneurodivergent advocates who need to understand how their natural communication style maps to elite legal advocacy. Triggers on any legal writing, brief drafting, motion preparation, or legal argument structuring request.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Flegal-brief-writing\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7AT00VWPS4Q8B5VEMXX9NQT","journal-publishability-criteria","Use whenever a research paper, article or preprint is being written, revised, reviewed or published, and specifically before every publication of docs\u002Fpaper.md. Covers what legitimate journals actually gate on, in order of gating — the editor's desk screen (scope, novelty, package problems), what reviewers judge (methodological soundness, claims the evidence can carry, statistical and qualitative reporting), EQUATOR reporting guidelines, the ICMJE authorship criteria, COPE's view of text recycling, the near-universal generative-AI policy (no AI author, disclosure, author responsibility), TOP 2025 transparency standards, how to verify a journal is legitimate, submitting without an institution, and a pre-submission checklist. Triggers on requests to evaluate, review, prepare or submit a paper, to judge publishability, to write a declarations or data-availability section, to disclose AI use, or to check a journal.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fjournal-publishability-criteria\u002FSKILL.md",[],[]]