Up Squared Audio DSP¶
The Zephyr SDK 0.11 or higher is required.
Since firmware binary signing for Audio DSP is mandatory on Intel products form Skylake onwards the signing tool and key are needed.
The key used is Intel Open Source Technology Center (OTC) community key. It can be freely used by anyone and intended for firmware developers. Please download and store private key from the location: https://github.com/thesofproject/sof/blob/master/rimage/keys/otc_private_key.pem
Setup up_squared board¶
To setup Linux on
up_squared board refer to
Getting Started with Ubuntu Core on an UP Squared Board 1.
Programming and Debugging¶
Build Zephyr application¶
Applications can be build in the usual way (see Building an Application
for more details). The only additional step required is signing. For example,
hello_world application following steps are needed.
Building Zephyr application
# From the root of the zephyr repository west build -b up_squared_adsp samples/hello_world
Sign and create firmware image
west sign -t rimage -- -k <path to otc_private_key.pem>
Loading image to Audio DSP¶
$ sudo boards/xtensa/up_squared_adsp/tools/fw_loader.py -f <path to zephyr.ri>
The only way to debug application is using logging. Logging and ADSP logging backend needs to be enabled in the application configuration.
$ sudo boards/xtensa/up_squared_adsp/tools/dump_trace.py Open HDA device: /dev/hda 0 : Hello World! up_squared_adsp