---
title: "AEN Bench + Bring-up Tools"
description: "The examples/aen/ tree holds a second class of app that sits outside everything else on this site."
source: https://docs.alplab.ai/sdk/examples/aen/aen-bench-tools
---

# AEN bench + bring-up tools

The `examples/aen/` tree holds a second class of app that sits outside everything else on this site.

**These are not portable examples.** None of them carries a `board.yaml`. That single fact has consequences worth stating plainly:

- They are **not in the [103-example catalog](https://docs.alplab.ai/sdk/examples/overview)** — the catalog is generated from `board.yaml`, so an app without one is invisible to it by construction.
- They are **outside the portable-example contract** and the example-portability lint, which both key off `board.yaml`. Nothing stops them reaching straight for Zephyr driver headers, vendor HAL clients, or raw register bases — and most of them do.
- They are **standalone Zephyr apps**, built directly against a board target with no `alp_project.py` flow.

They exist to **validate E8 silicon**, not to be copied. Many say so in their own source: *"BENCH-VALIDATION app — not a customer teaching example."*

:::tip[Building an application? Start elsewhere]
Use the portable examples: [`hello-world`](https://docs.alplab.ai/sdk/examples/hello-world) to prove your toolchain, then [`i2c-master`](https://docs.alplab.ai/sdk/examples/i2c-master), [`spi-master`](https://docs.alplab.ai/sdk/examples/spi-master), [`uart-hello-world`](https://docs.alplab.ai/sdk/examples/uart-hello-world). For AEN-specific application patterns see [`edgeai-vision-aen`](https://docs.alplab.ai/sdk/examples/aen/edgeai-vision-aen) or [`aen-npu-inference`](https://docs.alplab.ai/sdk/examples/aen/aen-npu-inference).

This page is for people bringing up silicon, debugging a driver, or trying to understand what the bench actually proved.
:::

The [`aen-*-regcheck`](https://docs.alplab.ai/sdk/examples/aen/aen-regchecks) suite belongs to the same class and has its own page. Everything below is the non-regcheck remainder — 54 apps as of alp-sdk v0.17.0, apart from the four with their own pages ([`aen-dualcore-ipc`](https://docs.alplab.ai/sdk/examples/aen/aen-dualcore-ipc), [`aen-ethernet-link`](https://docs.alplab.ai/sdk/examples/aen/aen-ethernet-link), [`aen-npu-inference`](https://docs.alplab.ai/sdk/examples/aen/aen-npu-inference), [`aen-rpc-pingpong`](https://docs.alplab.ai/sdk/examples/aen/aen-rpc-pingpong)).

:::info[What changed in alp-sdk v0.17.0]
- **Added:** the board demos `aen-evk-demo` and `aen-trace-runner`; the camera / ISP / display apps; the NPU latency and energy instruments and the portable-API NPU runs; the STOP and power-domain apps; six CC3501E link diagnostics; and several RTC, sensor and bus probes.
- **Renamed:** `aen-sdcard-readout` → `aen-sdhc-probe` (SD is disabled on the E1M-EVK 2626-R2 — see [Storage + memory](#storage--memory)).
- **Removed:** `aen-camera-regcheck` (see the [regchecks page](https://docs.alplab.ai/sdk/examples/aen/aen-regchecks)).
- Several bench apps now ship with a peripheral **disabled by default** because of an EVK 2626-R2 hardware defect — `aen-i2s-amp-alif` and `aen-sdhc-probe` report that instead of driving the pads. These defects are on the earlier **2626-R2** EVK; the current **2641-R3** EVK replaces the SDIO muxes with `TMUX1574` parts (`U38`, `U39`) and switches module I2S0 through the `TMUX1574` `U46`, so both defects are addressed there (the 3257-type rework note below applies to 2626-R2 only). The settings follow the 2626-R2 board preset of alp-sdk v0.17.0.
:::

## How they're observed

Most of these run on a **scopeless** bench: no oscilloscope, and the app UART is often not routed to USB. Three recurring mechanisms follow from that:

- **RAM console.** The app prints to a `ram_console_buf` symbol that the operator reads over J-Link `mem8` and ASCII-decodes.
- **Global SRAM0 beacons.** Liveness is stamped into fixed, master-agnostic addresses in SRAM0 that J-Link can read from whichever debug AP it attached to. This is how the dual-core apps prove a second core is alive when its own AP isn't reachable.
- **`RESULT PASS:` / `RESULT FAIL:`** — one line per app, greppable.

Source tree: [`examples/aen/`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen).

## Dual-core + IPC

The E8 has two M55 cores (HP and HE). At power-on only one is released — these apps establish which, and how to start the other.

| Example | What it proves |
|---|---|
| [`aen-dualcore-probe`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-dualcore-probe) | The decisive "does a dual-entry ATOC boot **both** M55s?" test. One app, role-by-board: each core stamps a magic word at its own global-SRAM0 beacon then advances a heartbeat forever. Both advance → the Secure Enclave booted both from one power-on. Only HP advances → single-core boot. |
| [`aen-dualcore-master`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-dualcore-master) | The answer to the above: the SES-booted core starts the *other* M55 at runtime via the portable `alp_mproc_boot_core()`, instead of relying on a dual-boot ATOC. The portable call resolves through the backend registry to the SoM's boot authority — on AEN, the Secure Enclave's boot service. **Application code carries no vendor include.** |
| [`aen-dualcore-doorbell`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-dualcore-doorbell) | The HE→HP MHU-1 doorbell — testable only once both cores boot. The HP master releases HE, then HE rings HP. Beacons count doorbells sent vs received; if the received count advances, the doorbell propagates. |
| [`aen-dualcore-he-master`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-dualcore-he-master) | The reverse direction: the **HE** core releases a deferred **HP** peer at runtime via the portable `alp_mproc_boot_core()`. The plain load-and-boot path every HP-master sibling uses cannot release an HP peer at all, so this app uses the Secure Enclave service that can — the only proven way to start the HP from the HE. |
| [`aen-hp-core-smoke`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-hp-core-smoke) | First light for the M55-HP core — the first SDK image targeted at the *second* M55 (every prior bench app ran on HE). It writes a liveness beacon to global SRAM0 rather than relying on the HP core's own RAM console, because the bench reads memory over the HE/AXI debug AP. |
| [`aen-alp-rpc`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-alp-rpc) | The same dual-M55 ping/pong as [`aen-rpc-pingpong`](https://docs.alplab.ai/sdk/examples/aen/aen-rpc-pingpong), but driven through the portable [`<alp/rpc.h>`](https://docs.alplab.ai/sdk/api/rpc) surface instead of raw Zephyr `ipc_service` calls. The teaching point: customer code calls a handful of vendor-clean `alp_rpc_*` functions while the backend does the identical `ipc_service` dance over the same MHUv2 mailbox + shared SRAM0 vring. |

## TrustZone + secure element

| Example | What it proves |
|---|---|
| [`aen-tz-secure-log-probe`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-tz-secure-log-probe) | **Silicon-proven.** The question: on *one* M55, can the application be hardware-blocked from writing the MRAM log window? The answer is core-local TrustZone-M. The probe configures the SAU + TGU to carve a Non-Secure chunk out of DTCM, drops into a tiny NS stub, and has it store to the default-Secure MRAM log window. Pass = that store raises a **SecureFault** (`SFSR` set, `SFAR` = the log address) while a Secure store to scratch succeeds first. The app cannot lift the block — SAU/TGU registers are Secure-only. |
| [`aen-tz-secure-log-append`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-tz-secure-log-append) | **Silicon-proven.** The end-to-end enforced append. The Non-Secure app *cannot* write the log store, so it appends by writing a request into a shared NS mailbox and returning to the Secure owner, which performs the privileged write. This is the single-core mirror of the two-core owner/client split. Pass = the owner appended on the app's behalf **and** the app's own direct store raised `SFSR.AUVIOL`. Notably it uses only the S→NS call direction, because Alif silicon does not attribute a custom NSC veneer window. |
| [`aen-se-service-info`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-se-service-info) | Staging check of the Secure Enclave **service transport**. Deliberately vendor-specific — the sanctioned bring-up escape hatch. It asserts the DT nodes bind at the fork's reg/IRQ facts and drives the `hal_alif` client directly, which no portable surface can or should express. |
| [`aen-se-service-query`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-se-service-query) | The portable companion to the above, and it **carries no vendor include**. Where `-info` proves the SE mailboxes bind, this shows what customer code calls once they do: `alp_soc_secure_fw_ping` / `alp_soc_info_read` ([`<alp/hw_info.h>`](https://docs.alplab.ai/sdk/api/hw-info)), `alp_power_profile_get` ([`<alp/power.h>`](https://docs.alplab.ai/sdk/api/power)), `alp_random_bytes` ([`<alp/security.h>`](https://docs.alplab.ai/sdk/api/security)). All read-only. |
| [`aen-se-crypto`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-se-crypto) | The *compute* surface riding the same SE mailbox: a known-answer SHA-256, an AES-128-GCM round-trip, and a TRNG pull — all through the vendor-clean `alp_hash_*` / `alp_aead_*` / `alp_random_bytes` API. Nothing in the app names the SE: the SE-CryptoCell backend registers at the E8's silicon ref with a priority that wins over the portable MbedTLS-PSA backend, so the work lands on dedicated silicon transparently. |

:::note[Secure-element scope]
The SE backends are scoped to **E8 only**. Separately, the OPTIGA Trust M driver is **probe-only** — signing and key generation return `ALP_ERR_NOSUPPORT`.
:::

## NPU + inference

| Example | What it proves |
|---|---|
| [`aen-npu-inference-alif`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-npu-inference-alif) | Matched-runtime Ethos-U85 inference on a hermetic `tiny_int8.tflite` fixture, through the Arm `InferenceProcess` wrapper → TFLM `MicroInterpreter` → `ethosu_invoke()`. **This is the example whose silicon bring-up fixed the long-standing `ethosu_invoke=1` residual** — via two in-app strong weak-overrides: `ethosu_address_remap` (the CPU→NPU address translation any TCM-resident buffer needs) and an `ethosu_config_select()` returning the **SRAM AXI port**, because Alif's SRAM-only memory mode places model/arena/IO in SRAM0 while the Arm default routes region 0 and the command stream to the EXT port and aborts. |
| [`aen-npu-inference-person-mram`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-npu-inference-person-mram) | **Bench-verified on E8 (2026-06-17.)** The production-scale companion: the real `person_detect` MobileNet resident in MRAM slot0. Vela'd for the U85 it is ~263 KiB and overflows the 256 KiB ITCM RAM-run region, so it links into slot0 and is SE-booted from MRAM. Vela reports **CPU operators = 0 (0.0 %) / NPU operators = 44 (100.0 %)**, ~7.1 M MACs; `runJob` completes with a populated output. |
| [`aen-npu-inference-alp`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-npu-inference-alp) / [`aen-npu-inference-alp-u55`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-npu-inference-alp-u55) | The same real `person_detect` model through the **portable** [`<alp/inference.h>`](https://docs.alplab.ai/sdk/api/inference) instead of the raw Arm wrapper — on the Ethos-U85 and on the Ethos-U55 respectively. The app writes only `alp_inference_open()` / `invoke()` / `get_output()`; the AEN Ethos-U backend supplies the address-remap and SRAM-port overrides the raw siblings hand-write. Model, arena and I/O tensors live in NPU-reachable SRAM0, and the image is MRAM-resident. |
| [`aen-inference-latency`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-inference-latency) | Cycles and milliseconds per inference for any Vela-compiled int8 model, plus the tensor-arena high-water mark — no power monitor, console only. Small models fit the ITCM RAM-run. Its console lines are the subset of the `ENERGY-*` protocol that `tan model run --device --capture` parses. |
| [`aen-inference-energy`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-inference-energy) | **Incremental** energy per inference, measured on silicon as a carrier-rail delta from the EVK's INA236 monitors, integrating matched active / idle windows. Read its scope carefully: it is **not** NPU energy, **not** silicon energy, and not comparable to a vendor datasheet figure — the default rail measures the whole +5 V rail (SoM + LCD + carrier). A trivial model reports `RESULT FAIL` by design: it sits below the rail's noise floor. |
| [`aen-gpu2d-bench`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-gpu2d-bench) | That the portable [`<alp/gpu2d.h>`](https://docs.alplab.ai/sdk/api/gpu2d) surface runs correctly on the real M55-HE, through whichever backend the build selects — the pure-C software fallback by default, or the D/AVE 2D engine. Every op is checked against the pixel value the fallback's own formulas give. See the note below. |

:::note[D/AVE 2D acceleration is now bench-verified (alp-sdk v0.17.0)]
A plain build still selects the software fallback. The D/AVE 2D hardware backend is opt-in: it needs Alif's **proprietary** driver pack, which is not vendored into alp-sdk and is fetched with `west update --group-filter +vendor-sdks`, plus the example's `overlay-dave2d.conf` and `dave2d.overlay`. On an E1M-AEN803 (M55-HE), fill, blit and REPLACE / SRC_OVER blends match the software fallback (SRC_OVER within 1 per channel); ADDITIVE and MULTIPLY are still served by the fallback. The engine is an AXI master, so surfaces must sit in globally visible memory (SRAM0, not DTCM), and the backend **requires** the D-cache on — with it off, the fallback serves `<alp/gpu2d.h>`. Earlier versions of this page called the engine path unavailable; that is no longer the case.
:::

## Camera, ISP + display

All of these are on the E1M-EVK with Raspberry-Pi-style CSI-2 camera modules. **An E1M-AEN hw_rev r2 (2626-R2) on the E1M-EVK swaps the P and N wires of all three CSI-2 differential pairs, so it needs a short P/N-crossing adapter on the 15-pin camera connector** — without one the sensor answers its I²C probe but no frame ever arrives.

| Example | What it proves |
|---|---|
| [`aen-camera-firstlight`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-camera-firstlight) | Camera first light through the portable [`<alp/camera.h>`](https://docs.alplab.ai/sdk/api/camera) only — open, start, capture-with-timeout, release, stop, close — the same calls whichever sensor shield is stacked underneath. OV9281 (three modes) and OV5647 (RAW10 640×480) bench-verified on an E1M-AEN803, both due a re-bench after a shared CPI driver change; IMX296 and IMX335 raw capture bench-verified. Also builds for the M55-HP (IMX335 on the AEN803 HP bench-verified) and, compile-only, the E1M-AEN401. |
| [`aen-isp-capture`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-isp-capture) | A real sensor frame through the **ISP-Pico** — sensor → CSI → camera → ISP → memory — with auto-exposure and auto-white-balance running, via the raw Zephyr video API. OV5647 by default (colour-calibrated); IMX296 / IMX335 variants exercise the data path, but **colour is not calibrated** for them. |
| [`aen-isp-ov5647-viewfinder`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-isp-ov5647-viewfinder) | The portable counterpart of the above: OV5647 through the ISP with AE + AWB, but through `alp_camera_*`. The portable enum has no RGB output the ISP produces directly, so an `ALP_PIXFMT_RGB565` request makes the backend take a YUV output and convert on the CPU — the app neither knows nor cares. |
| [`aen-dsi-display`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-dsi-display) | The pixels-on-glass successor to `aen-dsi-regcheck` (which only proves the chain *binds*): CDC200 + MIPI-DSI + D-PHY drive a Rocktech 720×1280 panel with four colour bars. The RGB565 framebuffer (1.84 MB) lives in SRAM0 — it does not fit ITCM, where the RAM-run links code. |
| [`aen-lvds-display`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-lvds-display) | A 12.1-inch 1280×800 **LVDS** panel through the same DSI chain plus a TI SN65DSI83 DSI-to-LVDS bridge on an adapter PCB. `RESULT PASS` means the chain answered end to end; pixels on glass are confirmed by eye. |

The streaming, network-facing version of this pipeline is the catalog example [`camera-mjpeg-stream`](https://docs.alplab.ai/sdk/examples/camera-mjpeg-stream).

## Power

| Example | What it proves |
|---|---|
| [`aen-power-smoke`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-power-smoke) | **Stage A.** A plain architectural Cortex-M55 WFI via the kernel idle path, with **no PM subsystem**, woken by SysTick, with the kernel surviving the round trip. A beacon in global SRAM0 plus `k_uptime_get()` both advance across rounds — i.e. it really slept and really woke, repeatedly. |
| [`aen-power-iwic`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-power-iwic) | **Stage B.** Brings the Alif PM layer up over pinned Zephyr and proves the `CONFIG_PM` suspend-to-idle (deep IWIC sleep) path: it reports the PM wiring as a bind-check, then blocks long enough that the PM policy selects `PM_STATE_SUSPEND_TO_IDLE`, so `pm_state_set()` programs `WICCONTROL` and the core parks in WFI until SysTick wakes it. |
| [`aen-power-stop`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-power-stop) | **Bench-proven STOP.** `alp_power_request_sleep()` with the STOP mode does not return — the wake is a cold boot — so `main()` runs again on every wake and a counter in backup RAM tracks the cycle. Three cycles wake from the LPTIMER (500 ms), an RV-3028-C7 countdown (3 s) and an RV-3028-C7 alarm, each judged from `alp_power_boot_wake_info()`. Passed 3 of 3 on an E1M-AEN803, on the M55-HE and on the M55-HP (the AEN801 HP build is unmeasured; STANDBY is untested). It is an **MRAM image** — a RAM-run would not come back. |
| [`aen-power-domains`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-power-domains) | The SoM power-domain runtime in RUN mode: prints every domain through `alp_power_domain_info()`, checks that a Wi-Fi/BLE rail-off request is **refused** while its Kconfig gate is off, quiesces every domain, holds 5 s, restores in reverse order, and checks each chip answers again (CC3501E `PING` with no `WIFI_EN` toggle, Ethernet PHY ID and link, NOR JEDEC ID, TMP112 temperature). |
| [`aen-aipm-read`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-aipm-read) | Reads the live RUN and STANDBY operating-point profiles through the portable [`<alp/power.h>`](https://docs.alplab.ai/sdk/api/power) profile surface. The teaching point: on an SoC like the E8 a system controller owns the power and clock tree — a core never pokes PLL / DC-DC / power-domain registers, it reads and writes a per-core **profile** instead. On the E8 that controller is the Secure Enclave and the feature is aiPM. |

:::danger[Back up MRAM before running `aen-power-stop`]
If the STOP entry sequence is wrong, the Secure Enclave can hold the module until it is power-cycled. Back up the module's MRAM image and have the restore procedure ready. A J-Link left attached keeps the core's debug-enable bit set, which firmware cannot clear: the backend then refuses to sleep with `ALP_ERR_BUSY` — clear it from the debugger and detach the probe, or power-cycle with the probe detached.
:::

## Storage + memory

| Example | What it proves |
|---|---|
| [`aen-mcuboot-smoke`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-mcuboot-smoke) | The SES → MCUboot → slot0 → app boot chain. Built with `--sysbuild`; MCUboot signs the image into slot0. **If this app's banner appears in the RAM console, MCUboot verified and chain-loaded it from slot0** — that's the whole proof. It also reports `VTOR` to characterise *where* the app runs from after chain-load: slot0 XIP vs copied-to-TCM. |
| [`aen-mram-flash-validate`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-mram-flash-validate) | Exercises the **write** side of the MRAM flash driver through the portable Zephyr `flash_*` class API — erase → readback equals erase value, write → readback equals pattern, read → byte-exact verify, and out-of-unit erase/write rejected with `-EINVAL`. See the scope note below. |
| [`aen-sdhc-probe`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-sdhc-probe) | Register-level bring-up probes for the E8 SD Host Controller. Renamed from `aen-sdcard-readout`. **On the E1M-EVK 2626-R2, `sdhc0` stays disabled** and the app compiles down to a pad-free clock-gate proof: the board's SDIO 74LVC157 mux has no high-impedance state and holds the SoC-facing SD nets low whenever it is powered, so enabling the controller would make the SoC's own drivers fight it. A hardware defect pending a component change, not a firmware workaround. |

:::warning[`aen-mram-flash-validate` — scope this claim carefully]
The source frames it as an on-silicon erase/program/readback proof, and it is *designed* as one: a `RESULT PASS`/`FAIL` line plus a J-Link `mem32` readback as silicon ground truth.

But its twister row is **`build_only: true`**, with the comment *"the erase/program/readback check is a bench flash, not a CI run"* — and it is filtered out of the `native_sim` gate entirely (it only builds against the AEN801 HE board target). What CI proves is that the driver and DT node **compile** on the real board target. **There is no bench-matrix row and no changelog entry behind a "validated on silicon" claim.** Treat the erase/program verdict as a bench-operated result, not a standing one.
:::

## CC3501E link diagnostics

Narrow bench instruments for open CC3501E bridge issues on the current module batch. Each shares the same bring-up template; most of them exist to separate competing explanations, so read each app's README for its exact hypothesis before trusting a result. None of them is a teaching example — for the companion API see [`aen-cc3501e-companion-tour`](https://docs.alplab.ai/sdk/examples/aen/aen-cc3501e-companion-tour).

| Example | What it investigates |
|---|---|
| [`aen-cc3501e-command-sweep`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-cc3501e-command-sweep) | Exercises every opcode the CC3501E wire protocol defines (enumerated by symbol from `<alp/protocol/cc3501e.h>`, so the table cannot drift) and measures inter-chip link throughput. |
| [`aen-cc3501e-handshake-probe`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-cc3501e-handshake-probe) | Discriminates explanations for a link failure seen after the coprocessor was reflashed to a **wire-protocol-4.0** image, where every frame carries a CRC trailer and a bare `ALP_ERR_IO` cannot tell a dead link from a correctly received error reply. |
| [`aen-cc3501e-wedge-postmortem`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-cc3501e-wedge-postmortem) | Reproduces the `WIFI_CONNECT_STA` wedge — the connect gets no reply and the link stays down — and captures forensic evidence **before** any recovery, including whether a host reset really reboots the chip. |
| [`aen-cc3501e-silent-scan-probe`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-cc3501e-silent-scan-probe) | Whether a single `WIFI_SCAN_START` survives 25 s of a completely **silent** host bus — testing the reading that host polling during the coprocessor's radio work is what wedges it. |
| [`aen-cc3501e-connect-twice-probe`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-cc3501e-connect-twice-probe) | Whether a `WIFI_DISCONNECT` against a never-associated station clears the vendor SDK's disconnect-in-progress bit. |
| [`aen-cc3501e-socket-throughput`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-cc3501e-socket-throughput) | End-to-end TCP socket throughput, Wi-Fi association through `cc3501e_sock_recv()`, over a window long enough to trust. |

## Peripheral bench

| Example | What it proves |
|---|---|
| [`aen-gpio-bench`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-gpio-bench) | GPIO over the **upstream** DesignWare driver: drive a safe, uncontended pin as a push-pull output, set it high then low through the portable Zephyr GPIO API, and read back the data + direction registers after each step. |
| [`aen-uart-ns16550-loopback`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-uart-ns16550-loopback) | The upstream `ns16550` driver on a **spare** UART instance — deliberately not the carrier console, not the DevKit console. The overlay sets `loopback;`, so the driver programs the 16550 MCR `LOOP` bit and TX is internally fed back to RX. A `uart_poll_out` → `uart_poll_in` byte-compare exercises the real TX FIFO/THR + RX RDR path, not just registers. |
| [`aen-pwm-utimer-pwmleds`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-pwm-utimer-pwmleds) | The **consumer-node** variant of the UTIMER PWM regcheck. Same channel, same registers — the difference is *how* the controller device is obtained. Going through `PWM_DT_SPEC_GET` on an LED child node sidesteps a codegen hazard: the `alif,pwm` binding re-declares `#pwm-cells`, so `gen_defines` treats the controller node as if it owned a `pwms` property and emits a phantom reference that can make `DEVICE_DT_GET` on that node fail codegen or never resolve. |
| [`aen-wdt-feed`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-wdt-feed) | The CMSDK watchdog over the **upstream** Zephyr driver (Tier-1, no vendoring). Installs a timeout, feeds it a few times, then **disables** it — it never lets the timeout fire, because a reset would re-boot the SES and tear down the bench RAM-console read. The API path is what this proves; the exact timeout duration rides a watchdog clock rate that is still a TRM placeholder. |
| [`aen-qenc-readout`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-qenc-readout) | A quadrature encoder on the E8 UTIMER via the Zephyr sensor API — and the finding that matters: **measured, the UTIMER QEC channel is an undirected edge counter, not a quadrature decoder**. It counts one input's rising edges up and the other's down with no qualification, so contact bounce accumulates as drift. The app now also carries a software Gray-code path (Zephyr `gpio-qdec`) over the same pads, not yet run on hardware. For the portable `alp_qenc_open()`, aim the `alp-qenc0` alias at a `gpio-qdec` node, as [`qenc-readout`](https://docs.alplab.ai/sdk/examples/qenc-readout) does — not at the UTIMER channel. |
| [`aen-rtc-calendar`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-rtc-calendar) | The portable calendar surface `alp_rtc_set_time()` / `alp_rtc_get_time()` ([`<alp/rtc.h>`](https://docs.alplab.ai/sdk/api/rtc)) on a part with **no Zephyr-RTC-class peripheral at all**. The only timekeeping hardware is the always-on LPRTC — a bare free-running 32-bit counter at 32768 Hz, not a date/time register file. The SDK's calendar shim bridges the two by keeping a software epoch base plus a counter snapshot. See [`aen-rtc-regcheck`](https://docs.alplab.ai/sdk/examples/aen/aen-regchecks) for the bare-counter check underneath. **Accuracy caveat:** the bench module has no 32 kHz crystal fitted, so the LPRTC runs from the internal RC oscillator — roughly 5 % fast or slow, about 72 minutes per day. |
| [`aen-i2s-amp-alif`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-i2s-amp-alif) | A tone out of the E8 audio I²S through the standard Zephyr I²S API. **Ships with the `i2s3` node disabled on the E1M-EVK 2626-R2** and reports `RESULT SKIPPED`: the I²S mux in front of the amps has no high-impedance state and is wired backwards for this direction, so its outputs fight the SoC's own I²S pads whenever the controller drives them. An opt-in overlay re-enables it once the mux is reworked to a 3257-type bus switch. Even then this validates the I²S controller + clock path only; audible output also needs the TAS2563 amps configured. |
| [`aen-pdm-mic-alif`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-pdm-mic-alif) | Capture from the four MP34DT05 PDM microphones of the **2626-R2** EVK via the Zephyr DMIC API (the current 2641-R3 EVK fits four MSM261DHT006 PDM microphones, `U19`, `U20`, `U25`, `U26`). Pass needs blocks with **non-zero, non-constant** samples — live acoustic energy, so tap or speak near the mics. A run that configures and reads cleanly but sees only silence is reported **PARTIAL**: the driver path is proven; check mic routing or gain rather than the driver. |
| [`aen-usb-firstlight`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-usb-firstlight) | xHCI USB host enumeration — and a good illustration of how entangled the EVK is. The E8's USB passes through a mux whose select is a **CC3501E GPIO**, so before the xHCI can see a device the app must bring up the CC3501E bridge and drive that pad over the SPI GPIO-proxy. Only then does it run `uhc_init` (DWC3 + xHCI first light) and `uhc_enable` (rings, Enable Slot, port reset, Address Device, EP0 `GET_DESCRIPTOR`). |
| [`aen-brd-i2c-scan`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-brd-i2c-scan) | The `BRD_I2C` housekeeping bus (SoC I2C0) on the upstream DesignWare driver: scans `0x08..0x77`, decodes the TMP112 at `0x40` and the RV-3028-C7 at `0x52` (reading the seconds register twice to prove the oscillator ticks), and treats a silent `0x30` (the OPTIGA address on V2N) as the expected negative control, since E1M-AEN R3 has no secure element. The bus has no external pull-up and works on the SoC pad's internal pull-up on 2626-R2 silicon. |
| [`aen-temp-sensor`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-temp-sensor) | The on-module TMP112 through the **upstream** Zephyr sensor API (`CONFIG_SENSOR` + `CONFIG_TMP112`, `SENSOR_CHAN_AMBIENT_TEMP`) — the starter for "how do I read a sensor on this SoM". The board devicetree carries the TMP112 node, so the app adds none; it asks for `CONFIG_TMP112=y` explicitly because the board defaults the upstream driver off (it collides at link time with alp-sdk's own `tmp112` driver). |
| [`aen-rtc-alarm`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-rtc-alarm) | The on-module RV-3028-C7 time and **alarm interrupt** over upstream Zephyr's `rtc_*` API. It **sets** the time at boot rather than reading it, because on this batch the RTC has **no backup supply fitted** — neither the time nor a pending alarm survives a power cycle. |
| [`aen-rtc-tick-probe`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-rtc-tick-probe) / [`aen-rtc-control2-probe`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-rtc-control2-probe) | Diagnostics for the RV-3028-C7 driver: whether an intermittent seconds-field stall is the RTC, the I²C read or the host timebase; and a **read-only** check that the driver's init now clears the real 12/24-hour bit in `CONTROL_2` (an earlier driver revision cleared the wrong bit). |
| [`aen-sensor-int-probe`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-sensor-int-probe) | **2626-R2 EVK only** (the current 2641-R3 EVK has no motion, pressure or temperature sensors and no fitted I/O expander). Follows one physical interrupt end to end: ICM-42670 and BMP581 data-ready pins, routed through the EVK's TCAL9538 I/O expander, latched and read back by the host — calling the interrupt APIs of all three chip drivers on the real carrier bus. |

A theme worth noticing across the last few rows: several E8 peripherals are only reachable once the **CC3501E coprocessor** routes a board mux for them. See [`aen-cc3501e-gpio`](https://docs.alplab.ai/sdk/examples/aen/aen-cc3501e-gpio) for how that proxy works.

## Board demos

| Example | What it is |
|---|---|
| [`aen-evk-demo`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-evk-demo) | A phased full-board demo of an E1M-AEN SoM on the E1M-EVK. Every phase returns exactly one of `PASS`, `SKIPPED` (hardware absent, or no operator for a physical step — **never** `PASS`) or `FAIL`, and the summary always reports all three counts. It exists because `i2c-device-hub` once printed `RESULT PASS` while a sensor was still returning its power-on sentinel. Fourteen phases cover RTC + temperature, the sensors, the six INA236 rails, the I/O expander, the encoder, the CC3501E, Ethernet, audio, display, JPEG and NPU; the SD phase always reports `SKIPPED` on 2626-R2. |
| [`aen-trace-runner`](https://github.com/alplabai/alp-sdk/tree/main/examples/aen/aen-trace-runner) | **Trace Runner**, the exhibition endless-runner game for the E1M-AEN803 on the E1M-EVK with the 720×1280 MIPI-DSI panel: MoveNet pose estimation on the M55-HP's Ethos-U55 reads the player's arms through the camera, the M55-HE runs the game logic and HUD, and a bare-metal Cortex-A32 renders the 3D scene. Bench: built from this directory and flashed onto an E1M-AEN803, it booted standalone into the game after each of three cold power cycles at 30.0 fps with 0 dropped frames. A showcase, not a template. |

## Build

Like the regchecks, these are standalone Zephyr apps — no `board.yaml`, no `alp_project.py` flow:

```sh
export ZEPHYR_BASE=<zephyr-base>
west build -p always -b alp_e1m_aen801_m55_he/ae822fa0e5597ls0/rtss_he \
    examples/aen/<name> -d build/<name> -- \
    "-DEXTRA_ZEPHYR_MODULES=<alp-sdk>;<hal_alif>"
```

Each app's `boards/` overlay auto-applies for the matching board target; several also ship an `alp_e1m_aen803_*` overlay for the E1M-AEN803. Apps that outgrow the ITCM RAM-run region (the NPU person-detect model, the DSI framebuffer) or must survive a cold-boot wake (`aen-power-stop`) link into MRAM slot0 and are SE-booted instead. For a RAM-run, the shared bench fragments under `scripts/bench/aen/` (`aen-bench-shared.conf` for the RAM console, `aen-flowc-itcm.conf` + `aen-flowc-itcm.overlay` for the ITCM link) are layered on with `EXTRA_CONF_FILE` / `EXTRA_DTC_OVERLAY_FILE` rather than edited into each app.

## See also

- [Peripheral Regchecks](https://docs.alplab.ai/sdk/examples/aen/aen-regchecks) — the other half of the non-catalog AEN bench suite
- [E1M-AEN — bench status](https://docs.alplab.ai/e1m/e1m-aen#e1m-aen801-alif-e8-bench-status) — what has actually been proven on silicon
- [`aen-npu-inference`](https://docs.alplab.ai/sdk/examples/aen/aen-npu-inference) — the NPU example with its own page (a bench app with no `board.yaml`)
- [`aen-rpc-pingpong`](https://docs.alplab.ai/sdk/examples/aen/aen-rpc-pingpong) · [`aen-dualcore-ipc`](https://docs.alplab.ai/sdk/examples/aen/aen-dualcore-ipc) — the dual-core examples with their own pages (bench apps with no `board.yaml`)
- [Examples overview](https://docs.alplab.ai/sdk/examples/overview)
