MKR GSM 1400 SAMD21G18- AU Bootloader problems

I got 99 problems and my mkr1400 isn't wanting to connect over SWD. I sodered header pins onto the pads of the 6 pin JTAG in order to communicate with it. I'm using a Segger J-Link Base and a six pin adapter. I've tried using the J-Link software to flash the samd21, but I keep getting target connection errors. I've also tried using Amtel Studios device programming to flash the bootloader from the samd arduino github (I've put the log below). I've also tried using the arduino IDE and a Amtel ICE to re flash a bootloader and no luck. Thanks

T27C8 2302:545 SEGGER J-Link V6.32g Log File (0000ms, 138993ms total)
T27C8 2302:545 DLL Compiled: Jun 15 2018 17:26:15 (0000ms, 138993ms total)
T27C8 2302:545 Logging started @ 2019-02-12 12:41 (0000ms, 138993ms total)
T27C8 2302:545 JLINK_ExecCommand("device = ATSAMD21G18AU", ...). Device "ATSAMD21G18" selected.  returns 0x00 (0002ms, 138995ms total)
T27C8 2302:547 JLINK_GetHWStatus(...)  returns 0x00 (0001ms, 138996ms total)
T27C8 2302:548 JLINK_ClrRESET() (0001ms, 138997ms total)
T27C8 2302:554 JLINK_SetRESET() (0000ms, 138997ms total)
T27C8 2302:562 JLINK_ClrRESET() (0000ms, 138997ms total)
T27C8 2302:569 JLINK_ClrTCK()  returns 0x00 (0000ms, 138997ms total)
T27C8 2302:575 JLINK_SetRESET() (0000ms, 138997ms total)
T27C8 2302:584 JLINK_Clock()  returns 0x00 (0000ms, 138997ms total)
T27C8 2302:590 JLINK_TIF_Select(JLINKARM_TIF_SWD)  returns 0x00 (0002ms, 138999ms total)
T27C8 2302:592 JLINK_SetSpeed(50) (0000ms, 138999ms total)
T27C8 2302:592 JLINK_JTAG_StoreRaw(..., 0x108 Bits)  returns 0x00 (0000ms, 138999ms total)
T27C8 2302:592 JLINK_JTAG_GetU32(BitPos = 227) >0x108 TIF>  returns 0xFFFFFFFF (0006ms, 139005ms total)
T27C8 2302:598 JLINK_JTAG_StoreRaw(..., 0x08 Bits)  returns 0x00 (0000ms, 139005ms total)
T27C8 2302:598 JLINK_JTAG_StoreRaw(..., 0x03 Bits)  returns 0x08 (0000ms, 139005ms total)
T27C8 2302:598 JLINK_JTAG_StoreRaw(..., 0x28 Bits)  returns 0x0B (0000ms, 139005ms total)
T27C8 2302:598 JLINK_JTAG_GetU8(BitPos = 8) >0x33 TIF>  returns 0xFF (0002ms, 139007ms total)
T27C8 2302:600 JLINK_JTAG_GetU32(BitPos = 11)  returns 0xFFFFFFFF (0000ms, 139007ms total)
T27C8 2302:600 JLINK_JTAG_StoreRaw(..., 0x08 Bits)  returns 0x00 (0000ms, 139007ms total)
T27C8 2302:600 JLINK_JTAG_StoreRaw(..., 0x03 Bits)  returns 0x08 (0000ms, 139007ms total)
T27C8 2302:600 JLINK_JTAG_StoreRaw(..., 0x28 Bits)  returns 0x0B (0000ms, 139007ms total)
T27C8 2302:600 JLINK_JTAG_GetU8(BitPos = 8) >0x33 TIF>  returns 0xFF (0002ms, 139009ms total)
T27C8 2302:602 JLINK_JTAG_GetU32(BitPos = 11)  returns 0xFFFFFFFF (0000ms, 139009ms total)
T27C8 2302:602 JLINK_JTAG_StoreRaw(..., 0x08 Bits)  returns 0x00 (0000ms, 139009ms total)
T27C8 2302:602 JLINK_JTAG_StoreRaw(..., 0x03 Bits)  returns 0x08 (0000ms, 139009ms total)
T27C8 2302:602 JLINK_JTAG_StoreRaw(..., 0x02 Bits)  returns 0x0B (0000ms, 139009ms total)
T27C8 2302:602 JLINK_JTAG_StoreRaw(..., 0x28 Bits)  returns 0x0D (0000ms, 139009ms total)
T27C8 2302:602 JLINK_JTAG_GetU8(BitPos = 8) >0x35 TIF>  returns 0x1F (0001ms, 139010ms total)
T27C8 2302:603 JLINK_JTAG_StoreRaw(..., 0x08 Bits)  returns 0x00 (0000ms, 139010ms total)
T27C8 2302:603 JLINK_JTAG_StoreRaw(..., 0x03 Bits)  returns 0x08 (0000ms, 139010ms total)
T27C8 2302:603 JLINK_JTAG_StoreRaw(..., 0x28 Bits)  returns 0x0B (0000ms, 139010ms total)
T27C8 2302:603 JLINK_JTAG_GetU8(BitPos = 8) >0x33 TIF>  returns 0xFF (0001ms, 139011ms total)
T27C8 2302:604 JLINK_JTAG_GetU32(BitPos = 11)  returns 0xFFFFFFFF (0000ms, 139011ms total)
T27C8 2302:604 JLINK_WriteMem(0x41002100, 0x0001 Bytes, ...) - Data: 10InitTarget()Secured Atmel SAMD device detected.
For debugger connection the device needs to be unsecured.
Note: Unsecuring will trigger a mass erase of the internal flash. (0217ms, 139228ms total)
T27C8 2302:604 Executing default behavior previously saved in the registry.Device will be unsecured now.
  ***** Error: InitTarget(): PCode returned with error code -1InitTarget()Secured Atmel SAMD device detected.
For debugger connection the device needs to be unsecured.
Note: Unsecuring will trigger a mass erase of the internal flash. (2293ms, 141304ms total)
T27C8 2302:604 Executing default behavior previously saved in the registry.Device will be unsecured now.
  ***** Error: InitTarget(): PCode returned with error code -1  returns 0xFFFFFFFF (4078ms, 143089ms total)
T27C8 2336:145 JLINK_ExecCommand("Device = ATSAMD21G18AU", ...). Device "ATSAMD21G18" selected.  returns 0x00 (0003ms, 143092ms total)
T27C8 2336:159 JLINK_TIF_Select(JLINKARM_TIF_SWD)  returns 0x00 (0000ms, 143092ms total)
T27C8 2336:159 JLINK_SetSpeed(4000) (0000ms, 143092ms total)
T27C8 2336:159 JLINK_ResetPullsRESET(OFF) (0000ms, 143092ms total)
T27C8 2336:159 JLINK_Connect()InitTarget()Secured Atmel SAMD device detected.
For debugger connection the device needs to be unsecured.
Note: Unsecuring will trigger a mass erase of the internal flash. (0105ms, 143197ms total)
T27C8 2336:159 Executing default behavior previously saved in the registry.Device will be unsecured now.
  ***** Error: InitTarget(): PCode returned with error code -1InitTarget()Secured Atmel SAMD device detected.
For debugger connection the device needs to be unsecured.
Note: Unsecuring will trigger a mass erase of the internal flash. (2180ms, 145272ms total)
T27C8 2336:159 Executing default behavior previously saved in the registry.Device will be unsecured now.
  ***** Error: InitTarget(): PCode returned with error code -1  returns 0xFFFFFFFF (4075ms, 147167ms total)
T27C8 2340:234 JLINK_ResetPullsRESET(ON) (0000ms, 147167ms total)
T27C8 2340:236 JLINK_ResetNoHalt()InitTarget()Secured Atmel SAMD device detected.
For debugger connection the device needs to be unsecured.
Note: Unsecuring will trigger a mass erase of the internal flash. (0104ms, 147271ms total)
T27C8 2340:236 Executing default behavior previously saved in the registry.Device will be unsecured now.
  ***** Error: InitTarget(): PCode returned with error code -1InitTarget()Secured Atmel SAMD device detected.
For debugger connection the device needs to be unsecured.
Note: Unsecuring will trigger a mass erase of the internal flash. (2179ms, 149346ms total)
T27C8 2340:236 Executing default behavior previously saved in the registry.Device will be unsecured now.
  ***** Error: InitTarget(): PCode returned with error code -1 (4074ms, 151241ms total)
T27C8 2361:169 JLINK_TIF_Select(JLINKARM_TIF_SWD)  returns 0x00 (0000ms, 151241ms total)
T27C8 2361:169 JLINK_SetSpeed(4000) (0000ms, 151241ms total)
T27C8 2361:169 JLINK_ResetPullsRESET(OFF) (0000ms, 151241ms total)
T27C8 2361:169 JLINK_Connect()InitTarget()Secured Atmel SAMD device detected.
For debugger connection the device needs to be unsecured.
Note: Unsecuring will trigger a mass erase of the internal flash. (0105ms, 151346ms total)
T27C8 2361:169 Executing default behavior previously saved in the registry.Device will be unsecured now.
  ***** Error: InitTarget(): PCode returned with error code -1InitTarget()Secured Atmel SAMD device detected.
For debugger connection the device needs to be unsecured.
Note: Unsecuring will trigger a mass erase of the internal flash. (2179ms, 153420ms total)
T27C8 2361:169 Executing default behavior previously saved in the registry.Device will be unsecured now.
  ***** Error: InitTarget(): PCode returned with error code -1  returns 0xFFFFFFFF (4075ms, 155316ms total)
T27C8 2365:244 JLINK_ResetPullsRESET(ON) (0000ms, 155316ms total)
T27C8 2365:245 JLINK_ResetNoHalt() (0000ms, 155316ms total)

I used this Overview | Programming an M0 using an Arduino | Adafruit Learning System
but it run only after I put Serial.prints to debug it (the timing changed)