/coralmicro

Source code for Coral Dev Board Micro

Primary LanguageC++Apache License 2.0Apache-2.0

Coral Dev Board Micro source code (coralmicro)

This repository contains all the code required to build apps for the Coral Dev Board Micro. The Dev Board Micro is based on the NXP RT1176 microcontroller (dual-core MCU with Cortex M7 and M4) and includes an on-board camera (324x324 px), a microphone, and a Coral Edge TPU to accelerate TensorFlow Lite models.

The software platform for Dev Board Micro is called coralmicro and is based on FreeRTOS. It also includes libraries for compatibility with the Arduino programming language.

The coralmicro build system is based on CMake and includes support for Make and Ninja builds. After you build the included projects, you can flash them to your board with the included flashtool (scripts/flashtool.py).

main arduino

Documentation

Get the code

  1. Clone coralmicro and all submodules:

    git clone --recurse-submodules -j8 https://github.com/google-coral/coralmicro
  2. Install the required tools:

    cd coralmicro && bash setup.sh

Build the code

This builds everything in a folder called build (or you can specify a different path with -b, but if you do then you must also specify that path everytime you call flashtool.py):

bash build.sh

Flash the board

This example blinks the board's green LED:

python3 scripts/flashtool.py -e blink_led

You can see the code at examples/blink_led/.

Reset the board to Serial Downloader

Flashing the Dev Board Micro might fail sometimes and you can usually solve it by starting Serial Downloader mode in one of two ways:

  • Hold the User button while you press the Reset button.
  • Or, hold the User button while you plug in the USB cable.

Then try flashing the board again.

For more details, see the troubleshooting info on coral.ai.

Update the repo

Use the following commands to keep all coralmicro submodules in sync (rebasing your current branch):

git fetch origin

git rebase origin/main

git submodule update --init --recursive