Skip to content

edgeimpulse/example-microchip-sama7g54

Repository files navigation

example-microchip-sama7g54

Introduction

This repository contains:

  • A Dockerfile to build an image which can be used as a container for running the Buildroot steps
  • A Buildroot configuration file to setup the build to work with Edge Impulse

Prerequisites

Hardware Setup

Set these jumpers to the default settings:

jumpers

Provide power to the board as described in the Microchip documentation.

Buildroot

Build with: docker build . -t microchip

Run with: docker run -it -v $PWD/build:/buildroot-microchip/buildroot-at91/output/images microchip

Change directory: cd buildroot-microchip/buildroot-at91/

Inside the container, run this command: make menuconfig Make changes to config if necessary, otherwise, exit the menuconfig without changes.

Proceed to building the image with make -j $((`nproc` - 1))

The resulting image will be build/sdcard.img.

Further documentation on building Linux images for these devices is available at Microchip.

Connecting the EVK

The Microchip Developer Help portal has documentation for serial communications to the SAMA7G54-EK. Once your serial terminal is connected make sure the device has power and press the nStart button, you should see messages appearing over the serial console.

Login with root user and edgeimpulse password.

If you would like to use SSH to connect to the board, some additional steps are necessary:

  1. cd /etc/ssh/
  2. nano sshd_config
  3. Uncomment and change PermitRootLogin prohibit-password to PermitRootLogin yes
  4. Uncomment PasswordAuthentication yes
  5. CTRL+X then Y then Enter
  6. reboot to restart SSH
  7. ifconfig to get IP address
  8. On host machine ssh [email protected]

Connect a webcam to the board and run edge-impulse-linux, and proceed to login and choose a project to connect the device.

Go to your studio project and start collecting data!

Next Steps

See our documentation for the Microchip SAMA7 for more details on using the SAMA7 with Edge Impulse and links to public projects supporting the hardware.

Enabling and running example-standalone-inferencing-linux

The main route for deploying en Edge Impulse project with SAMA7G54-EK Evaluation Kit is through using .eim. However it is also possible to build example-standalone-inferencing-linux package and run it on the device. To do that run make menuconfig Go to Target packages -> Miscellaneous and choose Example Standalone Inferencing Linux package. Paste the project deployment files (edge-impulse-sdk, model-parameters, tflite-model) into buildroot-microchip/buildroot-at91/package/example-standalone-inferencing-linux folder. Proceed to building the image with make -j $((`nproc` - 1)) You will be able to find custom application file in /home on your target. Run it with ./custom features.txt, where features.txt is a file with raw features.

About

Edge Impulse Linux Enabled Buildroot image for Microchip SAMA7G54

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published