I have one particular project where when I try to debug it, the JlinkServer says that it is stopping at the breakpoint in main(), then it reports that it is reading the registers, and then immediately says "Starting target CPU..." and loops there over and over forever. When this happens, the halt and other icons are grayed out and the only thing that I can do is to click the stop debug icon whereupon it ends. During this time my computer is in overload mode and the fan runs.
This is happening in MCUXpresso on Windows with an NXP K8x target.
The other thing to point out is that it only happens for this one project in the workspace. The other two projects do no have this happen, but I cannot figure out what settings are different between them.
Here is example output from the JLinkServer console:
Display All
This is happening in MCUXpresso on Windows with an NXP K8x target.
The other thing to point out is that it only happens for this one project in the workspace. The other two projects do no have this happen, but I cannot figure out what settings are different between them.
Here is example output from the JLinkServer console:
Source Code
- Starting target CPU...
- ...Breakpoint reached @ address 0x00039AA6
- Reading common registers: Read register 'r0' (4 bytes) from hardware: 0x00000000
- Read register 'r1' (4 bytes) from hardware: 0x00000000
- Read register 'r2' (4 bytes) from hardware: 0x2001C53C
- Read register 'r3' (4 bytes) from hardware: 0x00000000
- Read register 'r4' (4 bytes) from hardware: 0x00000000
- Read register 'r5' (4 bytes) from hardware: 0x00000000
- Read register 'r6' (4 bytes) from hardware: 0x1C00045C
- Read register 'r7' (4 bytes) from hardware: 0x00000000
- Read register 'r8' (4 bytes) from hardware: 0x0000173D
- Read register 'r9' (4 bytes) from hardware: 0x00000000
- Read register 'r10' (4 bytes) from hardware: 0x1FFF0000
- Read register 'r11' (4 bytes) from hardware: 0x00000000
- Read register 'r12' (4 bytes) from hardware: 0x00000002
- Read register 'sp' (4 bytes) from hardware: 0x20000000
- Read register 'lr' (4 bytes) from hardware: 0x00005D6F
- Read register 'pc' (4 bytes) from hardware: 0x00039AA6
- Read register 'xpsr' (4 bytes) from hardware: 0x61000000
- Starting target CPU...
- ...Breakpoint reached @ address 0x00039AA6
- Reading common registers: Read register 'r0' (4 bytes) from hardware: 0x00000000
- Read register 'r1' (4 bytes) from hardware: 0x00000000
- Read register 'r2' (4 bytes) from hardware: 0x2001C53C
- Read register 'r3' (4 bytes) from hardware: 0x00000000
- Read register 'r4' (4 bytes) from hardware: 0x00000000
- Read register 'r5' (4 bytes) from hardware: 0x00000000
- Read register 'r6' (4 bytes) from hardware: 0x1C00045C
- Read register 'r7' (4 bytes) from hardware: 0x00000000
- Read register 'r8' (4 bytes) from hardware: 0x0000173D
- Read register 'r9' (4 bytes) from hardware: 0x00000000
- Read register 'r10' (4 bytes) from hardware: 0x1FFF0000
- Read register 'r11' (4 bytes) from hardware: 0x00000000
- Read register 'r12' (4 bytes) from hardware: 0x00000002
- Read register 'sp' (4 bytes) from hardware: 0x20000000
- Read register 'lr' (4 bytes) from hardware: 0x00005D6F
- Read register 'pc' (4 bytes) from hardware: 0x00039AA6
- Read register 'xpsr' (4 bytes) from hardware: 0x61000000
- Starting target CPU...