Engineering Guides

Embedded CI, RTOS & fault-injection guides

56 hands-on engineering playbooks with copy-paste ct CLI commands, suite.yaml fault definitions, CI workflows and troubleshooting tables.

MCU Testing & CI (10)

GuideSummaryTargets
STM32F7 firmware CI without a benchGate STM32F7 pull requests on the same Cortex-M7 ELF you flash to NUCLEO-F767ZI, including I2C/SPI sensor faults and exit code 4 unmodelled-register checks.nucleo-f767zi, nucleo-h743zi2
STM32F4 firmware testing without hardwareRun your STM32F4 Cortex-M4F ELF across NUCLEO-F446RE, NUCLEO-F411RE, Black Pill and STM32F4-Discovery twins in under three seconds per suite.stm32f4-discovery, nucleo-f446re
STM32H7 digital twin CI for H743 & H747Run 480 MHz STM32H7 binaries on NUCLEO-H743ZI2, Arduino Portenta H7 and Arduino GIGA R1 twins—with 7 of 8 board-dashboard suites passing.nucleo-h743zi2, arduino-portenta-h7
STM32F103 Blue Pill & NUCLEO-F103RB simulationTest STM32F103 Cortex-M3 firmware without flashing ST-LINK dongles—backed by passing HAL ADC, DMA, EXTI, I2C, SPI, TIM and UART oracles.blue-pill-f103c8, nucleo-f103rb
Nordic nRF52840 firmware CI without hardwareTest nRF52 EasyDMA peripheral logic, Zephyr RTOS threads and sensor fault recovery on deterministic Nordic board twins.nrf52840-dk, feather-nrf52840-express
ESP32-S3 firmware CI on Xtensa LX7 twinsRun ESP32-S3 binaries headlessly on esp32s3-devkitc and adafruit-qualia-esp32s3 twins to test drivers, state machines and bus faults.esp32s3-devkitc, adafruit-qualia-esp32s3
ESP32-C3 & ESP32-C6 RISC-V firmware simulationRun RISC-V ESP32-C3 and ESP32-C6 ELF targets headlessly—backed by the RV32IMAC differential CPU suite and I2C/SPI sensor twins.esp32c3-devkitm, esp32c6-devkitc
Teensy 4.1 (NXP i.MX RT1062) simulation & CITest Teensy 4.1 robotics and flight-control firmware in CI—backed by passing eDMA + timer peripheral oracle and ARMv7E-M differential runs.teensy-4-1, frdm-k64f
AVR ATmega328P & ATmega2560 firmware CITest 8-bit AVR firmware without physical Arduino benches—backed by AVR CPU differential checks, passing ADC trigger oracle and Mega 2560 silicon capture.arduino-uno, arduino-nano
Bare-metal ARM GCC startup and linker script CICatch broken .data LMA-to-VMA copies, misaligned initial MSP and missing FPU CPACR enables before touching a JTAG probe.stm32f4-discovery, blue-pill-f103c8

RTOS & Firmware Stacks (14)

