Skip to content

edgeimpulse/example-standalone-inferencing-himax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Edge Impulse Example: stand-alone inferencing (Himax WE-I Plus)

This runs an exported impulse on the Himax WE-I Plus development board. See the documentation at Running your impulse locally (Himax WE-I Plus).

How to build (Linux)

Metaware Toolkit

  1. Install the DesignWare ARC MetaWare Toolkit and make sure ccac is in your PATH. You'll also need a valid ARC MetaWare license.

  2. Create a build directory and initialize CMake:

    $ mkdir build-mw
    $ cd build-mw
    $ cmake -DCMAKE_TOOLCHAIN_FILE=toolchain.metaware.cmake ..
    
  3. Build and link the application:

    $ make -j
    $ sh ../make-image.sh MW
    

GNU

  1. Install the GNU Toolchain for DesignWare ARC processors and make sure arc-elf32-gcc is in your PATH.

  2. Create a build directory and initialize CMake:

    $ mkdir build-gnu
    $ cd build-gnu
    $ cmake -DCMAKE_TOOLCHAIN_FILE=toolchain.gnu.cmake ..
    
  3. Build and link the application:

    $ make -j
    $ sh ../make-image.sh GNU
    

How to build (any other operating system using Docker)

Metaware Toolkit

  1. Note that you'll need a valid ARC MetaWare license to build.

  2. Build the container:

    $ docker build -t himax-build -f Dockerfile .
    
  3. Then set up your build environment:

    $ mkdir -p build-mw
    $ docker run --rm -it -v $PWD:/app himax-build /bin/bash -c "cd build-mw && cmake -DCMAKE_TOOLCHAIN_FILE=toolchain.metaware.cmake .."
    
  4. And build and link the application:

    $ docker run --rm -it -v $PWD:/app:delegated -e [email protected] himax-build /bin/bash -c "cd build-mw && make -j && sh ../make-image.sh MW"
    

    Where you'll have to replace [email protected] with your license server or license file.

GNU

  1. Build the container:

    $ docker build -t himax-build-gnu -f Dockerfile.gnu .
    
  2. Then set up your build environment:

    $ mkdir -p build-gnu
    $ docker run --rm -it -v $PWD:/app himax-build-gnu /bin/bash -c "cd build-gnu && cmake -DCMAKE_TOOLCHAIN_FILE=toolchain.gnu.cmake .."
    
  3. And build and link the application:

    $ docker run --rm -it -v $PWD:/app:delegated himax-build-gnu /bin/bash -c "cd build-gnu && make -j && sh ../make-image.sh GNU"
    

Flashing the binary

You'll need the Edge Impulse CLI. Then flash the binary with:

$ himax-flash-tool --firmware-path image_gen_linux/out.img