Skip to content

Integrating Generated Modules (Zephyr & neuralSPOT)

This guide shows how to drop a HeliaAOT-generated module into two common Ambiq workflows. It summarizes the integration snippets used by the auto-generated docs and lets you prep your app without re-running a build first.

Zephyr Integration

  • Add the NS-CMSIS-NN module (remote via west manifest or by copying it into modules/ns-cmsis-nn), then list it in ZEPHYR_EXTRA_MODULES before find_package(Zephyr).
  • Copy your generated module (e.g., modules/<your-module>) into the Zephyr project and also add it to ZEPHYR_EXTRA_MODULES.
  • Enable FPU (and sharing if needed) plus NS-CMSIS-NN in prj.conf; set CONFIG_<MODULE_NAME>=y (uppercase, hyphens as underscores).
  • Run west update, then rebuild with a pristine build to ensure the modules are picked up.

neuralSPOT Integration

  • Copy NS-CMSIS-NN into modules/ns-cmsis-nn.
  • Copy the generated module into modules/<your-module> (or emit directly there via --module.path <project-root>/modules).
  • Add both modules to your application makefile’s modules list so neuralSPOT’s make-library helper builds them into a static library.
  • Rebuild your application (make clean && make) so the new module is linked in.