This builds and runs an exported impulse locally on your machine.
- Create an edge impulse account at edgeimpulse.com [optional]
- Keil MDK 5.37
Using an Edge Impulse project with the Alif beta enabled, navigate to the Deployment tab. Here you should see an Ethos-U library
deployment option. Select this and click build to download a zip file of the contents. If your project does not have the ethos deployment option, contact [email protected]
Additionally, see the image-example branch for an example of an already downloaded project.
Edge Impulse static examples show the minimal code to run inference, with no peripherals connected to provide data. Instead, we provide a static buffer of data obtained from a studio sample. Follow the steps described here to extract sample features from studio, and use these to populate the features array in source/main.cpp
For pre-configured example code with features and edge-impulse libraries already populated. See the image-example branch of this repository.
- Open project
example.uvprojx
in uVision - Choose one of the following targets:
- Alif E7 M55_HP: Alif E7 Cortex M55 core 0 (high performance) OR
- Alif E7 M55_HE: Alif E7 Cortex M55 core 1 (high efficiency) OR
- AVH_Corstone-300_U55: Arm Virtual Hardware Corstone-300 with Ethos U55
- Build the target
Once programmed, the firmware will run inference and print the results over the serial port.
- Baud 115200
- "8,N,1" (the typical settings for everything else, 8 bit, no parity, 1 stop bit)
- 1.8 Vcc
With debugger attached, my device boots up directly into Bus_Fault (or possibly another fault). This can especially happen when you entered Hard Fault before your last reset.
- Power cycle your board and reload your program