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 1.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

Welcome to Spresense libs for Arduino compatible project

Clone this repository.

$ git clone [email protected]:sonydevworld/spresense-arduino-compatible.git

Directory structure

spresense-arduino-compatible
|-- Arduino15
|   |-- packages/SPRESENSE           - Spresense packages
|   |   |-- hardware
|   |   |   `--spresense             - Spresense reference board codes
|   |   |      `-- 1.0.0
|   |   |          |-- cores
|   |   |          |-- libraries
|   |   |          `-- variants
|   |   `-- tools                    - Necessary tool chain and prebuilt binaries
|   |       |-- spresense-tools      - Spresense tools
|   |       |   `-- 1.0.0
|   |       |-- spresense-sdk        - Spresense SDK prebuilt binaries
|   |       |   `-- 1.0.0
|   |       `-- gcc-arm-none-eabi    - GCC compiler
|   |           `-- 5.4.1
|   `-- package_spresense_index.json - Arduino IDE configuration json file
`-- tools                            - Import/Export tools

Getting started

How to prepare Arduino environment

Pull or Import GCC and Prebuilt SDK

./tools/prepare_arduino.sh [OPTIONS...]

Options

For using local archive

Option Argument Note
-g path/to/GCC-archive-path GCC archive path
-s path/to/SDK-archive-path Prebuilt SDK archive path

For using local source code

Option Argument Note
-S path/to/spresense-sdk-path Local Spresense SDK build root path
-v Board_variant Target board variant (default:spresense)
-k release or debug Target kerneo configuration (default: release)
-M "SDK" or "Kernel" or "SDK/Kernel" Manual configuration by menuconfig
-G "SDK" or "Kernel" or "SDK/Kernel" Manual configuration by gconfig
-Q "SDK" or "Kernel" or "SDK/Kernel" Manual configuration by qconfig
-i - Do not change Kernel/SDK configuration

Other option

Option Argument Note
-H Windows or Linux64 or Mac Arduino IDE Host OS
-p - No network access option
-h - Show help

Example

Pull GCC and Spresense SDK prebuilt from network

./tools/prepare_arduino.sh

Pull GCC and Spresense SDK prebuilt from local archive

./tools/prepare_arduino.sh -s path/to/spresense-sdk.tar.gz -g path/to/gcc-arm-none-eabi-5.4.1-linux.tar.gz

Update SDK prebuilt by using default configuration

./tools/prepare_arduino.sh -H Windows -S /home/user1/spresense -k release -v spresense -p

Update SDK prebuilt by using default configuration and manual configuration change

./tools/prepare_arduino.sh -H Windows -S /home/user1/spresense -k release -v spresense -M SDK/Kernel -p
  • Menu configuration will open twice as 'NuttX Configuration' and 'SDK configuration'

Creating platform specific packages

To create a platform specific package for installation simply type:

make packages           - will create packages for all platforms

This command will generate the following files:

spresense-arduino-linux.zip
spresense-arduino-macosx.zip
spresense-arduino-windows.zip

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.