# helia-dsp v2.0.0

Structural release: CMSIS-DSP moves out of this repository's tree into a commit-pinned submodule of Ambiq's public fork, Ambiq-owned code moves under `helia/`, and Arm's public types are restored. It ports no extension and adds no kernel.

## Identity

- Distribution: `helia-dsp 2.0.0`
- CMSIS-DSP dependency: https://github.com/AmbiqAI/CMSIS-DSP commit `3cb29e105241b425410745a4b8c42ed905299ba7` (branch `ambiq/integration`, tag `ambiq/2026.10.2`), at `third_party/CMSIS-DSP`
- Upstream base of the dependency: ARM-software/CMSIS-DSP commit `83a2d7bc98c81b4bbe4a6f48b1f2ecf179868a0b` (`v1.18.0-4-g83a2d7bc`)
- Carried fork patches: pull requests 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 20, 21, 22, 23, 28, 29, 52, 53, 55 (titles in `PROVENANCE.toml`); none submitted to Arm
- Public CMSIS-DSP component/API line: `1.18.0`
- Previous release: `v1.1.1` (`61a07899972ca448dadfe053699912ceadf72098`, on `release/v1.x`); v1.1.0 and v1.1.1 are the last with CMSIS-DSP edited in place

## Breaking changes from v1.1.0

- `arm_biquad_casd_df1_inst_f32` is Arm's type again. In MVE configurations without `ARM_MATH_AUTOVECTORIZE`, initialize with `arm_biquad_cascade_df1_mve_init_f32` and 32 floats of caller-owned coefficient storage per stage; the plain initializer gives incorrect output there, as in upstream CMSIS-DSP. `coefLayout`, `ARM_BIQUAD_DF1_F32_MOD_LAYOUT` and `arm_biquad_generate_mod_coefs_f32` are removed.
- In MVE configurations without `ARM_MATH_AUTOVECTORIZE`, the f32 FIR state buffer must hold `4*ceil(numTaps/4) + 2*blockSize - 1` floats (fork pull request #9), not the `numTaps + 2*blockSize - 1` of the 1.1.0 header; the two differ when `numTaps` is not a multiple of four, and a buffer of the 1.1.0 length is then overrun by up to three floats at initialization.
- `ARM_RFFT_FAST_INIT_F32(S, LEN)` is removed; call `arm_rfft_fast_init_<LEN>_f32`.
- An existing `CMSISDSP` target that defines `ARM_DSP_CUSTOM_CONFIG` is rejected as the CMSIS-DSP provider, since the `arm_dsp_config.h` it includes can change structure layouts without the provider check seeing it; let heliaDSP build CMSIS-DSP instead. Zephyr builds are not affected.
- An existing `CMSISDSP` target built with `MATRIXCHECK=ON` is rejected unless `ARM_MATH_MATRIX_CHECK` also reaches its consumers.
- The repository layout, the NSX metadata path (`nsx/nsx-module.yaml`), the Zephyr module identity (`helia-dsp`, depending on `cmsis-dsp`) and the target behind `nsx::helia_dsp` change; a Git checkout needs the submodule.

## Known consumer impact

- nsx-physiokit v0.1.0 gives incorrect output in Helium builds under the biquad change above (`pk_init_biquad_filter_f32`). The NSX module registry stays on v1.x until a physiokit release with the fix.

## Qualification

See `COMPATIBILITY.md` for the matrix, what was executed, and on what. It also records a compiler defect: Arm GNU 15.2.Rel1 miscompiles Arm's handwritten Helium complex-FFT kernels (incorrect output and writes below the caller's buffer), and the qualified CMSIS-DSP commit carries a source workaround for it. ATfE 22.1.0 is the production compiler for Helium builds.

See `CHANGELOG.md` for the full list.
