On your Himax WE-I Plus
Last updated
Was this helpful?
Last updated
Was this helpful?
Impulses can be deployed as a C++ library. This packages all your signal processing blocks, configuration and learning blocks up into a single package. You can include this package in your own application to run the impulse locally. In this tutorial you'll export an impulse, and build an application for the development board to classify sensor data.
Note: Are you looking for an example that has all sensors included? The Edge Impulse firmware for the Himax WE-I Plus has that. See .
Make sure you've followed one of the tutorials and have a trained impulse. Also install the following software:
- to flash the firmware.
A build toolchain, either:
.
Or, the , and make sure you have arc-elf32-gcc
in your PATH (Linux only).
Or, the - including a valid license, and make sure you have ccac
in your PATH.
If you're building with the GNU or DesignWare toolchains, also install:
.
.
We created an example repository which contains a small application for the Himax WE-I Plus, which takes the raw features as an argument, and prints out the final classification. Download the application , or import this repository using Git:
Head over to your Edge Impulse project, and go to Deployment. From here you can create the full library which contains the impulse and all external required libraries. Select C++ library and click Build to create the library.
Download the .zip
file and extract the directories in the 'example-standalone-inferencing-himax' folder. Make sure to not replace CMakeLists.txt
in this folder. Your final folder structure should look like this:
With the project ready it's time to verify that the application works. Head back to the studio and click on Live classification. Then load a validation sample, and click on a row under 'Detailed result'.
To verify that the local application classifies the same, we need the raw features for this timestamp. To do so click on the 'Copy to clipboard' button next to 'Raw features'. This will copy the raw values from this validation file, before any signal processing or inferencing happened.
Open main.cc
and paste the raw features inside the static const float features[]
definition, for example:
Then build and flash the application to your development board:
Build the container:
Then set up your build environment:
And build and link the application:
There are instructions in the README.md file on how to build with the Metaware toolkit under Docker.
Create a build directory and initialize CMake:
Build and link the application:
Create a build directory and initialize CMake:
Build and link the application:
You'll need the Edge Impulse CLI v1.10 or higher. Then flash the binary with:
To see the output of the impulse, connect to the development board over a serial port on baud rate 115,200 and reset the board. You can do this with your favourite serial monitor or with the Edge Impulse CLI:
This will run the signal processing pipeline, and then classify the output:
Which matches the values we just saw in the studio. You now have your impulse running on your Himax WE-I Plus development board!