b-parasite-esp32/resources.md
2021-02-10 00:07:57 +01:00

2.7 KiB

My development board

Articles

  • Great article about using Rust and Apache Mynewt, but also covers J-Link, ST-Link, openocd, unlocking the nrf52. Link on medium

SWD vs. Bootloader vs. DFU

  • How nrfutil is used in the platformio nordicnrf52 package: link
  • Seems like we can use DFU if we install a DFU-enabled bootloader like the Adafruit_nRF52_Bootloader
  • Using the adafruit nrf52 bootloader with the E73-TBB link

Burning the Adafruit bootloader

  1. $ brew cask install nordic-nrf-command-line-tools -> Didn't work. I had to manually install the pkgs from nordic
  2. pip install intelhex
  3. PATH=$PATH:/Users/rbaron/.platformio/packages/framework-arduinoadafruitnrf52/tools/adafruit-nrfutil/macos make BOARD=feather_nrf52840_express all

Uploading with nrfutil

$ ~/.platformio/packages/framework-arduinoadafruitnrf52/tools/adafruit-nrfutil/macos/adafruit-nrfutil dfu genpkg --dev-type 0x0052 --sd-req 0x00B7 --application .pio/build/e73-tbb/firmware.hex dfu-pkg.zip
Zip created at dfu-pkg.zip

$ ~/.platformio/packages/framework-arduinoadafruitnrf52/tools/adafruit-nrfutil/macos/adafruit-nrfutil dfu serial --package dfu-pkg.zip -p /dev/cu.usbserial-14330 -b 115200
Upgrading target on /dev/cu.usbserial-14330 with DFU package /Users/rbaron/dev/parasite/code/parasite/dfu-pkg.zip. Flow control is disabled, Dual bank, Touch disabled
########################################
########################################
########################################
########################################
########################################
#######################
Activating new firmware
Device programmed.

It flashes okay, but the program doesn't seem to run - the leds don't flash.