Here is a copy of my console log. I think the errors are the cause of this mess.
SEGGER J-Link GDB Server V4.80c Command Line Version
JLinkARM.dll V4.80c (DLL compiled Jan 21 2014 20:01:42)
-----GDB Server start settings-----
GDBInit file: none
GDB Server Listening port: 2331
SWO raw output listening port: 2332
Terminal I/O port: 2333
Accept remote connection: localhost only
Generate logfile: off
Verify download: on
Init regs on start: on
Silent mode: off
Single run mode: on
------J-Link related settings------
J-Link script: none
Target interface: SWD
Host interface: USB
Target endian: little
Target interface speed: 30kHz
Connecting to J-Link...
J-Link is connected.
Firmware: J-Link V9 compiled Mar 29 2016 18:46:37
Hardware: V9.30
S/N: 59303487
Feature(s): GDB
Checking target voltage...
Listening on TCP/IP port 2331
Connecting to target...Connected to target
Waiting for GDB connection...Connected to 127.0.0.1
Reading all registers
Read 4 bytes @ address 0x00000000 (Data = 0xFFFFFFFF)
Target interface speed set to 30 kHz
Resetting target
Halting target CPU...
...Target halted (PC = 0x1C0000C0)
R0 = 00000000, R1 = 1C001839, R2 = 00000000, R3 = 00008000
R4 = 00000000, R5 = 1C001CB8, R6 = 00000000, R7 = 00000000
R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000
R12= 00000000, R13= 20000218, MSP= 20000218, PSP= 0B7E67F4
R14(LR) = 1C00071F, R15(PC) = 1C0000C0
XPSR 61000000, APSR 60000000, EPSR 01000000, IPSR 00000000
CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
Reading all registers
Select auto target interface speed (2000 kHz)
Flash breakpoints enabled
Semi-hosting enabled (VectorAddr = 0x08)
Wrong client mask. Semihosting I/O not changed.
SWO disabled succesfully.
ERROR: Could not detect CPU clock speed. Download of test code into RAM failed.
Failed to restore original RAM content after CPU clock frequency detection!
Failed to enable SWO. Could not measure target CPU frequency.
Downloading 192 bytes @ address 0x00000000 - Verify failed
Downloading 16 bytes @ address 0x00000400 - Verify failed
Downloading 16064 bytes @ address 0x00000410 - Verify failed
Downloading 2228 bytes @ address 0x000042D0 - Verify failed
Downloading 8 bytes @ address 0x00004B84 - Verify failed
Downloading 4 bytes @ address 0x00004B8C - Verify failed
Downloading 4 bytes @ address 0x00004B90 - Verify failed
Downloading 108 bytes @ address 0x00004B94 - Verify failed
Writing register (PC = 0x000004e8)
Read 4 bytes @ address 0x000004E8 (Data = 0xFFFFFFFF)
Read 2 bytes @ address 0x00001C4C (Data = 0xFFFF)
Read 2 bytes @ address 0x00001C4C (Data = 0xFFFF)
Resetting target
Halting target CPU...
...Target halted (PC = 0x1C0000C0)
Read 2 bytes @ address 0x00001C4C (Data = 0xFFFF)
Read 2 bytes @ address 0x00001C4C (Data = 0xFFFF)
Read 2 bytes @ address 0x00001C4C (Data = 0xFFFF)
R0 = 00000000, R1 = 1C001839, R2 = 00000000, R3 = 00008000
R4 = 00000000, R5 = 1C001CB8, R6 = 00000000, R7 = 00000000
R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000
R12= 00000000, R13= 20000218, MSP= 20000218, PSP= 0B7E67F4
R14(LR) = 1C00071F, R15(PC) = 1C0000C0
XPSR 61000000, APSR 60000000, EPSR 01000000, IPSR 00000000
CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
Reading all registers
Read 4 bytes @ address 0x1C0000C0 (Data = 0x490D480C)
Read 4 bytes @ address 0x1C00071E (Data = 0xD0F52800)
Read 4 bytes @ address 0x1C00071E (Data = 0xD0F52800)