GithubHelp home page GithubHelp logo

cm_examples's Introduction

Example OOT project for Dev Board Micro

This serves as a starting point for your own Dev Board Micro projects when you want your project to live outside the coralmicro tree, rather than inside it. For more information about creating a project, either in-tree or out-of-tree, see the guide to Build apps with FreeRTOS for the Dev Board Micro.

Note: This project depends on coralmicro, which requires about 2.5 GB.

1. Clone this project and submodules

git clone --recurse-submodules -j8 https://github.com/karu2003/cm_examples

2. Build the project

cd cm_examples

cmake -B out -S .

make -C out -j8

To maximize your CPU usage, replace -j8 with either -j$(nproc) on Linux or -j$(sysctl -n hw.ncpu) on Mac.

2.1 Build in VS code

use only release configuration

3. Flash it to your board

python3 coralmicro/scripts/flashtool.py --build_dir out --elf_path out/xxx/xxx

Anytime you make changes to the code, rebuild it with the make command and flash it again.

Note: In addition to specifying the path to your project's ELF file with elf_path, it's necessary to specify the build output directory with build_dir because flashtool needs to get the elf_loader (bootloader) program from there.

If you followed the guide to get started with the Dev Board Micro, then both the build_dir and elf_path arguments are probably new to you. That's because when flashing in-tree examples and apps (as we do in that guide), the build_dir is ommitted because the flashtool uses the local build directory by default. Similarly, in-tree examples and apps don't need to specify the ELF file with elf_path because those files are built in the same build directory—we can instead specify just the project name with --example (or -e) and --app (or -a) when flashing these in-tree projects.

how to use matplotlibcpp

sudo apt-get install python3-dev

Find the location of the numpy headers. You can do this with a Python one-liner: python3 -c "import numpy; print(numpy.get_include())" This will print the path to the numpy headers. include_directories(/path/to/numpy/headers)

git submodule add -b 3.4.0 https://gitlab.com/libeigen/eigen.git lib/eigen-3.4.0 cd eigen-3.4 mkdir build cd build cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local sudo make install

sudo apt-get install pybind11-dev

cm_examples's People

Contributors

karu2003 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.