Adafruit nRF52840 Feather

Posted on
  • I was hoping to be able to use the nRF52840 port on the Adafruit nRF52840 Feather (that uses the MDBT50Q module). I managed to successfully compile the .hex file using the attached board file that I based on a combination of the NRF52840DK.py and MDBT42Q.py files.

    I don't have the tiny SWD cable on hand, so I was hoping to just use Adafruit's bootloader. I generated a DFU package using

    adafruit-nrfutil dfu genpkg --dev-type 0x0052 --application espruino_2v09.134_nrf52840.hex dfu-package.zip
    

    and then successfully flashed it using

    adafruit-nrfutil --verbose dfu serial --package dfu-package.zip --port /dev/ttyACM0 -b 115200 --singlebank
    

    Unfortunately I can't connect to the board over BLE afterwards, and it also doesn't mount over USB. Any chance that this could work, or should I just bite the bullet and get a J-Link with the right cable?


    1 Attachment

  • the espruino_2v09.134_nrf52840.hex is most probably full hex file with softdevice included. to build --application dfu zip you should take the intermediate file called espruino_2v09.134_nrf52840.app_hex which is only the application.

    Also the softdevice version must match what adafruit bootloader currently uses. Or if it doesn't use any softdevice (the newest one can be build like that?) you probably need to flash matching softdevice too - make another zip package with --softdevice softdevice.hex , not --application and flash both zips separately. see the end of espruino build output for file names, you should see mergehex running.

    or alternatively it may be easier to convert full hex file you have to uf2 instead of dfu zip and flash that over usb as per https://github.com/adafruit/Adafruit_nRF­52_Bootloader#making-your-own-uf2

  • @fanoush Converting the full hex file to UF2 and just copying that over to the board was very easy and appears to be working, thanks so much!

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Adafruit nRF52840 Feather

Posted by Avatar for gendor @gendor

Actions