Using version 11.2 on Windows 10, I am debugging a program ~2MB in size on an iMX RT 1064.
I frequently get an error during the download phase. There was a similar error during download under 10.3, but with less diagnostic information.
Below is the 'J-Link Segger GDB Server' Details reported by 11.2 during a download.
If I repeat the debug session I don't have the error. It always works the second time.
I don't have problems with smaller programs.
WARNING: Target connection lost.
ROMTbl[2][2]: E0002000, CID: B105E00D, PID: 000BB00E FPB-M7
ROMTbl[2][3]: E0000000, CID: B105E00D, PID: 000BB001 ITM
ROMTbl[1][1]: E0041000, CID: B105900D, PID: 001BB975 ETM-M7
ROMTbl[1][2]: E0042000, CID: B105900D, PID: 004BB906 CTI
ROMTbl[0][1]: E0040000, CID: B105900D, PID: 000BB9A9 TPIU-M7
ROMTbl[0][2]: E0043000, CID: B105F00D, PID: 001BB101 TSG
Cache: Separate I- and D-cache.
I-Cache L1: 32 KB, 512 Sets, 32 Bytes/Line, 2-Way
D-Cache L1: 32 KB, 256 Sets, 32 Bytes/Line, 4-Way
Connected to target
Waiting for GDB connection...Connected to 127.0.0.1
Reading all registers
Read 2 bytes @ address 0x700977C8 (Data = 0xB508)
Read 2 bytes @ address 0x70087A04 (Data = 0x4770)
Read 4 bytes @ address 0x700C66A6 (Data = 0x3102E7FE)
Loading RTOS plugin: GDBServer/RTOSPlugin_FreeRTOS...
RTOS plugin (API v1.0) loaded successfully
RTOS plugin: Loaded
Received symbol: pxCurrentTCB (0x202087EC)
Received symbol: pxReadyTasksLists (0x202087F0)
Received symbol: xDelayedTaskList1 (0x20208A70)
Received symbol: xDelayedTaskList2 (0x20208A84)
Received symbol: pxDelayedTaskList (0x20208A98)
Received symbol: pxOverflowDelayedTaskList (0x20208A9C)
Received symbol: xPendingReadyList (0x20208AA0)
Received symbol: xTasksWaitingTermination (0x20208AB4)
Received symbol: xSuspendedTaskList (0x20208ACC)
Received symbol: uxCurrentNumberOfTasks (0x20208AE0)
Received symbol: uxTopUsedPriority (0x00000000)
Received symbol: uxTopReadyPriority (0x20208AE8)
Received symbol: vPortEnableVFP (0x70060E28)
Received symbol: FreeRTOSDebugConfig (0x00000000)
All mandatory symbols successfully loaded.
Connected to 127.0.0.1
Reading all registers
Read 2 bytes @ address 0x700977C8 (Data = 0xB508)
Read 2 bytes @ address 0x70087A04 (Data = 0x4770)
Read 4 bytes @ address 0x700C66A6 (Data = 0x3102E7FE)
Received symbol: pxCurrentTCB (0x202087EC)
Received symbol: pxReadyTasksLists (0x202087F0)
Received symbol: xDelayedTaskList1 (0x20208A70)
Received symbol: xDelayedTaskList2 (0x20208A84)
Received symbol: pxDelayedTaskList (0x20208A98)
Received symbol: pxOverflowDelayedTaskList (0x20208A9C)
Received symbol: xPendingReadyList (0x20208AA0)
Received symbol: xTasksWaitingTermination (0x20208AB4)
Received symbol: xSuspendedTaskList (0x20208ACC)
Received symbol: uxCurrentNumberOfTasks (0x20208AE0)
Received symbol: uxTopUsedPriority (0x00000000)
Received symbol: uxTopReadyPriority (0x20208AE8)
Received symbol: vPortEnableVFP (0x70060E28)
Received symbol: FreeRTOSDebugConfig (0x00000000)
All mandatory symbols successfully loaded.
Received monitor command: reset
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.
Resetting target
Downloading 8192 bytes @ address 0x70000000 - Verified OK
Downloading 15840 bytes @ address 0x70002000 - Verified OK
Downloading 15952 bytes @ address 0x70005DE0 - Verified OK
Downloading 15904 bytes @ address 0x70009C30 - Verified OK
Downloading 15952 bytes @ address 0x7000DA50 - Verified OK
Downloading 16160 bytes @ address 0x700118A0 - Verified OK
Downloading 16208 bytes @ address 0x700157C0 - Verified OK
Downloading 16064 bytes @ address 0x70019710 - Verified OK
Downloading 16160 bytes @ address 0x7001D5D0 - Verified OK
Downloading 16080 bytes @ address 0x700214F0 - Verified OK
Downloading 16080 bytes @ address 0x700253C0 - Verified OK
Downloading 16208 bytes @ address 0x70029290 - Verified OK
Downloading 16144 bytes @ address 0x7002D1E0 - Verified OK
Downloading 16128 bytes @ address 0x700310F0 - Verified OK
Downloading 16112 bytes @ address 0x70034FF0 - Verified OK
Downloading 16128 bytes @ address 0x70038EE0 - Verified OK
Downloading 15904 bytes @ address 0x7003CDE0 - Verified OK
Downloading 16224 bytes @ address 0x70040C00 - Verified OK
Downloading 16240 bytes @ address 0x70044B60 - Verified OK
Downloading 16224 bytes @ address 0x70048AD0 - Verified OK
Downloading 16128 bytes @ address 0x7004CA30 - Verified OK
Downloading 16192 bytes @ address 0x70050930 - Verified OK
Downloading 16192 bytes @ address 0x70054870 - Verified OK
Downloading 16112 bytes @ address 0x700587B0 - Verified OK
Downloading 16096 bytes @ address 0x7005C6A0 - Verified OK
Downloading 16112 bytes @ address 0x70060580 - Verified OK
Downloading 16000 bytes @ address 0x70064470 - Verified OK
Downloading 16048 bytes @ address 0x700682F0 - Verified OK
Downloading 16112 bytes @ address 0x7006C1A0 - Verified OK
Downloading 16160 bytes @ address 0x70070090 - Verified OK
Downloading 16176 bytes @ address 0x70073FB0 - Verified OK
Downloading 15952 bytes @ address 0x70077EE0 - Verified OK
Downloading 16128 bytes @ address 0x7007BD30 - Verified OK
Downloading 16192 bytes @ address 0x7007FC30 - Verified OK
Downloading 16272 bytes @ address 0x70083B70 - Verified OK
Downloading 16080 bytes @ address 0x70087B00 - Verified OK
Downloading 16064 bytes @ address 0x7008B9D0 - Verified OK
Downloading 16032 bytes @ address 0x7008F890 - Verified OK
Downloading 16096 bytes @ address 0x70093730 - Verified OK
Downloading 16048 bytes @ address 0x70097610 - Verified OK
Downloading 16048 bytes @ address 0x7009B4C0 - Verified OK
Downloading 15952 bytes @ address 0x7009F370 - Verified OK
Downloading 16112 bytes @ address 0x700A31C0 - Verified OK
Downloading 16112 bytes @ address 0x700A70B0 - Verified OK
Downloading 16064 bytes @ address 0x700AAFA0 - Verified OK
Downloading 16096 bytes @ address 0x700AEE60 - Verified OK
Downloading 16128 bytes @ address 0x700B2D40 - Verified OK
Downloading 15904 bytes @ address 0x700B6C40 - Verified OK
Downloading 16080 bytes @ address 0x700BAA60 - Verified OK
Downloading 16080 bytes @ address 0x700BE930 - Verified OK
Downloading 16096 bytes @ address 0x700C2800 - Verified OK
Downloading 16256 bytes @ address 0x700C66E0 - Verified OK
Downloading 16240 bytes @ address 0x700CA660 - Verified OK
Downloading 16208 bytes @ address 0x700CE5D0 - Verified OK
Downloading 16256 bytes @ address 0x700D2520 - Verified OK
Downloading 16304 bytes @ address 0x700D64A0 - Verified OK
Downloading 16320 bytes @ address 0x700DA450 - Verified OK
Downloading 16272 bytes @ address 0x700DE410 - Verified OK
Downloading 16288 bytes @ address 0x700E23A0 - Verified OK
Downloading 16320 bytes @ address 0x700E6340 - Verified OK
Downloading 16320 bytes @ address 0x700EA300 - Verified OK
Downloading 16304 bytes @ address 0x700EE2C0 - Verified OK
Downloading 16304 bytes @ address 0x700F2270 - Verified OK
Downloading 16320 bytes @ address 0x700F6220 - Verified OK
Downloading 16320 bytes @ address 0x700FA1E0 - Verified OK
Downloading 16240 bytes @ address 0x700FE1A0 - Verified OK
Downloading 16272 bytes @ address 0x70102110 - Verified OK
Downloading 16208 bytes @ address 0x701060A0 - Verified OK
Downloading 16256 bytes @ address 0x70109FF0 - Verified OK
Downloading 16320 bytes @ address 0x7010DF70 - Verified OK
Downloading 16288 bytes @ address 0x70111F30 - Verified OK
Downloading 16096 bytes @ address 0x70115ED0 - Verified OK
Downloading 16160 bytes @ address 0x70119DB0 - Verified OK
Downloading 16272 bytes @ address 0x7011DCD0 - Verified OK
Downloading 16272 bytes @ address 0x70121C60 - Verified OK
Downloading 16288 bytes @ address 0x70125BF0 - Verified OK
Downloading 16240 bytes @ address 0x70129B90 - Verified OK
Downloading 16272 bytes @ address 0x7012DB00 - Verified OK
Downloading 16288 bytes @ address 0x70131A90 - Verified OK
Downloading 16176 bytes @ address 0x70135A30 - Verified OK
Downloading 16128 bytes @ address 0x70139960 - Verified OK
Downloading 16240 bytes @ address 0x7013D860 - Verified OK
Downloading 16272 bytes @ address 0x701417D0 - Verified OK
Downloading 16272 bytes @ address 0x70145760 - Verified OK
Downloading 16016 bytes @ address 0x701496F0 - Verified OK
Downloading 16080 bytes @ address 0x7014D580 - Verified OK
Downloading 16224 bytes @ address 0x70151450 - Verified OK
Downloading 16304 bytes @ address 0x701553B0 - Verified OK
Downloading 16336 bytes @ address 0x70159360 - Verified OK
Downloading 16304 bytes @ address 0x7015D330 - Verified OK
Downloading 16336 bytes @ address 0x701612E0 - Verified OK
Downloading 16272 bytes @ address 0x701652B0 - Verified OK
Downloading 16288 bytes @ address 0x70169240 - Verified OK
Downloading 16320 bytes @ address 0x7016D1E0 - Verified OK
Downloading 16240 bytes @ address 0x701711A0 - Verified OK
Downloading 16304 bytes @ address 0x70175110 - Verified OK
Downloading 16320 bytes @ address 0x701790C0 - Verified OK
Downloading 16320 bytes @ address 0x7017D080 - Verified OK
Downloading 16208 bytes @ address 0x70181040 - Verified OK
Downloading 16288 bytes @ address 0x70184F90 - Verified OK
Downloading 2856 bytes @ address 0x70188F30 - Verified OK
Downloading 16312 bytes @ address 0x70189A58 - Verified OK
Downloading 16320 bytes @ address 0x7018DA10 - Verified OK
Downloading 16272 bytes @ address 0x701919D0 - Verified OK
Downloading 16288 bytes @ address 0x70195960 - Verified OK
Downloading 16288 bytes @ address 0x70199900 - Verified OK
Downloading 16288 bytes @ address 0x7019D8A0 - Verified OK
Downloading 3408 bytes @ address 0x701A1840 - Verified OK
Downloading 64 bytes @ address 0x701A25C0 - Verified OK
Downloading 16256 bytes @ address 0x701A2600 - Verified OK
Downloading 16256 bytes @ address 0x701A6580 - Verified OK
Downloading 16288 bytes @ address 0x701AA500 - Verified OK
Downloading 16256 bytes @ address 0x701AE4A0 - Verified OK
Downloading 11688 bytes @ address 0x701B2420 - Verified OK
Downloading 8288 bytes @ address 0x701B51C8 - Verified OK
J-Link: Flash download: Bank 0 @ 0x70000000: 3 ranges affected (1179648 bytes)
J-Link: Flash download: Total: 15.772s (Prepare: 0.096s, Compare: 2.791s, Erase: 3.269s, Program & Verify: 9.609s, Restore: 0.005s)
J-Link: Flash download: Program & Verify speed: 119 KB/s
Writing register (PC = 0x70002308)
WARNING: Target connection lost.
WARNING: Failed to read memory @ address 0x700977C8
WARNING: Failed to read memory @ address 0x70087A04
Reading all registers
Read register 0 (4 bytes) from DLL: 582E5103
Read register 1 (4 bytes) from DLL: 582E5103
Read register 2 (4 bytes) from DLL: 582E5103
Read register 3 (4 bytes) from DLL: 582E5103
Read register 4 (4 bytes) from DLL: 582E5103
Read register 5 (4 bytes) from DLL: 582E5103
Read register 6 (4 bytes) from DLL: 582E5103
Read register 7 (4 bytes) from DLL: 582E5103
Read register 8 (4 bytes) from DLL: 582E5103
Read register 9 (4 bytes) from DLL: 582E5103
Read register 10 (4 bytes) from DLL: 582E5103
Read register 11 (4 bytes) from DLL: 582E5103
Read register 12 (4 bytes) from DLL: 582E5103
Read register 13 (4 bytes) from DLL: 582E5103
Read register 14 (4 bytes) from DLL: 582E5103
Read register 15 (4 bytes) from DLL: 582E5103
Read register 16 (4 bytes) from DLL: 582E5103
WARNING: Failed to read memory @ address 0x03512E58
WARNING: Failed to read memory @ address 0x03512E58
Reading 64 bytes @ address 0x70051E00