micropython/ports/nrf/boards/NRF52840_MDK_USB_DONGLE
Damien George b4d288ae44 nrf: Use MICROPY_PY_MACHINE_SPI instead of MICROPY_PY_MACHINE_HW_SPI.
MICROPY_PY_MACHINE_SPI is defined in mpconfigport.h to be equal to
MICROPY_PY_MACHINE_HW_SPI, so they are equivalent options.  The former one
is preferred because it's used by all other ports.

The default in mpconfigport.h is to enable this option, and all boards that
enable SPI have this removed from their mpconfigboard.h file so they pick
up the default.

Signed-off-by: Damien George <damien@micropython.org>
2023-11-30 16:10:10 +11:00
..
README.md
board.json
mpconfigboard.h nrf: Use MICROPY_PY_MACHINE_SPI instead of MICROPY_PY_MACHINE_HW_SPI. 2023-11-30 16:10:10 +11:00
mpconfigboard.mk
pins.csv

README.md

nRF52840 MDK USB Dongle

The nRF52840 MDK USB Dongle is a small, low-cost development board in a USB dongle form-factor powered by an nRF52840 with 1MB flash and 256KB RAM.

This device is pre-installed with Open Bootloader, allowing DFU upgrades over USB using Nordic nRF Connect or nrfutil. To support Open Bootloader, the flash and memory layout must be adjusted slightly (details here) from the typical nRF build; this board definition ensure the appropriate build configuration is used for MicroPython.

Pinout

The pinout diagram provides an overview of the available pins and their capabilities. All pins are available in MicroPython, using the pin numbers labelled in the diagram (excluding the leading port number, P0).

The three LEDs are available either through the usual Pin mechanism - pins 22-24 - or by board.LED(n) where n can be 1, 2 or 3.

Build instructions

Follow the standard nRF Port build instructions; but use nrf52840-mdk-usb-dongle as the value for BOARD:

make BOARD=nrf52840-mdk-usb-dongle

The build artifacts will be created in build-nrf52840-mdk-usb-dongle. Once built, the target can be deployed to the device as described in nRFUtil targets.

An alternative way to deploy to the device, is to open firmware.hex using nRF Connect and select Write. Detailed instructions can be found on the developer wiki.