circuitpython/ports/nrf
Scott Shawcroft cdf978f3af
Fix a couple fake sleep bugs on nrf and esp
On ESP ctrl-c during fake sleep will now stop the sleep. A crash
on real deep sleep is now fixed as well. (Exception string saving
was crashing on reading the deep sleep exception.) Fixes #4010

This also fixes nRF fake sleep after the first time. The internal
variable wasn't being reset early enough. Fixes #4869
2021-07-28 13:27:48 -07:00
..
bluetooth Create first BLE-only board, Micro:Bit v2 2021-07-14 09:55:51 -07:00
boards Merge pull request #5068 from dhalbert/remove-gamepad 2021-07-27 11:35:06 -04:00
common-hal Fix a couple fake sleep bugs on nrf and esp 2021-07-28 13:27:48 -07:00
device/nrf52 run code formatting script 2021-03-15 19:27:36 +05:30
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 run code formatting script 2021-03-15 19:27:36 +05:30
supervisor remove gamepad; deprecate gamepadshift 2021-07-26 22:15:09 -04:00
.gitignore gitignore: Put build-*/ pattern in top-level gitignore file. 2019-08-16 00:08:08 +10:00
background.c Add BLE serial service 2021-06-25 15:00:10 -07:00
background.h supervisor: factor supervisor_background_tasks from sundry ports 2020-07-15 11:49:44 -05:00
fatfs_port.c run code formatting script 2021-03-15 19:27:36 +05:30
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
Makefile Remove OSError(0) and old network modules 2021-07-21 17:33:40 -07:00
mpconfigport.h nrf: Add more math sources to Makefile, and enable log2 implementation. 2021-06-08 16:39:47 +10:00
mpconfigport.mk Add BLE serial service 2021-06-25 15:00:10 -07:00
mphalport.h run code formatting script 2021-03-15 19:27:36 +05:30
nrfx_config.h Create first BLE-only board, Micro:Bit v2 2021-07-14 09:55:51 -07:00
nrfx_glue.h run code formatting script 2021-03-15 19:27:36 +05:30
nrfx_log.h all: Reformat C and Python source code with tools/codeformat.py. 2020-02-28 10:33:03 +11:00
qstrdefsport.h all: Add *FORMAT-OFF* in various places. 2020-02-28 10:31:07 +11:00
README.md nrf/README: Add use of "make submodules" in alternative build paragraph. 2021-01-30 14:32:55 +11:00
sd_mutex.c run code formatting script 2021-03-15 19:27:36 +05:30
sd_mutex.h run code formatting script 2021-03-15 19:27:36 +05:30

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: