Skip to content

edgeimpulse/firmware-infineon-cy8ckit-062-ble

Repository files navigation

EdgeImpulse Firmware for Infineon PSoC63 (CY8CKIT-062-BLE)

Edge Impulse enables developers to create the next generation of intelligent device solutions with embedded machine learning. This repository contains the Edge Impulse firmware for Infineon PSoC62 BLE Pioneer Kit with E-ink Display kit. This device supports all of Edge Impulse's device features, including ingestion, remote management and inferencing.

Introduction

This project supports:

  • Data ingestion using the EdgeImpulse Studio
    • Movement sampling from the Bosch BMI160 Inertial sensor on the EPD hat
    • Audio sampling using the PDM Microphone on the EPD hat
    • Temperature sampling using the Environmental sensor on the EPD hat
  • Live inference with all sensors
    • Sensor Fusion using Inertial and Environmental sensor together
  • Storing samples on the external NOR Flash using the QSPI inteface

TODO:

  • Migrate from shared MTB to local (All libraries must be provided in this code repository)

Project dependencies:

  • PSoC6 io_retarget library for UART interface
  • PSoC6 serial-flash library for QSPI interface
  • PSoC6 I2C library for hardware-driven Master I2C interface
  • BMI160 driver

Requirements

Software

  • Install ModusToolbox SDK and IDE
  • Toolchain in the SDK is GNU Arm® embedded compiler v9.3.1

Hardware

Building

ModusToolbox IDE

Comammand Line

  1. Install ModusToolbox

  2. Clone this repository.

  3. Open terminal and go to the directory with cloned project

  4. Run the following commands

    make getlibs
    make build
    

Docker

TODO: Docker image not available yet

  1. Build docker image

    docker build -t edge-impulse-infineon .
    
  2. Build firmware

    docker run --rm -v $PWD:/app edge-impulse-infineon
    

Flashing

ModusToolbox IDE

Infineon provides extensive documentation, with screenshots, about how to use the ModusToolbox IDE. Topics covered include:

  • Importing a project
  • Building the project
  • Flashing the project to the board

Please visit this link for the Infineon ModusToolbox IDE guide

Command Line

  1. After building the firmware (see steps above) connect the board and run

    make program
    

Standalone

  1. Install CyProgrammer

  2. Connect the board and run CyProgrammer

  3. Select a probe/kit

  4. Select compiled hex file

  5. Connect to the board

  6. Program the firmware

  7. After successful flashing, you should see a LED blinking patter

Troubleshooting

Audio sampling at 8kHz

The current firmware version can not sample at 8kHz. We have put request to the engineering team at Infineon for clarification of the PDM setings.

Audio sampling at 16 and 32kHz works and the audio quality is high.

No other known issues