|
| 1 | +.. _nrf51_pca10031: |
| 2 | + |
| 3 | +nRF51-PCA10031 |
| 4 | +############## |
| 5 | + |
| 6 | +Overview |
| 7 | +******** |
| 8 | + |
| 9 | +The nRF51 Dongle (PCA10031) hardware provides support for the Nordic |
| 10 | +Semiconductor nRF51822 ARM Cortex-M0 CPU and the following devices: |
| 11 | + |
| 12 | +* :abbr:`ADC (Analog to Digital Converter)` |
| 13 | +* CLOCK |
| 14 | +* FLASH |
| 15 | +* :abbr:`GPIO (General Purpose Input Output)` |
| 16 | +* :abbr:`I2C (Inter-Integrated Circuit)` |
| 17 | +* :abbr:`NVIC (Nested Vectored Interrupt Controller)` |
| 18 | +* RADIO (Bluetooth Low Energy) |
| 19 | +* :abbr:`RTC (nRF RTC System Clock)` |
| 20 | +* Segger RTT (RTT Console) |
| 21 | +* :abbr:`SPI (Serial Peripheral Interface)` |
| 22 | +* :abbr:`UART (Universal asynchronous receiver-transmitter)` |
| 23 | +* :abbr:`WDT (Watchdog Timer)` |
| 24 | + |
| 25 | +.. figure:: img/nrf51_pca10031.jpg |
| 26 | + :width: 442px |
| 27 | + :align: center |
| 28 | + :alt: nRF51 PCA10031 Dongle |
| 29 | + |
| 30 | + nRF51 PCA10031 Dongle (Credit: Nordic Semi) |
| 31 | + |
| 32 | +More information about the board can be found at the |
| 33 | +`nRF51 Dongle website`_. The `Nordic Semiconductor Infocenter`_ |
| 34 | +contains the processor's information and the datasheet. |
| 35 | + |
| 36 | +Hardware |
| 37 | +******** |
| 38 | + |
| 39 | +nRF51 Dongle has two external oscillators. The frequency of |
| 40 | +the slow clock is 32.768 kHz. The frequency of the main clock |
| 41 | +is 16 MHz. |
| 42 | + |
| 43 | +Supported Features |
| 44 | +================== |
| 45 | + |
| 46 | +The nrf51_pca10031 board configuration supports the following nRF51 |
| 47 | +hardware features: |
| 48 | + |
| 49 | ++-----------+------------+----------------------+ |
| 50 | +| Interface | Controller | Driver/Component | |
| 51 | ++===========+============+======================+ |
| 52 | +| ADC | on-chip | adc | |
| 53 | ++-----------+------------+----------------------+ |
| 54 | +| CLOCK | on-chip | clock_control | |
| 55 | ++-----------+------------+----------------------+ |
| 56 | +| FLASH | on-chip | flash | |
| 57 | ++-----------+------------+----------------------+ |
| 58 | +| GPIO | on-chip | gpio | |
| 59 | ++-----------+------------+----------------------+ |
| 60 | +| I2C(M) | on-chip | i2c | |
| 61 | ++-----------+------------+----------------------+ |
| 62 | +| NVIC | on-chip | arch/arm | |
| 63 | ++-----------+------------+----------------------+ |
| 64 | +| RADIO | on-chip | Bluetooth | |
| 65 | ++-----------+------------+----------------------+ |
| 66 | +| RTC | on-chip | system clock | |
| 67 | ++-----------+------------+----------------------+ |
| 68 | +| RTT | Segger | console | |
| 69 | ++-----------+------------+----------------------+ |
| 70 | +| SPI(M/S) | on-chip | spi | |
| 71 | ++-----------+------------+----------------------+ |
| 72 | +| UART | on-chip | serial | |
| 73 | ++-----------+------------+----------------------+ |
| 74 | +| WDT | on-chip | watchdog | |
| 75 | ++-----------+------------+----------------------+ |
| 76 | + |
| 77 | +Other hardware features are not supported by the Zephyr kernel. |
| 78 | +See `nRF51 Dongle website`_ and `Nordic Semiconductor Infocenter`_ |
| 79 | +for a complete list of nRF51 Dongle hardware features. |
| 80 | + |
| 81 | +Connections and IOs |
| 82 | +=================== |
| 83 | + |
| 84 | +LED |
| 85 | +--- |
| 86 | + |
| 87 | +* LED1 (red) = P0.21 |
| 88 | +* LED1 (green) = P0.22 |
| 89 | +* LED1 (blue) = P0.23 |
| 90 | + |
| 91 | +Push buttons |
| 92 | +------------ |
| 93 | + |
| 94 | +* BOOT = SW1 = boot/reset |
| 95 | + |
| 96 | +Programming and Debugging |
| 97 | +************************* |
| 98 | + |
| 99 | +Flashing |
| 100 | +======== |
| 101 | + |
| 102 | +Follow the instructions in the :ref:`nordic_segger` page to install |
| 103 | +and configure all the necessary software. Further information can be |
| 104 | +found in :ref:`nordic_segger_flashing`. Then build and flash |
| 105 | +applications as usual (see :ref:`build_an_application` and |
| 106 | +:ref:`application_run` for more details). |
| 107 | + |
| 108 | +Here is an example for the :ref:`hello_world` application. |
| 109 | + |
| 110 | +First, run your favorite terminal program to listen for output. |
| 111 | + |
| 112 | +.. code-block:: console |
| 113 | +
|
| 114 | + $ minicom -D <tty_device> -b 115200 |
| 115 | +
|
| 116 | +Replace :code:`<tty_device>` with the port where the board nRF51 Dongle |
| 117 | +can be found. For example, under Linux, :code:`/dev/ttyACM0`. |
| 118 | + |
| 119 | +Then build and flash the application in the usual way. |
| 120 | + |
| 121 | +.. zephyr-app-commands:: |
| 122 | + :zephyr-app: samples/hello_world |
| 123 | + :board: nrf51_pca10031 |
| 124 | + :goals: build flash |
| 125 | + |
| 126 | +Debugging |
| 127 | +========= |
| 128 | + |
| 129 | +Refer to the :ref:`nordic_segger` page to learn about debugging Nordic boards with a |
| 130 | +Segger IC. |
| 131 | + |
| 132 | +Testing the LEDs on the nRF51 Dongle |
| 133 | +************************************ |
| 134 | + |
| 135 | +Build and flash the :ref:`blinky-sample` sample to test that the onboard LED |
| 136 | +is working properly with Zephyr. |
| 137 | + |
| 138 | +References |
| 139 | +********** |
| 140 | + |
| 141 | +.. target-notes:: |
| 142 | + |
| 143 | +.. _nRF51 Dongle website: http://www.nordicsemi.com/eng/Products/nRF51-Dongle |
| 144 | +.. _Nordic Semiconductor Infocenter: http://infocenter.nordicsemi.com/ |
| 145 | + |
0 commit comments