Coral Edge TPU Guide

Using a Coral Edge TPU accelerator (Mini PCIe) on our modules for on-device AI inference. For running ML models on the SoC’s internal NPU see the Machine Learning Guide.

Introduction

../../../_images/coral_overview.jpg

Coral helps you bring on-device AI application ideas from prototype to production. They offer a platform of hardware components, software tools, and pre-compiled models for building devices with local AI. - coral.ai


The Coral Mini PCIe accelerator can be attached to our QSBASE3 baseboard, meaning QSXM and QSXP modules - see the Coral PCIe accelerator and the Add-on Devices compatibility list.

Image

You have two options using it:

Setup

  1. Mount the Coral PCIe module to our QSBASE3 baseboard:

../../../_images/coral_installed.jpg

Enabling PCIe

PCIe has to be enabled for the Mini PCIe slot on QSBASE3. Load the matching FDT overlay in the U-Boot environment (see Devicetree Overlays):

Module on QSBASE3

FDT overlay

QSXM

qsxm-pcie

QSXP

qsxp-pcie

E.g. for a QSXP module:

setenv overlays_qsbase3 ${overlays_qsbase3} qsxp-pcie
saveenv
reset

User Space

For using the Edge TPU from user space — installing the PyCoral library and running a model on the TPU with karo-image-ml — see Coral Edge TPU in the Machine Learning Guide.