boards/adafruit/feather_nrf52840/doc/index.rst
.. zephyr:board:: adafruit_feather_nrf52840
Overview
The Adafruit Feather nRF52840 provides support for the Nordic Semiconductor nRF52840 ARM Cortex-M4F CPU and the following devices:
ADC (Analog to Digital Converter)GPIO (General Purpose Input Output)I2C (Inter-Integrated Circuit)MPU (Memory Protection Unit)NVIC (Nested Vectored Interrupt Controller)PWM (Pulse Width Modulation)RTC (nRF RTC System Clock)SPI (Serial Peripheral Interface)UART (Universal asynchronous receiver-transmitter)USB (Universal Serial Bus)WDT (Watchdog Timer).. tabs::
.. group-tab:: Express
.. figure:: img/adafruit_feather_nrf52840_express.jpg
:align: center
:alt: Adafruit Feather nRF52840 Express
.. group-tab:: Sense
.. figure:: img/adafruit_feather_nrf52840_sense.jpg
:align: center
:alt: Adafruit Feather nRF52840 Sense
Hardware
.. zephyr:board-supported-hw::
.. tabs::
.. group-tab:: Express
The `Adafruit Feather nRF52840 Express Learn site`_ has
detailed information about the board including
`pinouts (Express)`_ and the `schematic (Express)`_.
.. group-tab:: Sense
The `Adafruit Feather nRF52840 Sense Learn site`_ has
detailed information about the board including
`pinouts (Sense)`_ and the `schematic (Sense)`_.
Programming and Debugging
.. zephyr:board-supported-runners::
Flashing Zephyr onto both the Feather nRF52840 Express and Sense is possible using the SWD headers. Only the Express board has an SWD connector however.
Both the Feather nRF52840 Express and Sense ship with the Adafruit nRF52 Bootloader_
which supports flashing using UF2_. This allows easy flashing of new images,
but does not support debugging the device.
#. Build the Zephyr kernel and the :zephyr:code-sample:blinky sample application.
.. tabs::
.. group-tab:: Express
.. zephyr-app-commands::
:zephyr-app: samples/basic/blinky
:board: adafruit_feather_nrf52840
:goals: build
:compact:
.. group-tab:: Express UF2
.. zephyr-app-commands::
:zephyr-app: samples/basic/blinky
:board: adafruit_feather_nrf52840/nrf52840/uf2
:goals: build
:compact:
.. group-tab:: Sense
.. zephyr-app-commands::
:zephyr-app: samples/basic/blinky
:board: adafruit_feather_nrf52840/nrf52840/sense
:goals: build
:compact:
.. group-tab:: Sense UF2
.. zephyr-app-commands::
:zephyr-app: samples/basic/blinky
:board: adafruit_feather_nrf52840/nrf52840/sense/uf2
:goals: build
:compact:
#. If using UF2, connect the board to your host computer using USB.
#. Tap the reset button twice quickly to enter bootloader mode.
A mass storage device named FTHR840BOOT for (Express) or
FTHRSNSBOOT (Sense) should appear on the host. Ensure this is
mounted.
#. Flash the image.
.. tabs::
.. group-tab:: Express
.. zephyr-app-commands::
:zephyr-app: samples/basic/blinky
:board: adafruit_feather_nrf52840
:goals: flash
:compact:
.. group-tab:: Express UF2
.. zephyr-app-commands::
:zephyr-app: samples/basic/blinky
:board: adafruit_feather_nrf52840/nrf52840/uf2
:goals: flash
:compact:
.. group-tab:: Sense
.. zephyr-app-commands::
:zephyr-app: samples/basic/blinky
:board: adafruit_feather_nrf52840/nrf52840/sense
:goals: flash
:compact:
.. group-tab:: Sense UF2
.. zephyr-app-commands::
:zephyr-app: samples/basic/blinky
:board: adafruit_feather_nrf52840/nrf52840/sense/uf2
:goals: flash
:compact:
#. You should see the red LED blink.
References
.. target-notes::
.. _Adafruit Feather nRF52840 Express Learn site: https://learn.adafruit.com/introducing-the-adafruit-nrf52840-feather/
.. _pinouts (Express): https://learn.adafruit.com/introducing-the-adafruit-nrf52840-feather/pinouts
.. _schematic (Express): https://learn.adafruit.com/introducing-the-adafruit-nrf52840-feather/downloads
.. _Adafruit Feather nRF52840 Sense Learn site: https://learn.adafruit.com/adafruit-feather-sense
.. _pinouts (Sense): https://learn.adafruit.com/adafruit-feather-sense/pinouts
.. _schematic (Sense): https://learn.adafruit.com/adafruit-feather-sense/downloads
.. _Adafruit nRF52 Bootloader: https://github.com/adafruit/Adafruit_nRF52_Bootloader
.. _UF2: https://github.com/microsoft/uf2