Recover bootloader on pca10059 - invalid hex file ?

I recently bought a pca10059 and inadvertently erased the bootloader while using a script from another project..  (it did --recover unfortunately).

I'm using the debug out port on a pca10056 for swdio/swdclk; I have 3v0 to VDD_OUT and 'nrfjprog --deviceversion' reports 'NRF52840_xxAA_REV3'.   I have SB47 shorted as well so I know I'm talking to my pca10059.

I've tried flashing various items including the prebuilt graviton_bootloader_mbr_v1.0.1-[nRF5_SDK_15.0.1-1.alpha_f76d012].hex linked to in this page:  nRF52840 Dongle Programming Tutorial 

However, I get this error:

$ nrfjprog -f nrf52 --program graviton_bootloader_mbr_v1.0.1-[nRF5_SDK_15.0.1-1.alpha_f76d012].hex --sectorerase --log
Parsing image file.
ERROR: The file specified is not a valid hex file, has data outside valid areas
ERROR: or does not have data in valid areas.

I also built examples/dfu/open_bootloader for pca10059 and when I try flashing that I get the same error.

$ nrfjprog -f nrf52 --program ./pca10059_usb/armgcc/_build/nrf52840_xxaa.hex
Parsing image file.
ERROR: The file specified is not a valid hex file, has data outside valid areas
ERROR: or does not have data in valid areas.

I've done a fair amount of work on other nrf52840_xxAA devices and am familiar with the tools and workflows; I've just never had this particular problem.

I'm missing something.  Thoughts?

Related