GuideSummaryTargets
Zephyr RTOS CI without hardware benchesExecute your target Zephyr zephyr.elf directly on STM32, nRF52840 and FRDM-K64F board twins instead of porting drivers to native_sim.nucleo-f767zi, nucleo-h743zi2
FreeRTOS headless testing in CITest real FreeRTOS scheduler preemption, PendSV/SysTick timing and task check-signals on Cortex-M board twins.stm32f4-discovery, nucleo-f446re
ESP-IDF CI simulation for ESP32, S3 & C3Test ESP-IDF peripheral drivers, FreeRTOS tasks and sensor error paths inside Docker CI without physical devkits.esp32-devkitc, esp32s3-devkitc
PX4 Pixhawk 6C simulation on real ARM ELFGo beyond host-compiled PX4 SITL: run the actual px4_fmu-v6c Cortex-M7 ELF against real SPI/I2C sensor twins including BMI088 and BMP388.nucleo-h743zi2, teensy-4-1
Marlin 3D printer firmware testing in CIVerify Marlin thermal-runaway shutdowns, endstop trips and stepper-timer ISRs against your real compiled ELF before shipping a release.arduino-mega2560, black-pill-f411ce
Multi-node CANopen testing without a bus benchRun two real MCU ELF images on a shared virtual CAN bus in one deterministic scene—then inject ACK errors, dropped heartbeats or bus-off states.nucleo-f767zi, nucleo-h743zi2
Rust Embassy async firmware CI without boardsTest real Embassy async executors, WFI sleep loops and DMA futures on STM32, nRF52840 and RP2040 board twins.nucleo-f767zi, nrf52840-dk
MicroPython firmware and C-module CIBoot compiled MicroPython firmware.elf images on board twins, drive REPL scripts over UART and inject real bus faults.nucleo-f767zi, rpi-pico
STM32CubeHAL clock tree and DMA CIRe-running CubeMX overwrites user clock tweaks or reorders MX_DMA_Init(). Catch every broken init order in headless CI.nucleo-f767zi, nucleo-f103rb
Apache NuttX RTOS boot and driver CIExecute real Apache NuttX nuttx ELFs in CI to verify NSH startup, POSIX /dev sensor drivers and board pinmux changes.stm32f4-discovery, nucleo-h743zi2
PlatformIO headless firmware CI without hardwarePoint suite.yaml straight at .pio/build/<env>/firmware.elf and run deterministic sensor and bus fault tests in CI.nucleo-f446re, esp32c3-devkitm
Modbus RTU and RS-485 DE-turnaround testing in CICatch truncated last bytes from dropping RS-485 DE on TXE instead of TC before shipping industrial fieldbus firmware.nucleo-f446re, blue-pill-f103c8
Eclipse ThreadX deterministic RTOS CIVerify ThreadX preemption-threshold scheduling, byte pools and STM32/NXP peripheral drivers without a hardware rack.b-u585i-iot02a, nucleo-h743zi2
MCUboot A/B image swap and rollback testing in CIFlash combined bootloader plus slot-0 and slot-1 images into a board twin and prove bad OTA updates revert cleanly.nucleo-f767zi, nrf52840-dk

Fault Injection & Debugging (22)

GuideSummaryTargets
I2C NACK and stuck-bus fault injection in CIMost I2C drivers work on a quiet desk and lock up in the field on the first NACK. Automate NACK and stuck-SDA fault injection on every commit.nucleo-f767zi, nucleo-f411re
SPI bus fault testing and chip-select verificationSPI has no hardware ACK bit—when a slave drops off the bus, MISO silently reads 0x00 or 0xFF. Test your detection paths automatically in CI.nucleo-f767zi, nucleo-h743zi2
Debugging UART baud mismatches and framing errorsWhen serial output turns into random bytes or stops after one framing error, check divider error math first and verify ORE recovery in CI.nucleo-f446re, arduino-uno
Cortex-M HardFault triage in CI and reverse GDBStop chasing intermittent HardFaults over SWD: reproduce the crash deterministically on a board twin and step backward out of HardFault_Handler.nucleo-f767zi, stm32f4-discovery
Detecting ISR race conditions deterministicallyInterrupt races hide for weeks on a bench because IRQ arrival phase rarely aligns twice. Sweep arrival phase deterministically and record shared-memory accesses.nrf52840-dk, nucleo-f767zi
Testing CAN bus-off (TEC > 255) and unacked framesDrive TEC past 255 deterministically and prove your CAN driver exits bus-off without rebooting the ECU.nucleo-h743zi2, nucleo-f446re
Ethernet link-down and packet-loss testing in CITest cable unplug, PHY auto-negotiation flaps and burst packet loss on compiled networking firmware without a switch.nucleo-f767zi, nucleo-h743zi2
Preventing Cortex-M7 D-Cache and DMA coherency bugsDMA bypasses the Cortex-M7 L1 data cache. Missing cache maintenance or MPU non-cacheable regions silently corrupts packets.nucleo-h743zi2, nucleo-f767zi
Testing IWDG, WWDG and watchdog starvation resets in CIInject a sensor deadlock or infinite loop and verify hardware watchdog reset plus RCC_CSR reset-cause logging in CI.nucleo-f446re, nucleo-f767zi
Brownout reset and power-rail cycling tests in CIVerify firmware waits for regulator power-good pins and re-initializes peripherals cleanly after a power-rail drop.nucleo-l476rg, nrf52840-dk
Catching uninitialized SRAM and nondeterminism with --recheckFlaky firmware tests hide real silicon bugs. Run --recheck in CI to verify every test trace is bit-for-bit reproducible.nucleo-f767zi, stm32f4-discovery
SPI NOR Flash and EEPROM torn-write testing in CICatch 64-byte EEPROM page wraps, missing WREN latches and unrecovered LittleFS mounts before bricking customer units.nrf52840-dk, rpi-pico2
Testing ADC Vref drift, open-circuit and shorted thermistorsDrive exact pin voltages from 0.0 V to Vref in suite.yaml and verify every over-temperature and low-battery threshold.stm32f4-discovery, arduino-mega2560
GDB reverse-step and watchpoint firmware debuggingHit HardFault_Handler, type reverse-stepi, and walk backwards straight to the instruction that trashed the pointer.nucleo-f767zi, stm32f4-discovery
Capturing SEGGER RTT and ITM/SWO logs in headless CIRead SEGGER RTT and ARM ITM/SWO telemetry directly from twin SRAM and core trace registers in CI.nrf52840-dk, nucleo-f767zi
Importing ODB++ and IPC-2581 manufacturing packagesReuse the exact ODB++ or IPC-2581 manufacturing release package to keep firmware digital twins locked to production copper.s32k144-evb, nucleo-h743zi2
Running air-gapped offline firmware CI with --network nonePin your ct binary, board files and local twin catalog inside an air-gapped runner with zero cloud dependency.nucleo-f767zi, s32k144-evb
Testing PWM dead-time, StallGuard and overcurrent trips in CIProve your motor controller cuts PWM outputs on an nFAULT or StallGuard trip without smoking real power stages.nucleo-g474re, nucleo-f446re
Multi-board ECU scene orchestration over CAN, SPI and UARTTest host-coprocessor UART links, dual-ECU CAN-FD networks and AVR-to-STM32 SPI bridges in a single lockstep run.nucleo-h743zi2, s32k144-evb
Triaging exit code 4 unmodelled-register diagnosticsSilent zero-reads turn real bugs into false green builds. Exit code 4 tells you the exact peripheral, register address and PC.nucleo-f767zi, esp32s3-devkitc
Seeded LoRa and sub-GHz RF packet-loss testing in CIInject 45 dB path fades and seeded packet errors between two LoRa nodes and verify retransmission backoff in CI.nucleo-l476rg, nucleo-h743zi2
GNSS UBX and NMEA fix-loss and checksum fault testingDrop GNSS fix validity or corrupt UBX checksums mid-mission and verify clean failsafe transition in headless CI.nucleo-h743zi2, nucleo-f767zi

