Mark,
it seems you are right. Each time I click to debug this is the output in the console:
SEGGER J-Link GDB Server V5.10g Command Line Version
JLinkARM.dll V5.10g (DLL compiled Jan 6 2016 13:44:33)
-----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
Target connection timeout: 0 ms
------J-Link related settings------
J-Link Host interface: USB
J-Link script: none
J-Link settings file: none
------Target related settings------
Target device: MK22FN512xxx12
Target interface: SWD
Target interface speed: 1000kHz
Target endian: little
Connecting to J-Link...
J-Link is connected.
Firmware: J-Link ARM-Pro V3.x compiled Jun 6 2014 16:00:09
Hardware: V3.00
S/N: 173001072
Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB
Checking target voltage...
Target voltage: 3.29 V
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 = 0x20010000)
Target interface speed set to 30 kHz
Resetting target
Halting target CPU...
...Target halted (PC = 0x000004D8)
R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000
R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000
R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000
R12= 00000000, R13= 20010000, MSP= 20010000, PSP= 00000000
R14(LR) = FFFFFFFF, R15(PC) = 000004D8
XPSR 01000000, APSR 00000000, 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 (Handle on BKPT)
Wrong client mask. Semihosting I/O not changed.
SWO disabled succesfully.
SWO enabled succesfully.
Downloading 1024 bytes @ address 0x00000000 - Verified OK
Downloading 16 bytes @ address 0x00000400 - Verified OK
Downloading 16144 bytes @ address 0x00000410 - Verified OK
Downloading 16064 bytes @ address 0x00004320 - Verified OK
Downloading 13204 bytes @ address 0x000081E0 - Verified OK
Downloading 8 bytes @ address 0x0000B574 - Verified OK
Downloading 4 bytes @ address 0x0000B57C - Verified OK
Downloading 4 bytes @ address 0x0000B580 - Verified OK
Downloading 16364 bytes @ address 0x0000B584 - Verified OK
Downloading 8852 bytes @ address 0x0000F570 - Verified OK
Read 4 bytes @ address 0x000004D8 (Data = 0xF000B672)
Read 2 bytes @ address 0x000014FA (Data = 0xF000)
Read 2 bytes @ address 0x000014FA (Data = 0xF000)
Resetting target
Halting target CPU...
...Target halted (PC = 0x000004D8)
Read 2 bytes @ address 0x000014FA (Data = 0xF000)
Read 2 bytes @ address 0x000014FA (Data = 0xF000)
Read 2 bytes @ address 0x000014FA (Data = 0xF000)
R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000
R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000
R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000
R12= 00000000, R13= 20010000, MSP= 20010000, PSP= 00000000
R14(LR) = FFFFFFFF, R15(PC) = 000004D8
XPSR 01000000, APSR 00000000, EPSR 01000000, IPSR 00000000
CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
Reading all registers
Read 4 bytes @ address 0x000004D8 (Data = 0xF000B672)
Setting breakpoint @ address 0x000014FA, Size = 2, BPHandle = 0x0001
Starting target CPU...
...Breakpoint reached @ address 0x000014FA
Reading all registers
Removing breakpoint @ address 0x000014FA, Size = 2
Read 4 bytes @ address 0x000014FA (Data = 0xFA57F000)
Reading 64 bytes @ address 0x2000FFC0
Where can I change the configuration to avoid the reloading?
Many thanks!
Manuel.