CMSIS-Pack¶
heliaCORE publishes a CMSIS-Pack on every release. The pack ships with
two Cvariants so you can choose between rebuilding from source or
linking the prebuilt .a we already validated in CI.
Install¶
VERSION=7.25.0
curl -LO https://github.com/AmbiqAI/ns-cmsis-nn/releases/download/v${VERSION}/Ambiq.NS-CMSIS-NN.${VERSION}.pack
# CMSIS-Toolbox
cpackget add Ambiq.NS-CMSIS-NN.${VERSION}.pack
# Keil MDK / older tooling
# Double-click the .pack file, or import via Pack Installer.
Pick a Cvariant¶
The pack defines the component Ambiq::NN Lib with two variants:
Cvariant |
What you get |
When to use |
|---|---|---|
|
The CMSIS-NN sources compiled by your project’s toolchain. |
You want maximum control / portability. |
|
A vendored |
You want fewer moving parts. |
In your .cproject or IDE, select one of:
<component Cclass="Ambiq" Cgroup="NN Lib" Cvariant="Source" Cversion="7.25.0"/>
<component Cclass="Ambiq" Cgroup="NN Lib" Cvariant="Prebuilt" Cversion="7.25.0"/>
Prebuilt — supported architectures¶
The Prebuilt Cvariant is gated by per-arch conditions. The pack ships
GCC-built archives for:
ARMv6-M (
cortex-m0/cortex-m0+)ARMv7E-M (
cortex-m4with FPv4 SP-D16)ARMv8.1-M MVE (
cortex-m55)
If your target doesn’t match one of these, switch to the Source
Cvariant — the kernels will be recompiled by your toolchain.
Warning
Toolchain note
The prebuilt .a files are GCC-built today. ATfE or Arm Compiler 6 projects can
link a GCC-built C archive when the CPU/FPU flags, float ABI, and calling
convention match, but the Source Cvariant is recommended when you want your
project toolchain to optimize and qualify the kernels directly.
Verify the selection¶
Before building firmware, confirm your project has exactly one Ambiq::NN Lib
component selected:
Use
Sourcewhen your IDE/toolchain should compile the kernels.Use
Prebuiltwhen the target architecture and ABI match the selected archive.
For CMSIS-Toolbox projects, inspect the resolved component list after pack
resolution and confirm the selected component includes the intended Cvariant.
For IDE projects, open the pack/component view and verify the Source or
Prebuilt variant before the first full build.
Reference¶
Pack manifest:
Ambiq.NS-CMSIS-NN.pdscPack build script:
gen_pack.sh