https://github.com/edgeimpulse/example-standalone-inferencing-alif-csolution
Builds and runs an exported impulse locally for Alif HW
https://github.com/edgeimpulse/example-standalone-inferencing-alif-csolution
Last synced: 29 days ago
JSON representation
Builds and runs an exported impulse locally for Alif HW
- Host: GitHub
- URL: https://github.com/edgeimpulse/example-standalone-inferencing-alif-csolution
- Owner: edgeimpulse
- License: apache-2.0
- Created: 2024-05-02T14:55:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-12T15:01:47.000Z (12 months ago)
- Last Synced: 2025-09-29T13:54:38.696Z (about 1 month ago)
- Language: C
- Size: 19.7 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# example-standalone-inferencing-alif-csolution
Builds and runs an exported impulse locally for Alif HW
This application is built on VSCode Getting Started Template (alif_vscode-template)
The default hardware is Gen 2 Ensemble DevKit with camera module and display.
The required software setup consists of VSCode, Git, CMake, cmsis-toolbox, Arm GNU toolchain, Alif tools and JLink (for debugging).
Please refer to the [Getting Started Guide](https://alifsemi.com/download/AUGD0012) for more details.
## Prerequisites
1. Create an edge impulse account at [edgeimpulse.com](https://www.edgeimpulse.com/)
2. Install the latest `Alif Security Toolkit`:
* Navigate to the [Alif Semiconductor Kit documentation](https://alifsemi.com/kits) page (you will need to register to create an account or log in). and download the latest `App Security Toolkit`.
* Extract archive where you prefer and create an envirionmental variable `SETOOLS_ROOT` pointing to it.
* Follow the instructions in local the `Alif Security Toolkit Quickstart Guide` to finalize the installation.
3. Clone this repo and intitialize the submodules:
```
git submodule init
git submodule update
```
## Build
> [!IMPORTANT]
> To build and manage the project, you need to follow this guide on how to setup the [CMSIS-Toolbox](https://github.com/Open-CMSIS-Pack/cmsis-toolbox/blob/main/docs/README.md)
### Using Arm CMSIS Solution extension
Go to the CMSIS extension tab, and click the hammer icon.
### Using the script
Run the script with the target you want to be flashed, default is HP
ie to compile HE:
```
build.sh HE
```
Large models that don't fit into `DTCM` memory can be placed in the `SRAM0` section using the `HP_SRAM` argument:
```
sh build.sh HP_SRAM
```
To clean:
```
build.sh clean
```
## Flash the board
> [!IMPORTANT]
> To flash the board you need to set the `SETOOLS_ROOT` environmental variable to point to the Alif Security Toolkit
To Flash the board, set the jumper J15 in the following position:
1-3
2-4
### Flash using VS code
Task -> Run Task -> Program with security toolkit.
The actual config will be flashed.
### Flash using script
Run the script with the target you want to be flashed, default is HP
ie to flash HE:
```
flash.sh HE
```
## Connect to serial console
To connect to the board, use the following settings:
J15
3-5
4-6
115200, 8, N, 1
## Run a debug session
Connect the 20pin cable of JLink to J13 and press F5.
## Update model
To update your model, unizp the CMSIS pack deployment, install the packs using `cpackget add .pack` and paste the `model.yml` in the `model` folder.