Error writing DWM1001 flash using VM tools

I set up the VM and downloaded dwm1001_on-board_package_v1p0.tar. I connected to the DWM1001 using minicom and did the si command:

dwm> si
[000576.530 INF] cfg:
[000576.530 INF] >fw2=x00044000
[000576.530 INF] board=DWM1001_A2
[000576.530 INF] cfg_ver=x00010700
[000576.540 INF] fw_ver=x01010501
[000576.540 INF] hw_ver=xDECA002A
[000576.540 INF] opt=x13C1A340
[000576.550 INF] fw_size[0]=x0001F000
[000576.550 INF] fw_size[1]=x00022000
[000576.550 INF] fw_size[2]=x0003C000
[000576.560 INF] fw_csum[0]=x9445F89E
[000576.560 INF] fw_csum[1]=x37A439E0
[000576.570 INF] fw_csum[2]=xF83EE8A1
[000576.570 INF] opt: ACC LEDS PASV TWR LE BPC UWB0 BLE I2C SPI UART
[000576.580 INF] mcu: temp=24.5 hfclk=xtal:on lfclk=rc:on
[000576.580 INF] uptime: 00:09:36.580 0 days (576580 ms)
[000576.590 INF] mem: free=3344 alloc=11744 tot=15088
[000576.590 INF] uwb: ch5 prf64 plen128 pac8 txcode9 rxcode9 sfd0 baud6800 phrext sfdto129 smart1
[000576.600 INF] uwb: tx_pwr=xC0/x25456585 125:250:500:norm[ms]=17:14:11:8[dB] pgcnt=0 temp=0
[000576.610 INF] uwb0: lna=0 xtaltrim=15 tx_delay=16472 rx_delay=16472
[000576.620 INF] uwb0: ID dev=xDECA0130 part=xC3F40A84 lot=x013A6102
[000576.630 INF] uwb0: panid=x0000 addr=xDECA301B03440A84
[000576.630 INF] mode: tn (pasv,twr,np,le)
[000576.630 INF] uwbmac: disconnected
[000576.640 INF] ble: addr=CD:E6:34:12:9F:25

I went through the process of updating the flash. In the dwm_simple directory I ran make recover (after installing openocd). I got the following:

openocd -s …/…//lib/ -f nrf52_swd.cfg -c “init;halt;eraseall;shutdown”
Open On-Chip Debugger 0.9.0 (2018-01-24-01:07)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : JLink SWD mode enabled
adapter speed: 10000 kHz
cortex_m reset_config sysresetreq
set_boot_addr_fw2
Info : J-Link OB-STM32F072-128KB-CortexM compiled May 4 2017 14:43:23
Info : J-Link caps 0xb8ea5a33
Info : J-Link hw version 10000
Info : J-Link hw type J-Link
Info : J-Link max mem block 7192
Info : J-Link configuration
Info : USB-Address: 0x0
Info : Kickstart power on JTAG-pin 19: 0xffffffff
Info : Vref = 3.300 TCK = 0 TDI = 0 TDO = 1 TMS = 1 SRST = 1 TRST = 1
Info : J-Link JTAG Interface ready
Info : clock speed 10000 kHz
Info : SWD IDCODE 0x2ba01477
Info : nrf52.cpu: hardware has 6 breakpoints, 4 watchpoints
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x010e0000 pc: 0x0006b0c2 psp: 0x20009bb8
shutdown command invoked
openocd -d0 -s …/…//lib/ -f nrf52_swd.cfg -c “init;reset halt;sleep 250;flash erase_address 0 0x1f000;reset halt;wdt_feed;flash write_image …/…//recovery/s132_nrf52_3.0.0_softdevice.hex 0;reset run;shutdown”
Open On-Chip Debugger 0.9.0 (2018-01-24-01:07)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
debug_level: 0
adapter speed: 10000 kHz
cortex_m reset_config sysresetreq
set_boot_addr_fw2
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc
erased address 0x00000000 (length 126976) in 1.735789s (71.437 KiB/s)
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc
wrote 124736 bytes from file …/…//recovery/s132_nrf52_3.0.0_softdevice.hex in 4.630070s (26.309 KiB/s)
shutdown command invoked
openocd -d0 -s …/…//lib/ -f nrf52_swd.cfg -c “init;reset halt;sleep 250;flash erase_address 0x22000 0x22000;reset halt;wdt_feed;flash write_image …/…//recovery/dwm-core_fw1.bin 0x22000;reset run;shutdown”
Open On-Chip Debugger 0.9.0 (2018-01-24-01:07)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
debug_level: 0
adapter speed: 10000 kHz
cortex_m reset_config sysresetreq
set_boot_addr_fw2
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x000008e4 msp: 0x20000400
Error: No flash at address 0x00022000

…/…/include/dwm.mak:143: recipe for target ‘recover_fw1’ failed
make: *** [recover_fw1] Error 1

Now the DWM1001 is unusable. It does not respond to minicom.