circuitpython/ports/cxd56
Dan Halbert 68a2927385 MP_REGISTER_ROOT_POINTER for port-specific root pointers 2023-09-29 15:46:42 -04:00
..
boards/spresense Use MP_WEAK for default board.c routines 2022-09-08 07:36:50 -04:00
common-hal wip; fix more m_malloc and gc_alloc 2023-08-11 00:30:34 -04:00
configs/circuitpython spresense: update SDK to 3.0.1 2023-06-14 12:30:39 +02:00
mkspk pre-commit uncrustify 2023-08-18 22:53:14 -04:00
spresense-exported-sdk@c12296c5ff spresense: update SDK to 3.0.1 2023-06-14 12:30:39 +02:00
supervisor finish converting to MP_REGISTER_ROOT_POINTER() 2023-09-29 10:49:34 -04:00
tools spresense: update SDK to 2.3.0 2021-09-13 11:04:15 +02:00
Makefile finish converting to MP_REGISTER_ROOT_POINTER() 2023-09-29 10:49:34 -04:00
README.md spresense: update SDK to 3.0.1 2023-06-14 12:30:39 +02:00
alloca.h
background.c Fix ticks 2023-04-07 09:49:51 -07:00
background.h
mpconfigport.h MP_REGISTER_ROOT_POINTER for port-specific root pointers 2023-09-29 15:46:42 -04:00
mpconfigport.mk Change I2C terminology from "peripheral" to "target" 2022-08-09 13:13:19 -04:00
mphalport.c
mphalport.h Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00
qstrdefsport.h Merge MicroPython 1.13 into CircuitPython 2021-05-04 18:06:33 -07:00

README.md

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 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 v3-0-0

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