An open API service indexing awesome lists of open source software.

https://github.com/edgeimpulse/example-standalone-inferencing-ti-launchxl

Builds and runs an exported impulse locally (Texas Instruments LaunchXL)
https://github.com/edgeimpulse/example-standalone-inferencing-ti-launchxl

Last synced: 5 months ago
JSON representation

Builds and runs an exported impulse locally (Texas Instruments LaunchXL)

Awesome Lists containing this project

README

          

# example-standalone-inferencing-ti-launchxl

This repository runs an exported impulse on the Texas Instruments LAUNCHXL-CC1352P1 development board. See the documentation at [Running your impulse locally (TI CC1352P LaunchPad)](https://docs.edgeimpulse.com/docs/running-your-impulse-ti-launchxl).

## Texas Instruments Simplelink SDK

- Uses the TI Simplelink SDK `simplelink_cc13x2_26x2_sdk_5.20.00.52`
- Set `SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR` in `gcc\makefile` to the path to TI SimpleLink SDK.

## Building the application

1. Build the application by calling `make` as follows:

```
$ cd gcc
$ make
```
1. Connect the board to your computer using USB.
1. Flash the board

**Windows**

```
$ dslite.bat -c tools\user_files\configs\cc1352p1f3.ccxml -l tools\user_files\settings\generated.ufsettings -e -f -v gcc\build\edge-impulse-standalone.out
```

**Linux, macOS**

```
$ dslite.sh -c tools/user_files/configs/cc1352p1f3.ccxml -l tools/user_files/settings/generated.ufsettings -e -f -v gcc/build/edge-impulse-standalone.out
```

*Note*: the above expects [UniFlash](https://www.ti.com/tool/UNIFLASH#downloads) is installed and `PATH` is set up properly to find `dslite.sh`.

### Or build with Docker

1. Build the Docker image:
```
$ docker build -t ti-build .
```
1. Build the application by running the container as follows:

**Windows**

```
$ docker run --rm -it -v "%cd%":/app ti-build /bin/bash -c "cd gcc && make"
```

**Linux, macOS**

```
$ docker run --rm -it -v $PWD:/app:delegated ti-build /bin/bash -c "cd gcc && make"
```

1. Connect the board to your computer using USB.
1. Flash the board:

```
$ dslite.sh -c tools/user_files/configs/cc1352p1f3.ccxml -l tools/user_files/settings/generated.ufsettings -e -f -v gcc/build/edge-impulse-standalone.out
```

## Troubleshooting

**Flashing**

If during flashing you encounter flashing issue. Then..

Ensure:

1. your device is properly connected and/or your cable is not damaged.
2. you have the proper permissions to access the USB device.

If on Linux you may want to try copying `tools/71-ti-permissions.rules` to `/etc/udev/rules.d/`. Then re-attach the USB cable and try again.