{"id":21191675,"url":"https://github.com/edgeimpulse/firmware-himax-we-i-plus","last_synced_at":"2025-07-10T03:30:48.864Z","repository":{"id":42654328,"uuid":"311927188","full_name":"edgeimpulse/firmware-himax-we-i-plus","owner":"edgeimpulse","description":"Ingestion \u0026 inferencing firmware for the HiMax WE 1 target","archived":false,"fork":false,"pushed_at":"2024-09-18T08:12:37.000Z","size":99021,"stargazers_count":9,"open_issues_count":1,"forks_count":9,"subscribers_count":20,"default_branch":"master","last_synced_at":"2024-09-18T10:49:59.693Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edgeimpulse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-11T09:48:53.000Z","updated_at":"2024-09-18T08:12:40.000Z","dependencies_parsed_at":"2024-09-18T10:40:26.092Z","dependency_job_id":null,"html_url":"https://github.com/edgeimpulse/firmware-himax-we-i-plus","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgeimpulse%2Ffirmware-himax-we-i-plus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgeimpulse%2Ffirmware-himax-we-i-plus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgeimpulse%2Ffirmware-himax-we-i-plus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgeimpulse%2Ffirmware-himax-we-i-plus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edgeimpulse","download_url":"https://codeload.github.com/edgeimpulse/firmware-himax-we-i-plus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225615185,"owners_count":17496944,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T19:04:24.172Z","updated_at":"2024-11-20T19:04:24.648Z","avatar_url":"https://github.com/edgeimpulse.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Edge Impulse firmware for Himax WE-I Plus\n\n[Edge Impulse](https://www.edgeimpulse.com) enables developers to create the next generation of intelligent device solutions with embedded Machine Learning. This repository contains the Edge Impulse firmware for the ST B-L475E-IOT01A development board. This device supports all Edge Impulse device features, including ingestion, remote management and inferencing.\n\n## Requirements\n\n**Hardware**\n\n* [Himax WE-I Plus](https://www.sparkfun.com/products/17256) development board.\n\n**Software**\n\n* You'll need a build toolchain, either:\n    * [ARC GNU Toolchain](https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/releases/download/arc-2020.09-release/arc_gnu_2020.09_prebuilt_elf32_le_linux_install.tar.gz) (free).\n    * [DesignWare ARC MetaWare Toolkit](https://www.synopsys.com/dw/ipdir.php?ds=sw_metaware) (paid):\n        * A valid ARC MetaWare license is required to build the firmware.\n        * Having a local install of [DesignWare ARC MetaWare Toolkit](https://www.synopsys.com/dw/ipdir.php?ds=sw_metaware). Make sure `ccac` is in your `PATH`, and that the licenses are in place.\n    * Or, building with [Docker desktop](https://www.docker.com/products/docker-desktop).\n* [Edge Impulse CLI](https://docs.edgeimpulse.com/docs/cli-installation) - to flash the firmware.\n\n## Building with the GNU Toolchain\n\n### How to build (locally)\n\n1. Clone this repository.\n2. Create a build directory and initialize CMake:\n\n    ```\n    $ mkdir build-gnu\n    $ cd build-gnu\n    $ cmake .. -DCMAKE_TOOLCHAIN_FILE=toolchain.gnu.cmake\n    ```\n\n3. Build and link the application:\n\n    ```\n    $ make -j\n    $ sh ../make-image.sh GNU\n    ```\n\n### How to build (Docker)\n\n1. Clone this repository.\n1. Build the container:\n\n    ```\n    $ docker build -t himax-build-gnu -f Dockerfile.gnu .\n    ```\n\n1. Then set up your build environment:\n\n    ```\n    $ mkdir -p build-gnu\n    $ docker run --rm -it -v $PWD:/app himax-build-gnu /bin/bash -c \"cd build-gnu \u0026\u0026 cmake .. -DCMAKE_TOOLCHAIN_FILE=toolchain.gnu.cmake\"\n    ```\n\n1. And build and link the application:\n\n    ```\n    $ docker run --rm -it -v $PWD:/app:delegated himax-build-gnu /bin/bash -c \"cd build-gnu \u0026\u0026 make -j \u0026\u0026 sh ../make-image.sh GNU\"\n    ```\n\n## Building with ARC MetaWare\n\n### How to build (locally)\n\n1. Clone this repository.\n2. Create a build directory and initialize CMake:\n\n    ```\n    $ mkdir build-mw\n    $ cd build-mw\n    $ cmake .. -DCMAKE_TOOLCHAIN_FILE=toolchain.metaware.cmake\n    ```\n\n3. Build and link the application:\n\n    ```\n    $ make -j\n    $ sh ../make-image.sh MW\n    ```\n\n### How to build (Docker)\n\n1. Clone this repository.\n1. Build the container:\n\n    ```\n    $ docker build -t himax-build-mw -f Dockerfile .\n    ```\n\n1. Then set up your build environment:\n\n    ```\n    $ mkdir -p build-mw\n    $ docker run --rm -it -v $PWD:/app himax-build-mw /bin/bash -c \"cd build-mw \u0026\u0026 cmake .. -DCMAKE_TOOLCHAIN_FILE=toolchain.metaware.cmake\"\n    ```\n\n1. And build and link the application:\n\n    ```\n    $ docker run --rm -it -v $PWD:/app:delegated -e SNPSLMD_LICENSE_FILE=27020@synopsys.edgeimpulse.com himax-build-mw /bin/bash -c \"cd build-mw \u0026\u0026 make -j \u0026\u0026 sh ../make-image.sh MW\"\n    ```\n\n    Where you'll have to replace `27020@synopsys.edgeimpulse.com` with your license server or license file.\n\n\n## Flashing\n\nYou'll need the Edge Impulse CLI v1.12 or higher. Then flash the binary with:\n\n```\n$ himax-flash-tool --firmware-path image_gen_linux/out.img\n```\n\n### Images larger than 1MB\n\nImages larger than 1MB will be automatically split into 1MB images (`out_0.img` and `out_1.img`). Note however that it is required that Himax's bootloader is v.1.4.4 or greater as older bootloader versions do not suppport flashing multiple images. Follow the [instructions to update the bootloader](https://github.com/HimaxWiseEyePlus/bsp_tflu/tree/master/HIMAX_WE1_EVB_user_guide#update-bootloader-version-at-linux-environment) then flash through minicom (as per Himax instructions).\n\n\n## Troubleshooting\n\n* Failed to encode frame as JPEG (4)\n\n```\n\nInferencing settings:\n        Image resolution: 96x96\n        Frame size: 9216\n        No. of classes: 1\nTaking photo...\nBegin output\nFailed to encode frame as JPEG (4)\n```\n\nThere's not enough (contiguous) memory to allocate the jpeg buffer. Try increasing the `jpeg_buffer_size`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedgeimpulse%2Ffirmware-himax-we-i-plus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedgeimpulse%2Ffirmware-himax-we-i-plus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedgeimpulse%2Ffirmware-himax-we-i-plus/lists"}