Merge pull request #76 from glennrub/readme_update

nrf: Updating README.
This commit is contained in:
Daniel Tralamazza 2017-06-07 21:57:37 +02:00 committed by GitHub
commit f730ea9602

View File

@ -1,8 +1,8 @@
# MicroPython port to the NRF5 # MicroPython Port To The Nordic Semiconductor nRF Series
This is a port of MicroPython to the Nordic nRF5 series of chips. This is a port of MicroPython to the Nordic Semiconductor nRF series of chips.
## Supported features ## Supported Features
* UART * UART
* SPI * SPI
@ -18,8 +18,9 @@ This is a port of MicroPython to the Nordic nRF5 series of chips.
* Central role and Peripheral role on nrf52 targets * Central role and Peripheral role on nrf52 targets
* _REPL over Bluetooth LE_ (optionally using WebBluetooth) * _REPL over Bluetooth LE_ (optionally using WebBluetooth)
* ubluepy: Bluetooth LE module for micropython * ubluepy: Bluetooth LE module for micropython
* 1 non-connectable advertiser while in connection
## Tested hardware ## Tested Hardware
* nRF51 * nRF51
* [micro:bit](http://microbit.org/) * [micro:bit](http://microbit.org/)
@ -44,7 +45,7 @@ Prerequisite steps for building the nrf port:
git submodule update --init git submodule update --init
make -C mpy-cross make -C mpy-cross
By default PCA10040 (nrf52832) is used as compile target. To build and flash issue the following command inside the nrf/ folder: By default, the PCA10040 (nrf52832) is used as compile target. To build and flash issue the following command inside the nrf/ folder:
make make
make flash make flash
@ -54,16 +55,6 @@ Alternatively the target board could be defined:
make BOARD=pca10040 make BOARD=pca10040
make flash make flash
Available board target names:
* microbit
* feather52
* pca10000
* pca10001
* pca10028
* pca10031
* pca10040
* pca10056
## Compile and Flash with Bluetooth Stack ## Compile and Flash with Bluetooth Stack
First prepare the bluetooth folder by downloading Bluetooth LE stacks and headers: First prepare the bluetooth folder by downloading Bluetooth LE stacks and headers:
@ -79,47 +70,42 @@ The **make sd** will trigger a flash of the bluetooth stack before that applicat
Note: further tuning of features to include in bluetooth or even setting up the device to use REPL over Bluetooth can be configured in the bluetooth_conf.h. Note: further tuning of features to include in bluetooth or even setting up the device to use REPL over Bluetooth can be configured in the bluetooth_conf.h.
Board | SD param | Support ## Target Boards and Make Flags
------------|-------------|----------
microbit | s110 | Peripheral
pca10000 | s110 | Peripheral
pca10001 | s110 | Peripheral
pca10028 | s110 | Peripheral
pca10031 | s110 | Peripheral
pca10040 | s132 | Peripheral and Central
feather52 | s132 | Peripheral and Central
pca10056 | |
## Segger targets Target Board (BOARD) | Bluetooth Stack (SD) | Bluetooth Support | Flash Util
---------------------|-------------------------|------------------------|-------------------------------
microbit | s110 | Peripheral | [PyOCD](#pyocdopenocd-targets)
pca10000 | s110 | Peripheral | [Segger](#segger-targets)
pca10001 | s110 | Peripheral | [Segger](#segger-targets)
pca10028 | s110 | Peripheral | [Segger](#segger-targets)
pca10031 | s110 | Peripheral | [Segger](#segger-targets)
pca10040 | s132 | Peripheral and Central | [Segger](#segger-targets)
feather52 | s132 | Peripheral and Central | [UART DFU](#dfu-targets)
pca10056 | | | [Segger](#segger-targets)
## Segger Targets
Install the necessary tools to flash and debug using Segger: Install the necessary tools to flash and debug using Segger:
[JLink](https://www.segger.com/downloads/jlink#) [JLink Download](https://www.segger.com/downloads/jlink#)
[nrfjprog linux-32bit](https://www.nordicsemi.com/eng/nordic/download_resource/52615/16/95882111/97746) [nrfjprog linux-32bit Download](https://www.nordicsemi.com/eng/nordic/download_resource/52615/16/95882111/97746)
[nrfjprog linux-64bit](https://www.nordicsemi.com/eng/nordic/download_resource/51386/21/77886419/94917)
[nrfjprog osx](https://www.nordicsemi.com/eng/nordic/download_resource/53402/12/97293750/99977)
[nrfjprog win32](https://www.nordicsemi.com/eng/nordic/download_resource/33444/40/22191727/53210)
Boards that would need JLink/nrfjprog: [nrfjprog linux-64bit Download](https://www.nordicsemi.com/eng/nordic/download_resource/51386/21/77886419/94917)
* PCA10000
* PCA10001
* PCA10028
* PCA10031
* PCA10040
* PCA10056
## PyOCD/OpenOCD targets [nrfjprog osx Download](https://www.nordicsemi.com/eng/nordic/download_resource/53402/12/97293750/99977)
[nrfjprog win32 Download](https://www.nordicsemi.com/eng/nordic/download_resource/33444/40/22191727/53210)
## PyOCD/OpenOCD Targets
Install the necessary tools to flash and debug using OpenOCD: Install the necessary tools to flash and debug using OpenOCD:
sudo apt-get install openocd sudo apt-get install openocd
sudo pip install pyOCD sudo pip install pyOCD
Boards that would need PyOCD: ## DFU Targets
* micro:bit
## DFU targets
sudo apt-get install build-essential libffi-dev pkg-config gcc-arm-none-eabi git python python-pip sudo apt-get install build-essential libffi-dev pkg-config gcc-arm-none-eabi git python python-pip
git clone https://github.com/adafruit/Adafruit_nRF52_Arduino.git git clone https://github.com/adafruit/Adafruit_nRF52_Arduino.git
@ -133,9 +119,6 @@ Boards that would need PyOCD:
Example on how to generate and flash feather52 target: Example on how to generate and flash feather52 target:
make BOARD=feather52 make BOARD=feather52 SD=s132
make BOARD=feather52 dfu-gen make BOARD=feather52 SD=s132 dfu-gen
make BOARD=feather52 dfu-flash make BOARD=feather52 SD=s132 dfu-flash
Boards that would need DFU flash utilities:
* feather52 (Adafruit Feather nRF52)