circuitpython/ports/nrf/boards/nrf52840-mdk-usb-dongle
robert-hh a1f838cdf1 nrf/modules/machine/pwm: Use extmod/machine_pwm.c for PWM module.
This is a breaking change, making the hardware PWM on the nrf port
compatible with the other ports providing machine.PWM.

Frequency range 4Hz - ~5.4 MHz.  The base clock range is 125kHz to 16 MHz,
and the divider range is 3 - 32767.

The hardware supports up to four outputs per PWM device with different duty
cycles, but only one output is (and was) supported.
2023-03-10 10:43:55 +11:00
..
board.json ports: Add images, features and urls to board.json. 2021-10-28 15:25:38 +11:00
mpconfigboard.h nrf/modules/machine/pwm: Use extmod/machine_pwm.c for PWM module. 2023-03-10 10:43:55 +11:00
mpconfigboard.mk nrf/boards: Enable MICROPY_VFS_LFS2 for all target boards. 2021-08-08 23:17:55 +10:00
pins.csv nrf: Add board definition for nRF52840-MDK-USB-Dongle. 2020-07-16 23:47:13 +10:00
README.md nrf: Change selected boards to utilize pre-flashed bootloader. 2020-12-07 20:04:50 +01:00

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.