Compliance & Verification (10)

GuideSummaryTargets
EU Cyber Resilience Act (CRA) firmware testing evidenceSupport EU Cyber Resilience Act vulnerability-handling and verification documentation with reproducible, SHA-256-hashed firmware twin runs in CI.b-u585i-iot02a, nucleo-l552ze
ISO 26262 firmware fault-injection & traceability supportRun deterministic fault-injection matrices and branch/line coverage exports on compiled automotive MCU binaries in CI.nucleo-h743zi2, nucleo-f767zi
DO-178C firmware testing and traceability workflowsShift requirements-based firmware testing and fault-response checks left onto deterministic digital twins before target-hardware rig time.nucleo-h743zi2, nucleo-f767zi
FDA Section 524B medical device firmware testing supportAutomate sensor fault-handling, watchdog recovery and security-patch regression testing on compiled medical-device MCU binaries with traceable artifacts.nucleo-l476rg, nucleo-l552ze
IEC 62443-4-2 industrial security robustness testingVerify industrial gateway firmware rejects malformed Ethernet, Modbus RTU and CAN frames without HardFaults or watchdog locks.nucleo-f767zi, nucleo-h743zi2
IEC 62304 Class C medical firmware anomaly testingExercise every alarm state and sensor-fault mitigation on your real compiled MCU binary on every pull request.nucleo-l476rg, nucleo-l552ze
IEC 61508 SIL-3 diagnostic coverage fault testingVerify your Flash CRC self-test, watchdog window and dual-channel sensor discrepancy checks fire every time a fault is injected.nucleo-f446re, s32k144-evb
EN 50128 deterministic railway firmware regressionGuarantee identical execution traces across every test run with pinned seeds, offline execution and SHA-256 artifact manifests.nucleo-h743zi2, s32k144-evb
Pairing MISRA C static checks with runtime ELF fault CIStatic analysis checks C syntax and undefined behavior. Digital twin CI catches wrong register masks, unclocked buses and sensor hangs.nucleo-f411re, nucleo-f767zi
Generating SHA-256 provenance and JUnit audit bundlesTurn every CI firmware run into a self-contained JSON and JUnit record pinned to exact ELF, board and twin SHA-256 digests.nucleo-f767zi, b-u585i-iot02a

Pair guides with live catalogs