PlatformIO · nRF52840 · Python

UF2 Auto Flash

$ pio run
…
=== Creating DFU package ===
Zip created at .pio/build/adafruit_feather_nrf52840/firmware_dfu.zip
=== DFU Upload ===
1) /dev/cu.Bluetooth-Incoming-Port - n/a
2) /dev/cu.usbmodem141101 - nice!nano  <- probably your board
Enter the number of the port to flash (Enter to skip): 2
🚀 Flashing to port /dev/cu.usbmodem141101 ...
Activating new firmware
Device programmed.
[env:adafruit_feather_nrf52840]
platform = nordicnrf52
board = adafruit_feather_nrf52840
framework = arduino
build_flags =
  -DARDUINO_NICE_NANO
  -DNRF52840_XXAA
  -Wl,--section-start=.text=0x26000
extra_scripts =
  post:auto_flash_nrf.py

0x26000
S140 7.x0x27000