GithubHelp home page GithubHelp logo

spresense / spresense-arduino-compatible Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sonydevworld/spresense-arduino-compatible

0.0 0.0 1.0 178.19 MB

Spresense Arduino Library source code

Home Page: https://developer.sony.com/develop/spresense/developer-tools/get-started-using-arduino-ide

License: GNU Lesser General Public License v2.1

C++ 21.99% C 74.81% Objective-C 0.19% Python 2.27% Makefile 0.14% Shell 0.59%

spresense-arduino-compatible's Introduction

Spresense SDK repository

Clone this repository and update submodules.

$ git clone --recursive https://github.com/sonydevworld/spresense.git

After repositories have been cloned, each submodule is in 'Detached HEAD' state. Master branch have to be checked out before you can start developing.

$ git submodule foreach git checkout master

Submodules

.
├── examples  - Spresense SDK examples
├── nuttx     - NuttX original kernel source + CXD5602 port.
└── sdk       - Spresense SDK source and PC tools.

Using docker

A pre-compiled docker container is available with all the pre-requisite that is needed in order to build the Spresense SDK.

In order to start using it simply type:

$ source spresense_env.sh

This script will create an alias spresense which should preceed the regular SDK build scripts and Make commands. examples

SpresenseSDK: $ spresense make

Spresense SDK build instructions

Prerequisites

Install the necessary packages and GCC ARM toolchain for cross-compilation.

$ sudo apt-get install git gperf libncurses5-dev flex bison gcc-arm-none-eabi

Install the kconfig-frontends package from nuttx-tools.

$ git clone -n https://[email protected]/nuttx/tools.git tools
$ cd tools
$ git config core.autocrlf false
$ git checkout 891510d2534287afef6b5c90a375f94442a7e94d
$ cd kconfig-frontends/
$ ./configure
$ make
$ sudo make install
$ sudo ldconfig

Build

Go to the folder where you cloned the {SDK_FULL}, and enter the sdk folder name:

$ cd spresense/sdk

Set up the nuttx kernel configuration

$ tools/config.py --kernel release

Set up the SDK configuration

$ tools/config.py examples/hello

Build the example image:

$ make buildkernel
$ make

A nuttx.spk file appears in the sdk folder when this step has successfully finished. This file is the final result and can be flashed into the your board.

spresense-arduino-compatible's People

Contributors

shunichi-k avatar spresense avatar ssk-to avatar

Watchers

 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.