circuitpython/ports/nrf
Dan Halbert f9831b3bbc
Merge pull request #7639 from adafruit/8.0.x
Merge 8.0.x up to main
2023-02-24 19:32:09 -05:00
..
bluetooth Add two stage reset for BLE 2022-05-12 13:20:44 -07:00
boards Alphabetize, fix typo and remove incorrect comment 2023-02-23 14:34:54 -08:00
common-hal Merge pull request #7639 from adafruit/8.0.x 2023-02-24 19:32:09 -05:00
device/nrf52 more missing-prototypes fixes 2021-11-10 21:00:17 -06:00
freeze
nrfx@3f55e49eb1
peripherals/nrf Use memory fence when disabling cache to avoid -O2 problems 2022-12-29 19:49:40 -05:00
supervisor Implement safemode.py 2023-02-13 18:26:38 -05:00
.gitignore remove redundant port/*/.gitignore; cleanup others 2022-10-01 11:52:36 -04:00
Makefile Add Bangle.js 2, JDI memory displays and ACeP epd 2023-02-15 15:03:40 -08:00
README.md
background.c Add Bangle.js 2, JDI memory displays and ACeP epd 2023-02-15 15:03:40 -08: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
ld_defines.c
mpconfigport.h
mpconfigport.mk Change I2C terminology from "peripheral" to "target" 2022-08-09 13:13:19 -04:00
mphalport.h
nrfx_config.h
nrfx_glue.h
nrfx_log.h
qstrdefsport.h
sd_mutex.c
sd_mutex.h

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: