circuitpython/ports/nrf
Scott Shawcroft ab70f8eace
Merge remote-tracking branch 'adafruit/main' into i2s_mclk
2023-08-24 15:07:14 -07:00
..
bluetooth wip; fix more m_malloc and gc_alloc 2023-08-11 00:30:34 -04:00
boards turn off some modules to save flash space 2023-08-20 11:18:46 -05:00
common-hal Merge remote-tracking branch 'adafruit/main' into i2s_mclk 2023-08-24 15:07:14 -07:00
device/nrf52 more missing-prototypes fixes 2021-11-10 21:00:17 -06:00
freeze run code formatting script 2021-03-15 19:27:36 +05:30
nrfx@3f55e49eb1 update nrfx submodule to v2 2019-12-18 15:39:11 +07:00
peripherals/nrf Use memory fence when disabling cache to avoid -O2 problems 2022-12-29 19:49:40 -05:00
supervisor fix typos (partial) detected by codepell 2023-03-18 22:17:02 +07:00
.gitignore remove redundant port/*/.gitignore; cleanup others 2022-10-01 11:52:36 -04:00
Makefile silabs build needs work; other builds are working 2023-08-13 19:05:16 -04:00
README.md all: Remove support for FROZEN_DIR and FROZEN_MPY_DIR. 2021-12-17 23:54:05 +11:00
background.c Fix ticks 2023-04-07 09:49:51 -07:00
background.h Add Bangle.js 2, JDI memory displays and ACeP epd 2023-02-15 15:03:40 -08:00
espruino_dfu_private_key.pem Add Bangle.js 2, JDI memory displays and ACeP epd 2023-02-15 15:03:40 -08:00
gccollect.c run code formatting script 2021-03-15 19:27:36 +05:30
ld_defines.c run code formatting script 2021-03-15 19:27:36 +05:30
mpconfigport.h fix typos (partial) detected by codepell 2023-03-18 22:17:02 +07:00
mpconfigport.mk initial v1.19.1 merge; not compiled yet 2023-08-01 13:50:05 -04:00
mphalport.h Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00
nrfx_config.h nrf/mpconfigport: Set MICROPY_CONFIG_ROM_LEVEL defines for each MCU. 2022-06-03 12:36:40 +10:00
nrfx_glue.h nrf/modules/nrf: Add function to enable/disable DCDC. 2021-08-09 14:55:59 +10:00
nrfx_log.h all: Reformat C and Python source code with tools/codeformat.py. 2020-02-28 10:33:03 +11:00
qstrdefsport.h nrf/qstrdefsport.h: Add entries for in-built FS mount points. 2021-08-08 23:17:49 +10:00
sd_mutex.c -Werror=missing-prototypes for nRF 2021-11-10 11:26:54 -06:00
sd_mutex.h run code formatting script 2021-03-15 19:27:36 +05:30

README.md

CircuitPython Port To The Nordic Semiconductor nRF52 Series

This is a port of CircuitPython to the Nordic Semiconductor nRF52 series of chips.

NOTE: There are board-specific READMEs that may be more up to date than the generic board-neutral documentation below.

Flash

Some boards have UF2 bootloaders and can simply be flashed in the normal way, by copying firmware.uf2 to the BOOT drive.

For some boards, you can use the flash target:

make BOARD=pca10056 flash

Segger Targets

Install the necessary tools to flash and debug using Segger:

JLink Download

nrfjprog linux-32bit Download

nrfjprog linux-64bit Download

nrfjprog osx Download

nrfjprog win32 Download

note: On Linux it might be required to link SEGGER's libjlinkarm.so inside nrfjprog's folder.

DFU Targets

run follow command to install adafruit-nrfutil from PyPi

$ pip3 install --user adafruit-nrfutil

make flash and make sd will not work with DFU targets. Hence, dfu-gen and dfu-flash must be used instead.

  • dfu-gen: Generates a Firmware zip to be used by the DFU flash application.
  • dfu-flash: Triggers the DFU flash application to upload the firmware from the generated Firmware zip file.

When enabled you have different options to test it: