circuitpython/ports/cxd56
2020-01-13 07:53:24 +01:00
..
boards working on all ports 2019-12-10 20:27:30 -05:00
common-hal Merge remote-tracking branch 'origin/master' into tick-refactor 2019-11-29 11:27:09 -06:00
mkspk Add mkspk source files 2020-01-13 07:53:24 +01:00
spresense-exported-sdk@7f6568c7f4 Update Spresense SDK to 1.4.1 2019-10-18 10:29:32 +02:00
supervisor Merge pull request #2226 from kamtom480/circuitpython-device-open 2019-10-23 15:08:40 -04:00
.gitignore Add .gitignore 2019-10-11 12:11:48 +02:00
alloca.h Change port name to cxd56 2019-10-11 08:23:51 +02:00
background.c Change port name to cxd56 2019-10-11 08:23:51 +02:00
background.h Change port name to cxd56 2019-10-11 08:23:51 +02:00
fatfs_port.c Change port name to cxd56 2019-10-11 08:23:51 +02:00
Makefile Add mkspk source files 2020-01-13 07:53:24 +01:00
mpconfigport.h CXD56 is a better platform name 2019-10-28 10:47:09 -04:00
mpconfigport.mk Add Spresense board folder 2019-10-11 12:09:51 +02:00
mphalport.c Supervisor: move most of systick to the supervisor 2019-11-18 11:01:23 -06:00
mphalport.h Supervisor: move most of systick to the supervisor 2019-11-18 11:01:23 -06:00
qstrdefsport.h Change port name to cxd56 2019-10-11 08:23:51 +02:00
README.md Change Spresense firmware download link 2019-10-14 08:42:10 +02:00
tick.c Supervisor: move most of systick to the supervisor 2019-11-18 11:01:23 -06:00
tick.h Supervisor: move most of systick to the supervisor 2019-11-18 11:01:23 -06:00

CircuitPython port to Spresense

This directory contains the port of CircuitPython to Spresense. It is a compact development board based on Sonys power-efficient multicore microcontroller CXD5602.

Board features:

  • Integrated GPS
    • The embedded GNSS with support for GPS, QZSS and GLONASS enables applications where tracking is required.
  • Hi-res audio output and multi mic inputs
    • Advanced 192kHz/24 bit audio codec and amplifier for audio output, and support for up to 8 mic input channels.
  • Multicore microcontroller
    • Spresense is powered by Sony's CXD5602 microcontroller (ARM® Cortex®-M4F × 6 cores), with a clock speed of 156 MHz.

Currently, Spresense port does not support GNSS, Audio and Multicore.

Refer to developer.sony.com/develop/spresense/ for further information about this board.

Prerequisites

Linux

Add user to dialout group:

$ sudo usermod -a -G dialout <user-name>

Windows

Download and install USB serial driver

macOS

Download and install USB serial driver

Build instructions

Pull all submodules into your clone:

$ git submodule update --init --recursive

Build the MicroPython cross-compiler:

$ make -C mpy-cross

Change directory to cxd56:

$ cd ports/cxd56

To build circuitpython image run:

$ make BOARD=spresense

USB connection

Connect the Spresense main board to the PC via the USB cable.

Flash the bootloader

The correct bootloader is required for the Spresense board to function.

Bootloader information:

  • The bootloader has to be flashed the very first time the board is used.

  • You have to accept the End User License Agreement to be able to download and use the Spresense bootloader binary.

Download the spresense binaries zip archive from: Spresense firmware v1-4-000

Extract spresense binaries in your PC to ports/spresense/spresense-exported-sdk/firmware/

To flash the bootloader run the command:

$ make BOARD=spresense flash-bootloader

Flash the circuitpython image

To flash the firmware run the command:

$ make BOARD=spresense flash

Accessing the board

Connect the Spresense extension board to the PC via the USB cable.

Once built and deployed, access the CircuitPython REPL (the Python prompt) via USB. You can run:

$ screen /dev/ttyACM0 115200