Clone this repository.
$ git clone git@github.com:sonydevworld/spresense-arduino-compatible.git
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
./tools/prepare_arduino.sh [OPTIONS...]
Option | Argument | Note |
---|---|---|
-g | path/to/GCC-archive-path | GCC archive path |
-s | path/to/SDK-archive-path | Prebuilt SDK archive path |
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 |
Option | Argument | Note |
---|---|---|
-H | Windows or Linux64 or Mac | Arduino IDE Host OS |
-p | - | No network access option |
-h | - | Show help |
./tools/prepare_arduino.sh
./tools/prepare_arduino.sh -s path/to/spresense-sdk.tar.gz -g path/to/gcc-arm-none-eabi-5.4.1-linux.tar.gz
./tools/prepare_arduino.sh -H Windows -S /home/user1/spresense -k release -v spresense -p
./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'
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