https://github.com/edgeimpulse/example-standalone-inferencing-ambiq-apollo4
example-standalone-inferencing-ambiq-apollo4
https://github.com/edgeimpulse/example-standalone-inferencing-ambiq-apollo4
Last synced: about 2 months ago
JSON representation
example-standalone-inferencing-ambiq-apollo4
- Host: GitHub
- URL: https://github.com/edgeimpulse/example-standalone-inferencing-ambiq-apollo4
- Owner: edgeimpulse
- License: bsd-3-clause-clear
- Created: 2024-11-08T17:44:38.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-02-10T09:58:55.000Z (3 months ago)
- Last Synced: 2025-03-07T00:58:40.732Z (about 2 months ago)
- Language: C
- Size: 12.8 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Edge Impulse Example: standalone inferencing (Ambiq Apollo 4)
This runs an exported impulse on Ambiq Apollo 4 EVB.
## Prerequisites
1. Apollo 4 EVB (Plus / Blue / Blue Plus)
2. GCC v13.x.x
3. [Segger Jlink software](https://www.segger.com/downloads/jlink/)4. In Edge Impulse Platform: deploy the impulse you want to test as a C++ library and copy the contents of the resulting ZIP (`model-parameters`, `tflite-model` and `edge-impulse-sdk` folders) into [src/edge-impulse](src/edge-impulse)
5. Paste the raw features array in the following array in `src/ei_main.cpp`
```
static const float features[] = {
// copy raw features here
};
```## Build
To build the application:
```bash
make -j `nproc`
```To clean the build:
```bash
make clean
```## Flash
To flash the board, first connect the EVK via Segger USB port on the board and run:
```bash
make deploy
```## Debug on VsCode
> [!IMPORTANT]
> You need to install [JLink software](https://www.segger.com/downloads/jlink/) and [Cortex-Debug](https://marketplace.visualstudio.com/items?itemName=marus25.cortex-debug) extension.
To start a debug session, make sure to connect the board to J6 (JLINK USB) and press F5.## Connect to the board
Connect USB-C cables to both APOLLO4 USB connectors.
The board will show as a USB device.