Trying to use Eclipse and debug for new firmware on Smoothie on a breadboard

Background:
Smoothie on a breadboard has been built and loads default firmware (from github) from SD card.
After enabling the second serial port in the config and connecting to it via screen on OS X I see:

Smoothie Running @120MHz

Build version edge-0e69deb, Build date Mar 1 2015 16:02:03

NOTE: One extruder configured and enabled

NOTE: 1 extruders enabled out of 1

File not found: /sd/on_boot.gcode

Problem Statement:
(1) I cannot seem to get Eclipse to load (flash) and debug the firmware that I am modifying (which is for the FirePick, a rotational delta drive PnP + 3D printer)

I have followed the guide and configured the debug environment, but I cannot get it to connect and debug, under Eclipse I see:
Traceback (most recent call last):

File File File import _gdb

ImportError: No module named _gdb

GNU gdb (GNU Tools for ARM Embedded Processors) 7.4.1.20121207-cvs

Copyright © 2012 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law. Type “show copying”

and “show warranty” for details.

This GDB was configured as “—host=x86_64-apple-darwin11.4.2 —target=arm-none-eabi”.

For bug reporting instructions, please see:

<>.

Ignoring packet error, continuing…

warning: unrecognized item “timeout” in “qSupported” response

Ignoring packet error, continuing…

I have read through the documentation and also tried enabling DFU in the config on the SD card,
I had to remove the URLs from the above message as apparently I am a low-karma user :frowning:
Notes:
(A) I found that the makefile could not find the dfu-util and I had to hard code the fullpath in the makefile for both dfu: and upload:
(B) I do not connect screen to the second serial port when trying to debug and I note that the TX light on the spark fun 3v3 USB to serial breakout board which I am using flashes regularily until the debug session terminates (seems to timeout).
© If i copy the main.bin file generated as firmware.bin onto the SD card, it does not seem to be loaded nor copied to FIRMWARE.CUR
(D) On my iMac I can see the SD-Card mounted via the Smoothie in Finder, but on my Macbook Pro, it is never seen in Finder
(E) The BuildShell script as built by the install script is:
{{#! /usr/bin/env bash

  1. Modify next line and set destination drive to match mbed device

export LPC_DEPLOY=‘cp PROJECT.bin /Volumes/MBED/ ; sync’

SCRIPT_PATH=$0
SCRIPT_PATH=${SCRIPT_PATH%/*}
cd $SCRIPT_PATH
SCRIPT_PATH=$PWD
export PATH=$SCRIPT_PATH/gcc-arm-none-eabi/bin:$SCRIPT_PATH/build/osx64:$PATH
exec bash}}

I am wondering what I am doing wrong, is there something else I need to do to put the Smoothie into debug mode (perhaps a button or something not on the Smoothie on a breadboard instructions? If I use a Segger Base model ARM JTAG debugger and connect this to the JTAG on the LPCxpresso, will this work instead on trying to use the MRI interface??

HELP!

Cheers
Douglas

Imported from wikidot

Hey !

First off : never used Eclipse, so can’t really help you on the specifics.

Some users have gotten Smoothie to work with Eclipse, see : http://smoothieware.org/eclipse if you haven’t already.

About MRI, you should get it to work via the command line, then once that works ok, get it to work in Eclipse, see : http://smoothieware.org/mri-debugging

I think pushing the “ISP” button while Smoothie is running will put it into MRI mode.

Cheers.

Hi,

I tried putting the Smoothie into MRI mode:

(1) holding the play/pause button
(2)click the reset button
(3)wait one second and release the play/pause button

Then from a terminal session:

./BuildShell
Then
bash-3.2$ arm-none-eabi-gdb LPC1768/main.elf baud 115200 -ex “set target-charset ASCII” -ex “set remotelogfile mri.log” -ex “target remote /dev/tty.usbserial-A6026NUK”

Traceback (most recent call last):

File “<string>”, line 70, in <module>

File “<string>”, line 67, in GdbSetPythonDirectory

File “/Users/douglaspearless/Documents/workspace/Smoothieware/gcc-arm-none-eabi/arm-none-eabi/share/gdb/python/gdb/init.py”, line 19, in <module>

import _gdb

ImportError: No module named _gdb

GNU gdb (GNU Tools for ARM Embedded Processors) 7.4.1.20121207-cvs

Copyright © 2012 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law. Type “show copying”

and “show warranty” for details.

This GDB was configured as “host=x86_64-apple-darwin11.4.2 —target=arm-none-eabi”.

For bug reporting instructions, please see:

Reading symbols from /Users/douglaspearless/Documents/workspace/Smoothieware/LPC1768/main.elf…done.

Remote debugging using /dev/tty.usbserial-A6026NUK

Ignoring packet error, continuing…

warning: unrecognized item “timeout” in “qSupported” response

Ignoring packet error, continuing…

Ignoring packet error, continuing…

Ignoring packet error, continuing…

Ignoring packet error, continuing…

Ignoring packet error, continuing…

Ignoring packet error, continuing…

Malformed response to offset query, timeout

(gdb)

I then tried some of the GDB commands:
(gdb) set pagination off

(gdb) set logging on

Copying output to gdb.txt.

(gdb) t

No thread selected

(gdb) bt

No stack.

(gdb) list

Segmentation fault: 11

bash-3.2$
and gdb crashes :frowning:

I then tried a J-Link JTAG debugger, and I got it to work only once (up to the init() in main.cpp when it segfaulted and I have not been able to get it to work again. I followed NXP’s instructions to get GDB/J-Link working and I got the following log trace, it seems to show the the main.elf file is correctly flashed, but the gdb server disconnect shortly after that:

SEGGER J-Link GDB Server V4.98 LogFile
Logging started @ 2015-04-03 16:55
03-00000000-00-00000000-0023: -----GDB Server start settings-----
03-00000000-00-00000000-0023: GDBInit file:                  none
03-00000000-00-00000000-0023: GDB Server Listening port:     2331
03-00000000-00-00000000-0023: SWO raw output listening port: 2332
03-00000000-00-00000000-0023: Terminal I/O port:             2333
03-00000000-00-00000000-002D: Accept remote connection:      localhost only
03-00000000-00-00000000-0021: Generate logfile:              on
03-00000000-00-00000000-0021: Verify download:               on
03-00000000-00-00000000-0021: Init regs on start:            on
03-00000000-00-00000000-0022: Silent mode:                   off
03-00000000-00-00000000-0021: Single run mode:               on
03-00000000-00-00000000-0023: Target connection timeout:     0 ms
03-00000000-00-00000000-0023: ------J-Link related settings------
03-00000000-00-00000000-0022: J-Link Host interface:         USB
03-00000000-00-00000000-0023: J-Link script:                 none
03-00000000-00-00000000-0023: J-Link settings file:          none
03-00000000-00-00000000-0023: ------Target related settings------
03-00000000-00-00000000-0026: Target device:                 LPC1769
03-00000000-00-00000000-0022: Target interface:              SWD
03-00000000-00-00000000-0023: Target interface speed:        0kHz
03-00000000-00-00000000-0025: Target endian:                 little
03-00000000-00-00000000-0017: Connecting to J-Link...
02-00000000-00-00000029-0031: Firmware: J-Link V9 compiled Feb 20 2015 09:20:19
02-00000000-00-00000029-000F: Hardware: V9.20
02-00000000-00-00000282-0053: Feature(s): GDB, RDI, FlashBP, FlashDL, JFlash  returns O.K. (0282ms, 0282ms total)
03-00000000-00-00000282-0014: J-Link is connected.
02-00000000-00-00000282-0065: T1AD1000 000:283 JLINK_ExecCommand("HideDeviceSelection=1", ...)  returns 0x00 (0000ms, 0282ms total)
02-00000000-00-00000283-0060: T1AD1000 000:283 JLINK_ExecCommand("device = LPC1769", ...)  returns 0x00 (0001ms, 0283ms total)
02-00000000-00-00000283-006B: T1AD1000 000:284 JLINK_ExecCommand("SetFlashRewriteBehavior = 1", ...)  returns 0x00 (0000ms, 0283ms total)
02-00000000-00-00000283-0044: T1AD1000 000:284 JLINK_GetFirmwareString(...) (0000ms, 0283ms total)
03-00000000-00-00000283-0031: Firmware: J-Link V9 compiled Feb 20 2015 09:20:19
02-00000000-00-00000283-0053: T1AD1000 000:284 JLINK_GetHardwareVersion()  returns 0x16760 (0000ms, 0283ms total)
03-00000000-00-00000283-000F: Hardware: V9.20
03-00000000-00-00000283-002E: Feature(s): GDB, RDI, FlashBP, FlashDL, JFlash
02-00000000-00-00000286-004C: T1AD1000 000:284 JLINK_GetHWStatus(...)  returns 0x00 (0003ms, 0286ms total)
02-00000000-00-00000286-003F: T1AD1000 000:287 JLINK_EnableSoftBPs(ON) (0000ms, 0286ms total)
03-00000000-00-00000286-001A: Checking target voltage...
03-00000000-00-00000286-0016: Target voltage: 3.31 V
03-00000000-00-00000286-001D: Listening on TCP/IP port 2331
03-00000000-00-00000286-0017: Connecting to target...
02-00000000-00-00000286-0038: T1AD1000 000:287 JLINK_ClrError() (0000ms, 0286ms total)
02-00000000-00-00000286-004C: T1AD1000 000:287 JLINK_GetHWStatus(...)  returns 0x00 (0000ms, 0286ms total)
02-00000000-00-00000287-0058: T1AD1000 000:287 JLINK_TIF_Select(JLINKARM_TIF_SWD)  returns 0x00 (0001ms, 0287ms total)
02-00000000-00-00000313-01E6: T1AD1000 000:288 JLINK_SetSpeed(0) >0x108 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x28 TIF> >0x0D TIF> >0x28 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x28 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x28 TIF> >0x0D TIF> >0x28 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x28 TIF> >0x0D TIF> >0x28 TIF> >0x0D TIF> >0x28 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x28 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF>
02-00000000-00-00000336-01EA:  -- CPU_WriteMem(4 bytes @ 0xE0002000) -- CPU_ReadMem(4 bytes @ 0xE000EDF0) -- CPU_ReadMem(4 bytes @ 0xE0002000) -- CPU_ReadMem(4 bytes @ 0xE000EDFC) -- CPU_ReadMem(4 bytes @ 0xE0001000) -- CPU_WriteMem(4 bytes @ 0xE0001000) -- CPU_ReadMem(4 bytes @ 0xE000ED88) -- CPU_WriteMem(4 bytes @ 0xE000ED88) -- CPU_ReadMem(4 bytes @ 0xE000ED88) -- CPU_WriteMem(4 bytes @ 0xE000ED88)CoreSight components:ROMTbl 0 @ E00FF000 -- CPU_ReadMem(16 bytes @ 0xE00FF000) -- CPU_ReadMem(16 bytes @ 0xE000EFF0)
02-00000000-00-00000354-01EA:  -- CPU_ReadMem(16 bytes @ 0xE000EFE0)ROMTbl 0 [0]: FFF0F000, CID: B105E00D, PID: 002BB000 SCS -- CPU_ReadMem(16 bytes @ 0xE0001FF0) -- CPU_ReadMem(16 bytes @ 0xE0001FE0)ROMTbl 0 [1]: FFF02000, CID: B105E00D, PID: 002BB002 DWT -- CPU_ReadMem(16 bytes @ 0xE0002FF0) -- CPU_ReadMem(16 bytes @ 0xE0002FE0)ROMTbl 0 [2]: FFF03000, CID: B105E00D, PID: 002BB003 FPB -- CPU_ReadMem(16 bytes @ 0xE0000FF0) -- CPU_ReadMem(16 bytes @ 0xE0000FE0)ROMTbl 0 [3]: FFF01000, CID: B105E00D, PID: 002BB001 ITM
02-00000000-00-00000367-014E:  -- CPU_ReadMem(16 bytes @ 0xE00FF010) -- CPU_ReadMem(16 bytes @ 0xE0040FF0) -- CPU_ReadMem(16 bytes @ 0xE0040FE0)ROMTbl 0 [4]: FFF41000, CID: B105900D, PID: 002BB923 TPIU-Lite -- CPU_ReadMem(16 bytes @ 0xE0041FF0) -- CPU_ReadMem(16 bytes @ 0xE0041FE0)ROMTbl 0 [5]: FFF42000, CID: B105900D, PID: 002BB924 ETM-M3 (0080ms, 0367ms total)
02-00000000-00-00000367-0047: T1AD1000 000:368 JLINK_GetSpeed()  returns 0x7D0 (0000ms, 0367ms total)
02-00000000-00-00000367-0063: T1AD1000 000:368 JLINK_SetResetType(JLINKARM_RESET_TYPE_NORMAL)  returns ??? (0000ms, 0367ms total)
02-00000000-00-00000367-003E: T1AD1000 000:368 JLINK_SetResetDelay(0) (0000ms, 0367ms total)
02-00000000-00-00000367-0058: T1AD1000 000:368 JLINK_SetEndian(ARM_ENDIAN_LITTLE)  returns 0x00 (0000ms, 0367ms total)
02-00000000-00-00000386-01E4: T1AD1000 000:368 JLINK_Connect() >0x108 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x28 TIF> >0x0D TIF> >0x28 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x28 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x28 TIF> >0x0D TIF> >0x28 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x28 TIF> >0x0D TIF> >0x28 TIF> >0x0D TIF> >0x28 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x28 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF>
02-00000000-00-00000391-01EA:  -- CPU_WriteMem(4 bytes @ 0xE0002000) -- CPU_ReadMem(4 bytes @ 0xE000EDF0) -- CPU_ReadMem(4 bytes @ 0xE0002000) -- CPU_ReadMem(4 bytes @ 0xE000EDFC) -- CPU_ReadMem(4 bytes @ 0xE0001000) -- CPU_WriteMem(4 bytes @ 0xE0001000) -- CPU_ReadMem(4 bytes @ 0xE000ED88) -- CPU_WriteMem(4 bytes @ 0xE000ED88) -- CPU_ReadMem(4 bytes @ 0xE000ED88) -- CPU_WriteMem(4 bytes @ 0xE000ED88)CoreSight components:ROMTbl 0 @ E00FF000 -- CPU_ReadMem(16 bytes @ 0xE00FF000) -- CPU_ReadMem(16 bytes @ 0xE000EFF0)
02-00000000-00-00000395-01EA:  -- CPU_ReadMem(16 bytes @ 0xE000EFE0)ROMTbl 0 [0]: FFF0F000, CID: B105E00D, PID: 002BB000 SCS -- CPU_ReadMem(16 bytes @ 0xE0001FF0) -- CPU_ReadMem(16 bytes @ 0xE0001FE0)ROMTbl 0 [1]: FFF02000, CID: B105E00D, PID: 002BB002 DWT -- CPU_ReadMem(16 bytes @ 0xE0002FF0) -- CPU_ReadMem(16 bytes @ 0xE0002FE0)ROMTbl 0 [2]: FFF03000, CID: B105E00D, PID: 002BB003 FPB -- CPU_ReadMem(16 bytes @ 0xE0000FF0) -- CPU_ReadMem(16 bytes @ 0xE0000FE0)ROMTbl 0 [3]: FFF01000, CID: B105E00D, PID: 002BB001 ITM
02-00000000-00-00000397-015C:  -- CPU_ReadMem(16 bytes @ 0xE00FF010) -- CPU_ReadMem(16 bytes @ 0xE0040FF0) -- CPU_ReadMem(16 bytes @ 0xE0040FE0)ROMTbl 0 [4]: FFF41000, CID: B105900D, PID: 002BB923 TPIU-Lite -- CPU_ReadMem(16 bytes @ 0xE0041FF0) -- CPU_ReadMem(16 bytes @ 0xE0041FE0)ROMTbl 0 [5]: FFF42000, CID: B105900D, PID: 002BB924 ETM-M3  returns 0x00 (0030ms, 0397ms total)
02-00000000-00-00000400-00A5: T1AD1000 000:398 JLINK_GetIdData(...) >0x0D TIF> >0x21 TIF> ScanLen=4 NumDevices=1 aId[0]=0x2BA01477 aIrRead[0]=0 aScanLen[0]=0 aScanRead[0]=0 (0003ms, 0400ms total)
02-00000000-00-00000400-004A: T1AD1000 000:401 JLINK_GetDeviceFamily()  returns 3 (0000ms, 0400ms total)
02-00000000-00-00000403-0046: T1AD1000 000:401 JLINK_IsHalted()  returns TRUE (0003ms, 0403ms total)
02-00000000-00-00000403-0046: T1AD1000 000:404 JLINK_IsHalted()  returns TRUE (0000ms, 0400ms total)
02-00000000-00-00000403-0054: T1AD1000 000:404 JLINK_WriteReg(R0, 0x00000000)  returns 0x00 (0000ms, 0400ms total)
02-00000000-00-00000403-0054: T1AD1000 000:404 JLINK_WriteReg(R1, 0x00000000)  returns 0x00 (0000ms, 0400ms total)
02-00000000-00-00000403-0054: T1AD1000 000:404 JLINK_WriteReg(R2, 0x00000000)  returns 0x00 (0000ms, 0400ms total)
02-00000000-00-00000403-0054: T1AD1000 000:404 JLINK_WriteReg(R3, 0x00000000)  returns 0x00 (0000ms, 0400ms total)
02-00000000-00-00000403-0054: T1AD1000 000:404 JLINK_WriteReg(R4, 0x00000000)  returns 0x00 (0000ms, 0400ms total)
02-00000000-00-00000403-0054: T1AD1000 000:404 JLINK_WriteReg(R5, 0x00000000)  returns 0x00 (0000ms, 0400ms total)
02-00000000-00-00000403-0054: T1AD1000 000:404 JLINK_WriteReg(R6, 0x00000000)  returns 0x00 (0000ms, 0400ms total)
02-00000000-00-00000403-0054: T1AD1000 000:404 JLINK_WriteReg(R7, 0x00000000)  returns 0x00 (0000ms, 0400ms total)
02-00000000-00-00000403-0054: T1AD1000 000:404 JLINK_WriteReg(R8, 0x00000000)  returns 0x00 (0000ms, 0400ms total)
02-00000000-00-00000403-0054: T1AD1000 000:404 JLINK_WriteReg(R9, 0x00000000)  returns 0x00 (0000ms, 0400ms total)
02-00000000-00-00000403-0055: T1AD1000 000:404 JLINK_WriteReg(R10, 0x00000000)  returns 0x00 (0000ms, 0400ms total)
02-00000000-00-00000403-0055: T1AD1000 000:404 JLINK_WriteReg(R11, 0x00000000)  returns 0x00 (0000ms, 0400ms total)
02-00000000-00-00000403-0055: T1AD1000 000:404 JLINK_WriteReg(R12, 0x00000000)  returns 0x00 (0000ms, 0400ms total)
02-00000000-00-00000403-005A: T1AD1000 000:404 JLINK_WriteReg(R13 (SP), 0x00000000)  returns 0x00 (0000ms, 0400ms total)
02-00000000-00-00000403-0055: T1AD1000 000:404 JLINK_WriteReg(R14, 0x00000000)  returns 0x00 (0000ms, 0400ms total)
02-00000000-00-00000403-005A: T1AD1000 000:404 JLINK_WriteReg(R15 (PC), 0x00000000)  returns 0x00 (0000ms, 0400ms total)
02-00000000-00-00000403-0056: T1AD1000 000:404 JLINK_WriteReg(XPSR, 0x01000000)  returns 0x00 (0000ms, 0400ms total)
03-00000000-00-00000403-0013: Connected to target
03-00000000-00-00000403-001D: Waiting for GDB connection...
03-00000000-00-00000589-0016: Connected to 127.0.0.1
00-0000000A-00-00000589-001B: +$qSupported:qRelocInsn+#9a
01-0000000A-00-00000589-0001: +
01-0000000A-00-00000589-0064: $PacketSize=4000;qXfer:memory-map:read-;QStartNoAckMode+;qXfer:threads:read+;qXfer:features:read+#ce
00-0000000A-00-00000590-0001: +
00-0000000A-00-00000590-0013: $QStartNoAckMode#b0
01-0000000A-00-00000590-0001: +
01-0000000A-00-00000590-0006: $OK#9a
00-0000000A-00-00000590-0001: +
00-0000000A-00-00000590-0007: $Hg0#df
01-0000000A-00-00000590-0006: $OK#9a
00-0000000A-00-00000590-0028: $qXfer:features:read:target.xml:0,fff#7d
01-0000000A-00-00000590-07E5: $l<?xml version="1.0"?>
<!-- Copyright (C) 2008 Free Software Foundation, Inc.
 Copying and distribution of this file, with or without modification,
 are permitted in any medium without royalty provided the copyright
 notice and this notice are preserved.  --&gt;

<!DOCTYPE feature SYSTEM “gdb-target.dtd”>
<target>
<architecture>arm</architecture>
<feature name=“org.gnu.gdb.arm.m-profile”>
<reg name=“r0” bitsize=“32” type=“uint32” group=“general”/>
<reg name=“r1” bitsize=“32” type=“uint32” group=“general”/>
<reg name=“r2” bitsize=“32” type=“uint32” group=“general”/>
<reg name=“r3” bitsize=“32” type=“uint32” group=“general”/>
<reg name=“r4” bitsize=“32” type=“uint32” group=“general”/>
<reg name=“r5” bitsize=“32” type=“uint32” group=“general”/>
<reg name=“r6” bitsize=“32” type=“uint32” group=“general”/>
<reg name=“r7” bitsize=“32” type=“uint32” group=“general”/>
<reg name=“r8” bitsize=“32” type=“uint32” group=“general”/>
<reg name=“r9” bitsize=“32” type=“uint32” group=“general”/>
<reg name=“r10” bitsize=“32” type=“uint32” group=“general”/>
<reg name=“r11” bitsize=“32” type=“uint32” group=“general”/>
<reg name=“r12” bitsize=“32” type=“uint32” group=“general”/>
<reg name=“sp” bitsize=“32” type=“data_ptr” group=“general”/>
<reg name=“lr” bitsize=“32” type=“uint32” group=“general”/>
<reg name=“pc” bitsize=“32” type=“code_ptr” group=“general”/>
<reg name=“xpsr” bitsize=“32” regnum=“25” type=“uint32” group=“general”/>
<reg name=“MSP” bitsize=“32” regnum=“26” type=“uint32” group=“general”/>
<reg name=“PSP” bitsize=“32” regnum=“27” type=“uint32” group=“general”/>
<reg name=“PRIMASK” bitsize=“32” regnum=“28” type=“uint32” group=“general”/>
<reg name=“BASEPRI” bitsize=“32” regnum=“29” type=“uint32” group=“general”/>
<reg name=“FAULTMASK” bitsize=“32” regnum=“30” type=“uint32” group=“general”/>
<reg name=“CONTROL” bitsize=“32” regnum=“31” type=“uint32” group=“general”/>
</feature>
</target>

#3d
00-0000000A-00-00000591-0005: $?#3f
01-0000000A-00-00000591-0007: $S05#b8
00-0000000A-00-00000591-0008: $Hc-1#09
01-0000000A-00-00000591-0006: $OK#9a
00-0000000A-00-00000591-0006: $qC#b4
01-0000000A-00-00000591-0004: $#00
00-0000000A-00-00000591-000D: $qAttached#8f
01-0000000A-00-00000591-0004: $#00
00-0000000A-00-00000592-0005: $g#67
03-00000000-00-00000592-0015: Reading all registers
02-00000000-00-00000592-004D: T5607000 000:593 JLINK_ReadReg(R0) returns 0x00000000 (0000ms, 0400ms total)
02-00000000-00-00000592-004D: T5607000 000:593 JLINK_ReadReg(R1) returns 0x00000000 (0000ms, 0400ms total)
02-00000000-00-00000592-004D: T5607000 000:593 JLINK_ReadReg(R2) returns 0x00000000 (0000ms, 0400ms total)
02-00000000-00-00000592-004D: T5607000 000:593 JLINK_ReadReg(R3) returns 0x00000000 (0000ms, 0400ms total)
02-00000000-00-00000592-004D: T5607000 000:593 JLINK_ReadReg(R4) returns 0x00000000 (0000ms, 0400ms total)
02-00000000-00-00000592-004D: T5607000 000:593 JLINK_ReadReg(R5) returns 0x00000000 (0000ms, 0400ms total)
02-00000000-00-00000592-004D: T5607000 000:593 JLINK_ReadReg(R6) returns 0x00000000 (0000ms, 0400ms total)
02-00000000-00-00000592-004D: T5607000 000:593 JLINK_ReadReg(R7) returns 0x00000000 (0000ms, 0400ms total)
02-00000000-00-00000592-004D: T5607000 000:593 JLINK_ReadReg(R8) returns 0x00000000 (0000ms, 0400ms total)
02-00000000-00-00000592-004D: T5607000 000:593 JLINK_ReadReg(R9) returns 0x00000000 (0000ms, 0400ms total)
02-00000000-00-00000592-004E: T5607000 000:593 JLINK_ReadReg(R10) returns 0x00000000 (0000ms, 0400ms total)
02-00000000-00-00000592-004E: T5607000 000:593 JLINK_ReadReg(R11) returns 0x00000000 (0000ms, 0400ms total)
02-00000000-00-00000592-004E: T5607000 000:593 JLINK_ReadReg(R12) returns 0x00000000 (0000ms, 0400ms total)
02-00000000-00-00000592-0053: T5607000 000:593 JLINK_ReadReg(R13 (SP)) returns 0x00000000 (0000ms, 0400ms total)
02-00000000-00-00000592-004E: T5607000 000:593 JLINK_ReadReg(R14) returns 0x00000000 (0000ms, 0400ms total)
02-00000000-00-00000592-0053: T5607000 000:593 JLINK_ReadReg(R15 (PC)) returns 0x00000000 (0000ms, 0400ms total)
02-00000000-00-00000592-004F: T5607000 000:593 JLINK_ReadReg(XPSR) returns 0x01000000 (0000ms, 0400ms total)
02-00000000-00-00000592-004E: T5607000 000:593 JLINK_ReadReg(MSP) returns 0x00000000 (0000ms, 0400ms total)
02-00000000-00-00000592-004E: T5607000 000:593 JLINK_ReadReg(PSP) returns 0xFCD24288 (0000ms, 0400ms total)
02-00000000-00-00000592-0052: T5607000 000:593 JLINK_ReadReg(PRIMASK) returns 0x00000000 (0000ms, 0400ms total)
02-00000000-00-00000592-0052: T5607000 000:593 JLINK_ReadReg(BASEPRI) returns 0x00000000 (0000ms, 0400ms total)
02-00000000-00-00000592-0054: T5607000 000:593 JLINK_ReadReg(FAULTMASK) returns 0x00000000 (0000ms, 0400ms total)
02-00000000-00-00000593-0052: T5607000 000:593 JLINK_ReadReg(CONTROL) returns 0x00000000 (0001ms, 0401ms total)
01-0000000A-00-00000593-00BC: $0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000008842d2fc00000000000000000000000000000000#36
00-0000000A-00-00000593-0008: $m0,4#fd
02-00000000-00-00000594-011A: T5607000 000:594 JLINK_ReadMem (0x00000000, 0x0004 Bytes, …) – CPU_ReadMem(4 bytes @ 0x400FC040) – CPU_ReadMem(64 bytes @ 0x00000000) – Updating C cache (64 bytes @ 0x00000000) – Read from C cache (4 bytes @ 0x00000000) - Data: E0 7F 00 10 returns 0x00 (0001ms, 0402ms total)
03-00000000-00-00000594-0035: Read 4 bytes @ address 0x00000000 (Data = 0x10007FE0)
01-0000000A-00-00000594-000C: $e07f0010#f3
00-0000000A-00-00000595-000C: $qTStatus#49
01-0000000A-00-00000595-0004: $#00
00-0000000A-00-00000648-001E: $qRcmd,73706565642031303030#23
02-00000000-00-00000648-003C: T5607000 000:649 JLINK_SetSpeed(1000) (0000ms, 0402ms total)
02-00000000-00-00000648-0047: T5607000 000:649 JLINK_GetSpeed() returns 0x3E8 (0000ms, 0402ms total)
01-0000000A-00-00000648-0054: $54617267657420696e746572666163652073706565642073657420746f2031303030206b487a0D0A#1e
03-00000000-00-00000648-0026: Target interface speed set to 1000 kHz
00-0000000A-00-00000649-0014: $qRcmd,636c726270#5d
01-0000000A-00-00000649-0006: $OK#9a
00-0000000A-00-00000650-0014: $qRcmd,7265736574#37
02-00000000-00-00000650-0041: T5607000 000:651 JLINK_ResetPullsRESET(ON) (0000ms, 0402ms total)
02-00000000-00-00000674-01DA: T5607000 000:651 JLINK_Reset() – CPU_WriteMem(4 bytes @ 0xE000EDF0) – CPU_WriteMem(4 bytes @ 0xE000EDFC) >0x35 TIF> – CPU_WriteMem(4 bytes @ 0xE000ED0C) – CPU_ReadMem(4 bytes @ 0xE000EDF0) – CPU_ReadMem(4 bytes @ 0xE000EDF0) – CPU_WriteMem(4 bytes @ 0xE000EDF0) – CPU_WriteMem(4 bytes @ 0xE000EDFC) – CPU is running – CPU_ReadMem(4 bytes @ 0xE000EDF0) – CPU_WriteMem(4 bytes @ 0xE000EDFC) – CPU_WriteMem(4 bytes @ 0xE000EDFC) – CPU_WriteMem(4 bytes @ 0xE000EDFC)
02-00000000-00-00000795-01E8: – CPU_WriteMem(4 bytes @ 0xE000EDFC) – CPU_WriteMem(4 bytes @ 0xE000EDFC) – CPU_WriteMem(4 bytes @ 0xE0001050) – CPU_WriteMem(4 bytes @ 0xE0001054) – CPU_WriteMem(4 bytes @ 0xE0001058) – CPU_ReadMem(4 bytes @ 0xE0001000) – CPU_WriteMem(4 bytes @ 0xE000EDFC) – CPU_WriteMem(4 bytes @ 0xE0001058) – CPU_ReadMem(4 bytes @ 0x00000004) – CPU_ReadMem(4 bytes @ 0xE0002000) – CPU_ReadMem(4 bytes @ 0xE0002008) – CPU_ReadMem(4 bytes @ 0xE000200C) – CPU_ReadMem(4 bytes @ 0xE0002010)
02-00000000-00-00000909-01E9: – CPU_ReadMem(4 bytes @ 0xE0002014) – CPU_ReadMem(4 bytes @ 0xE0002018) – CPU_ReadMem(4 bytes @ 0xE000201C) – CPU_WriteMem(4 bytes @ 0xE0002000) – CPU_WriteMem(4 bytes @ 0xE0002008) – CPU_WriteMem(4 bytes @ 0xE000200C) – CPU_WriteMem(4 bytes @ 0xE0002010) – CPU_WriteMem(4 bytes @ 0xE0002014) – CPU_WriteMem(4 bytes @ 0xE0002018) – CPU_WriteMem(4 bytes @ 0xE000201C) – CPU_ReadMem(4 bytes @ 0xE0001000) – CPU_ReadMem(4 bytes @ 0x400FC040) – CPU_WriteMem(4 bytes @ 0xE0002000)
02-00000000-00-00000915-016B: – CPU_WriteMem(4 bytes @ 0xE0002008) – CPU_WriteMem(4 bytes @ 0xE000200C) – CPU_WriteMem(4 bytes @ 0xE0002010) – CPU_WriteMem(4 bytes @ 0xE0002014) – CPU_WriteMem(4 bytes @ 0xE0002018) – CPU_WriteMem(4 bytes @ 0xE000201C) – CPU_WriteMem(4 bytes @ 0xE0002000) – CPU_ReadMem(4 bytes @ 0xE000EDFC) – CPU_ReadMem(4 bytes @ 0xE0001000) (0265ms, 0667ms total)
01-0000000A-00-00000915-0028: $526573657474696e67207461726765740D0A#b9
03-00000000-00-00000915-0010: Resetting target
00-0000000A-00-00000915-0012: $qRcmd,68616c74#fc
03-00000000-00-00000915-0015: Halting target CPU…
02-00000000-00-00000915-0042: T5607000 000:916 JLINK_Halt() returns 0x00 (0000ms, 0667ms total)
02-00000000-00-00000915-0046: T5607000 000:916 JLINK_IsHalted() returns TRUE (0000ms, 0667ms total)
02-00000000-00-00000915-0053: T5607000 000:916 JLINK_ReadReg(R15 (PC)) returns 0x000000CC (0000ms, 0667ms total)
03-00000000-00-00000915-0022: …Target halted (PC = 0x000000CC)
01-0000000A-00-00000915-0006: $OK#9a
00-0000000A-00-00000916-0012: $qRcmd,72656773#ce
02-00000000-00-00000916-0052: T5607000 000:917 JLINK_ReadReg(PRIMASK) returns 0x00000000 (0000ms, 0667ms total)
02-00000000-00-00000916-0052: T5607000 000:917 JLINK_ReadReg(BASEPRI) returns 0x00000000 (0000ms, 0667ms total)
02-00000000-00-00000916-0054: T5607000 000:917 JLINK_ReadReg(FAULTMASK) returns 0x00000000 (0000ms, 0667ms total)
02-00000000-00-00000916-0052: T5607000 000:917 JLINK_ReadReg(CONTROL) returns 0x00000000 (0000ms, 0667ms total)
02-00000000-00-00000916-004F: T5607000 000:917 JLINK_ReadReg(CFBP) returns 0x00000000 (0000ms, 0667ms total)
02-00000000-00-00000916-004F: T5607000 000:917 JLINK_ReadReg(IPSR) returns 0x00000000 (0000ms, 0667ms total)
02-00000000-00-00000916-004F: T5607000 000:917 JLINK_ReadReg(EPSR) returns 0x01000000 (0000ms, 0667ms total)
02-00000000-00-00000916-004F: T5607000 000:917 JLINK_ReadReg(APSR) returns 0x60000000 (0000ms, 0667ms total)
02-00000000-00-00000916-004F: T5607000 000:917 JLINK_ReadReg(XPSR) returns 0x61000000 (0000ms, 0667ms total)
02-00000000-00-00000916-0053: T5607000 000:917 JLINK_ReadReg(R15 (PC)) returns 0x000000CC (0000ms, 0667ms total)
02-00000000-00-00000916-004E: T5607000 000:917 JLINK_ReadReg(R14) returns 0x1FFF0D5F (0000ms, 0667ms total)
02-00000000-00-00000916-004E: T5607000 000:917 JLINK_ReadReg(PSP) returns 0xFCD24288 (0000ms, 0667ms total)
02-00000000-00-00000916-004E: T5607000 000:917 JLINK_ReadReg(MSP) returns 0x10007FE0 (0000ms, 0667ms total)
02-00000000-00-00000916-0053: T5607000 000:917 JLINK_ReadReg(R13 (SP)) returns 0x10007FE0 (0000ms, 0667ms total)
02-00000000-00-00000916-004E: T5607000 000:917 JLINK_ReadReg(R12) returns 0x100005B8 (0000ms, 0667ms total)
02-00000000-00-00000916-004E: T5607000 000:917 JLINK_ReadReg(R11) returns 0x39726F2D (0000ms, 0667ms total)
02-00000000-00-00000916-004E: T5607000 000:917 JLINK_ReadReg(R10) returns 0xB60A1D4D (0000ms, 0667ms total)
02-00000000-00-00000916-004D: T5607000 000:917 JLINK_ReadReg(R9) returns 0x0EDD6A83 (0000ms, 0667ms total)
02-00000000-00-00000916-004D: T5607000 000:917 JLINK_ReadReg(R8) returns 0xBFFEB3B6 (0000ms, 0667ms total)
02-00000000-00-00000916-004D: T5607000 000:917 JLINK_ReadReg(R7) returns 0x00000000 (0000ms, 0667ms total)
02-00000000-00-00000916-004D: T5607000 000:917 JLINK_ReadReg(R6) returns 0x12345678 (0000ms, 0667ms total)
02-00000000-00-00000916-004D: T5607000 000:917 JLINK_ReadReg(R5) returns 0x3456ABCD (0000ms, 0667ms total)
02-00000000-00-00000916-004D: T5607000 000:917 JLINK_ReadReg(R4) returns 0x3456ABCD (0000ms, 0667ms total)
02-00000000-00-00000916-004D: T5607000 000:917 JLINK_ReadReg(R3) returns 0x00000000 (0000ms, 0667ms total)
02-00000000-00-00000916-004D: T5607000 000:917 JLINK_ReadReg(R2) returns 0x00000000 (0000ms, 0667ms total)
02-00000000-00-00000916-004D: T5607000 000:917 JLINK_ReadReg(R1) returns 0x000000CD (0000ms, 0667ms total)
02-00000000-00-00000916-004D: T5607000 000:917 JLINK_ReadReg(R0) returns 0x00000000 (0000ms, 0667ms total)
01-0000000A-00-00000916-0322: $5230203d2030303030303030302c205231203d2030303030303043442c205232203d2030303030303030302c205233203d2030303030303030300a5234203d2033343536414243442c205235203d2033343536414243442c205236203d2031323334353637382c205237203d2030303030303030300a5238203d2042464645423342362c205239203d2030454444364138332c205231303d2042363041314434442c205231313d2033393732364632440a5231323d2031303030303542382c205231333d2031303030374645302c204d53503d2031303030374645302c205053503d2046434432343238380a523134284c5229203d2031464646304435462c2052313528504329203d2030303030303043430a585053522036313030303030302c20415053522036303030303030302c20455053522030313030303030302c20495053522030303030303030300a434642502030303030303030302c20434f4e54524f4c2030302c204641554c544d41534b2030302c20424153455052492030302c205052494d41534b2030300D0A#27
03-00000000-00-00000916-003A: R0 = 00000000, R1 = 000000CD, R2 = 00000000, R3 = 00000000
03-00000000-00-00000916-003A: R4 = 3456ABCD, R5 = 3456ABCD, R6 = 12345678, R7 = 00000000
03-00000000-00-00000916-003A: R8 = BFFEB3B6, R9 = 0EDD6A83, R10= B60A1D4D, R11= 39726F2D
03-00000000-00-00000916-003A: R12= 100005B8, R13= 10007FE0, MSP= 10007FE0, PSP= FCD24288
03-00000000-00-00000917-0026: R14(LR) = 1FFF0D5F, R15(PC) = 000000CC
03-00000000-00-00000917-003A: XPSR 61000000, APSR 60000000, EPSR 01000000, IPSR 00000000
03-00000000-00-00000917-003F: CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
00-0000000A-00-00000917-0005: $g#67
03-00000000-00-00000917-0015: Reading all registers
02-00000000-00-00000917-004D: T5607000 000:918 JLINK_ReadReg(R0) returns 0x00000000 (0000ms, 0667ms total)
02-00000000-00-00000917-004D: T5607000 000:918 JLINK_ReadReg(R1) returns 0x000000CD (0000ms, 0667ms total)
02-00000000-00-00000917-004D: T5607000 000:918 JLINK_ReadReg(R2) returns 0x00000000 (0000ms, 0667ms total)
02-00000000-00-00000918-004D: T5607000 000:919 JLINK_ReadReg(R3) returns 0x00000000 (0000ms, 0667ms total)
02-00000000-00-00000918-004D: T5607000 000:919 JLINK_ReadReg(R4) returns 0x3456ABCD (0000ms, 0667ms total)
02-00000000-00-00000918-004D: T5607000 000:919 JLINK_ReadReg(R5) returns 0x3456ABCD (0000ms, 0667ms total)
02-00000000-00-00000918-004D: T5607000 000:919 JLINK_ReadReg(R6) returns 0x12345678 (0000ms, 0667ms total)
02-00000000-00-00000918-004D: T5607000 000:919 JLINK_ReadReg(R7) returns 0x00000000 (0000ms, 0667ms total)
02-00000000-00-00000918-004D: T5607000 000:919 JLINK_ReadReg(R8) returns 0xBFFEB3B6 (0000ms, 0667ms total)
02-00000000-00-00000918-004D: T5607000 000:919 JLINK_ReadReg(R9) returns 0x0EDD6A83 (0000ms, 0667ms total)
02-00000000-00-00000918-004E: T5607000 000:919 JLINK_ReadReg(R10) returns 0xB60A1D4D (0000ms, 0667ms total)
02-00000000-00-00000918-004E: T5607000 000:919 JLINK_ReadReg(R11) returns 0x39726F2D (0000ms, 0667ms total)
02-00000000-00-00000918-004E: T5607000 000:919 JLINK_ReadReg(R12) returns 0x100005B8 (0000ms, 0667ms total)
02-00000000-00-00000918-0053: T5607000 000:919 JLINK_ReadReg(R13 (SP)) returns 0x10007FE0 (0000ms, 0667ms total)
02-00000000-00-00000918-004E: T5607000 000:919 JLINK_ReadReg(R14) returns 0x1FFF0D5F (0000ms, 0667ms total)
02-00000000-00-00000918-0053: T5607000 000:919 JLINK_ReadReg(R15 (PC)) returns 0x000000CC (0000ms, 0667ms total)
02-00000000-00-00000918-004F: T5607000 000:919 JLINK_ReadReg(XPSR) returns 0x61000000 (0000ms, 0667ms total)
02-00000000-00-00000918-004E: T5607000 000:919 JLINK_ReadReg(MSP) returns 0x10007FE0 (0000ms, 0667ms total)
02-00000000-00-00000918-004E: T5607000 000:919 JLINK_ReadReg(PSP) returns 0xFCD24288 (0000ms, 0667ms total)
02-00000000-00-00000918-0052: T5607000 000:919 JLINK_ReadReg(PRIMASK) returns 0x00000000 (0000ms, 0667ms total)
02-00000000-00-00000918-0052: T5607000 000:919 JLINK_ReadReg(BASEPRI) returns 0x00000000 (0000ms, 0667ms total)
02-00000000-00-00000918-0054: T5607000 000:919 JLINK_ReadReg(FAULTMASK) returns 0x00000000 (0000ms, 0667ms total)
02-00000000-00-00000918-0052: T5607000 000:919 JLINK_ReadReg(CONTROL) returns 0x00000000 (0000ms, 0667ms total)
01-0000000A-00-00000918-00BC: $00000000cd0000000000000000000000cdab5634cdab56347856341200000000b6b3febf836add0e4d1d0ab62d6f7239b8050010e07f00105f0dff1fcc00000000000061e07f00108842d2fc00000000000000000000000000000000#99
00-0000000A-00-00000918-001E: $qRcmd,7370656564206175746f#70
02-00000000-00-00000918-003B: T5607000 000:919 JLINK_SetMaxSpeed() (0000ms, 0667ms total)
02-00000000-00-00000918-0047: T5607000 000:919 JLINK_GetSpeed() returns 0x7D0 (0000ms, 0667ms total)
01-0000000A-00-00000918-0062: $53656c656374206175746f2074617267657420696e74657266616365207370656564202832303030206b487a290D0A#34
03-00000000-00-00000918-002D: Select auto target interface speed (2000 kHz)
00-0000000A-00-00000919-0030: $qRcmd,666c61736820627265616b706f696e74732031#ac
02-00000000-00-00000919-005E: T5607000 000:920 JLINK_ExecCommand(“EnableFlashBPs”, …) returns 0x00 (0000ms, 0667ms total)
01-0000000A-00-00000919-003A: $466c61736820627265616b706f696e747320656e61626c65640D0A#4b
03-00000000-00-00000919-0019: Flash breakpoints enabled
00-0000000A-00-00000919-002E: $qRcmd,73656d69686f7374696e6720656e61626c65#92
02-00000000-00-00000919-0069: T5607000 000:920 JLINK_SetBPEx(Addr = 0x00000008, Type = 0x01) returns 0x00000001 (0000ms, 0667ms total)
01-0000000A-00-00000919-0058: $53656d692d686f7374696e6720656e61626c65642028566563746f7241646472203d2030783038290D0A#d5
03-00000000-00-00000919-0028: Semi-hosting enabled (VectorAddr = 0x08)
00-0000000A-00-00000919-0036: $qRcmd,73656d69686f7374696e6720494f436c69656e742033#68
01-0000000A-00-00000919-0060: $53656d69686f7374696e6720492f4f2073657420746f2054454c4e455420616e642047444220436c69656e740D0A#04
03-00000000-00-00000920-002C: Semihosting I/O set to TELNET and GDB Client
00-0000000A-00-00000920-0042: $qRcmd,53574f2044697361626c655461726765742030784646464646464646#07
02-00000000-00-00000920-002A: T5607000 000:921 JLINK_SWO_DisableTarget()
02-00000000-00-00000920-009D: JLINK_ReadMemU32(0xE0000E00, 0x0001 Items, …) – CPU_ReadMem(4 bytes @ 0xE0000E00) - Data: 01 00 00 00 returns 0x01 (0000ms, 0000ms total)
02-00000000-00-00000921-005B: JLINK_WriteU32(0xE0000E00, 0x00000000) returns 0x00 (0000ms, 0001ms total)
02-00000000-00-00000921-005B: JLINK_WriteU32(0xE0000E80, 0x00000000) returns 0x00 (0000ms, 0001ms total)
02-00000000-00-00000921-0033: returns 0x00 (0001ms, 0668ms total)
01-0000000A-00-00000921-003A: $53574f2064697361626c65642073756363657366756c6c792e0D0A#25
03-00000000-00-00000921-0019: SWO disabled succesfully.
00-0000000A-00-00000921-003E: $qRcmd,53574f20456e61626c6554617267657420302030203078312030#2d
02-00000000-00-00000927-01F7: T5607000 000:922 JLINK_MeasureCPUSpeed(RAMAddr = 0xFFFFFFFF) – CPU_ReadMem(16 bytes @ 0x10000000) – CPU_ReadMem(64 bytes @ 0x10000000) – Updating C cache (64 bytes @ 0x10000000) – Read from C cache (6 bytes @ 0x10000000) – CPU_WriteMem(16 bytes @ 0x10000000) – CPU_WriteMem(6 bytes @ 0x10000000) – CPU_ReadMem(64 bytes @ 0x10000000) – Updating C cache (64 bytes @ 0x10000000) – Read from C cache (6 bytes @ 0x10000000) – CPU_WriteMem(4 bytes @ 0xE0000E00) – CPU_WriteMem(4 bytes @ 0xE0000E80)
02-00000000-00-00000963-01EE: – CPU_WriteMem(4 bytes @ 0xE0002008) – CPU_WriteMem(4 bytes @ 0xE000200C) – CPU_WriteMem(4 bytes @ 0xE0002010) – CPU_WriteMem(4 bytes @ 0xE0002014) – CPU_WriteMem(4 bytes @ 0xE0002018) – CPU_WriteMem(4 bytes @ 0xE000201C) – CPU_WriteMem(4 bytes @ 0xE0002008) – CPU_WriteMem(4 bytes @ 0xE000200C) – CPU_WriteMem(4 bytes @ 0xE0002010) – CPU_WriteMem(4 bytes @ 0xE0002014) – CPU_WriteMem(4 bytes @ 0xE0002018) – CPU_WriteMem(4 bytes @ 0xE000201C) – CPU_WriteMem(6 bytes @ 0x10000000)
02-00000000-00-00000963-0042: – ClockFreq: 4063950 Hz returns 0x3E02CE (0042ms, 0710ms total)
02-00000000-00-00000963-0068: T5607000 000:964 JLINK_SWO_GetCompatibleSpeeds(CPUSpeed = 4063950, MaxSWOSpeed = 0, …, NumEntries = 1)
02-00000000-00-00000964-006C: JLINK_SWO_Control(JLINKARM_SWO_CMD_GET_SPEED_INFO, …) returns 0x00 (0001ms, 0001ms total)
02-00000000-00-00000964-0033: returns 0x01 (0001ms, 0711ms total)
02-00000000-00-00000964-0059: T5607000 000:965 JLINK_SWO_EnableTarget(CPUSpeed = 4063950, SWOSpeed = 4000000, Mode = 0)
02-00000000-00-00000967-006C: JLINK_SWO_Control(JLINKARM_SWO_CMD_GET_SPEED_INFO, …) returns 0x00 (0003ms, 0003ms total)
02-00000000-00-00000967-009D: JLINK_ReadMemU32(0xE000EDFC, 0x0001 Items, …) – CPU_ReadMem(4 bytes @ 0xE000EDFC) - Data: 00 00 00 01 returns 0x01 (0000ms, 0003ms total)
02-00000000-00-00000968-0081: JLINK_WriteU32(0xE0000FB0, 0xC5ACCE55) – CPU_WriteMem(4 bytes @ 0xE0000FB0) returns 0x00 (0001ms, 0004ms total)
02-00000000-00-00000968-0078: JLINK_ReadMemU32(0xE0000E00, 0x0001 Items, …) - Data: 00 00 00 00 returns 0x01 (0000ms, 0004ms total)
02-00000000-00-00000968-0081: JLINK_WriteU32(0xE0000E00, 0x00000000) – CPU_WriteMem(4 bytes @ 0xE0000E00) returns 0x00 (0000ms, 0004ms total)
02-00000000-00-00000969-0081: JLINK_WriteU32(0xE0000E80, 0x00000000) – CPU_WriteMem(4 bytes @ 0xE0000E80) returns 0x00 (0000ms, 0005ms total)
02-00000000-00-00000970-0024: – UART – 4000000bps
02-00000000-00-00000970-0081: JLINK_WriteU32(0xE00400F0, 0x00000002) – CPU_WriteMem(4 bytes @ 0xE00400F0) returns 0x00 (0000ms, 0005ms total)
02-00000000-00-00000971-0081: JLINK_WriteU32(0xE0040010, 0x00000000) – CPU_WriteMem(4 bytes @ 0xE0040010) returns 0x00 (0001ms, 0006ms total)
02-00000000-00-00000971-0081: JLINK_WriteU32(0xE0000E40, 0x00000000) – CPU_WriteMem(4 bytes @ 0xE0000E40) returns 0x00 (0000ms, 0006ms total)
02-00000000-00-00000972-0058: – CPU_ReadMem(4 bytes @ 0xE0001000) – CPU_ReadMem(4 bytes @ 0xE0001000)
02-00000000-00-00000973-0081: JLINK_WriteU32(0xE0040304, 0x00000100) – CPU_WriteMem(4 bytes @ 0xE0040304) returns 0x00 (0001ms, 0008ms total)
02-00000000-00-00000974-0081: JLINK_WriteU32(0xE0000E80, 0x0001000D) – CPU_WriteMem(4 bytes @ 0xE0000E80) returns 0x00 (0001ms, 0009ms total)
02-00000000-00-00000974-0081: JLINK_WriteU32(0xE0000E00, 0x00000001) – CPU_WriteMem(4 bytes @ 0xE0000E00) returns 0x00 (0000ms, 0009ms total)
02-00000000-00-00000974-0033: returns 0x00 (0010ms, 0721ms total)
01-0000000A-00-00000974-0038: $53574f20656e61626c65642073756363657366756c6c792e0D0A#e8
03-00000000-00-00000974-0018: SWO enabled succesfully.
00-0000000A-00-00000975-0024: $qRcmd,696e7465726661636520737764#b7
02-00000000-00-00000977-0058: T5607000 000:978 JLINK_TIF_Select(JLINKARM_TIF_SWD) returns 0x00 (0000ms, 0721ms total)
01-0000000A-00-00000977-0044: $53656c656374205357442061732074617267657420696e746572666163650D0A#93
03-00000000-00-00000977-001E: Select SWD as target interface
00-0000000A-00-00000977-0036: $qRcmd,666c61736820646576696365203d204c504331373639#af
02-00000000-00-00000981-0096: T1D87000 000:978 JLINK_SWO_Read(…, Offset = 0x00, NumBytes = 0x80000)JLINK_ExecCommand(“Device = LPC1769”, …) returns 0x00 (0001ms, 0722ms total)
01-0000000A-00-00000981-003A: $53656c656374696e67206465766963653a204c5043313736390D0A#ea
02-00000000-00-00000981-0045: T1D87000 000:982 - Data: NumBytesRead = 0x00 (0000ms, 0722ms total)
03-00000000-00-00000981-0019: Selecting device: LPC1769
02-00000000-00-00000981-0064: T1D87000 000:982 JLINK_SWO_Control(JLINKARM_SWO_CMD_FLUSH, …) returns 0x00 (0000ms, 0722ms total)
00-0000000A-00-00000981-002E: $qRcmd,666c61736820646f776e6c6f6164203d2031#9d
02-00000000-00-00000981-005D: T5607000 000:982 JLINK_ExecCommand(“EnableFlashDL”, …) returns 0x00 (0000ms, 0722ms total)
01-0000000A-00-00000981-0034: $466c61736820646f776e6c6f616420656e61626c65640D0A#43
03-00000000-00-00000981-0016: Flash download enabled
00-0000000A-00-00000982-0034: $qRcmd,666c61736820627265616b706f696e7473203d2031#a5
02-00000000-00-00000982-005E: T5607000 000:983 JLINK_ExecCommand(“EnableFlashBPs”, …) returns 0x00 (0000ms, 0722ms total)
01-0000000A-00-00000982-003A: $466c61736820627265616b706f696e747320656e61626c65640D0A#4b
03-00000000-00-00000982-0019: Flash breakpoints enabled
00-0000000A-00-00000982-001E: $qRcmd,7370656564206175746f#70
02-00000000-00-00000982-003B: T5607000 000:983 JLINK_SetMaxSpeed() (0000ms, 0722ms total)
02-00000000-00-00000982-0047: T5607000 000:983 JLINK_GetSpeed() returns 0x7D0 (0000ms, 0722ms total)
01-0000000A-00-00000982-0062: $53656c656374206175746f2074617267657420696e74657266616365207370656564202832303030206b487a290D0A#34
03-00000000-00-00000982-002D: Select auto target interface speed (2000 kHz)
00-0000000A-00-00000982-0014: $qRcmd,636c726270#5d
01-0000000A-00-00000982-0006: $OK#9a
00-0000000A-00-00000983-0018: $qRcmd,72657365742030#fc
02-00000000-00-00000983-0063: T5607000 000:984 JLINK_SetResetType(JLINKARM_RESET_TYPE_NORMAL) returns ??? (0000ms, 0722ms total)
02-00000000-00-00000983-0041: T5607000 000:984 JLINK_ResetPullsRESET(ON) (0000ms, 0722ms total)
02-00000000-00-00001005-01DA: T5607000 000:984 JLINK_Reset() – CPU_WriteMem(4 bytes @ 0xE000EDF0) – CPU_WriteMem(4 bytes @ 0xE000EDFC) >0x35 TIF> – CPU_WriteMem(4 bytes @ 0xE000ED0C) – CPU_ReadMem(4 bytes @ 0xE000EDF0) – CPU_ReadMem(4 bytes @ 0xE000EDF0) – CPU_WriteMem(4 bytes @ 0xE000EDF0) – CPU_WriteMem(4 bytes @ 0xE000EDFC) – CPU is running – CPU_ReadMem(4 bytes @ 0xE000EDF0) – CPU_WriteMem(4 bytes @ 0xE000EDFC) – CPU_WriteMem(4 bytes @ 0xE000EDFC) – CPU_WriteMem(4 bytes @ 0xE000EDFC)
02-00000000-00-00001011-01ED: – CPU_WriteMem(4 bytes @ 0xE000EDFC) – CPU_WriteMem(4 bytes @ 0xE000EDFC) – CPU_WriteMem(4 bytes @ 0xE0001050) – CPU_WriteMem(4 bytes @ 0xE0001054) – CPU_WriteMem(4 bytes @ 0xE0001058) – CPU_ReadMem(4 bytes @ 0x400FC040) – CPU_WriteMem(4 bytes @ 0xE0002000) – CPU_WriteMem(4 bytes @ 0xE0002008) – CPU_WriteMem(4 bytes @ 0xE000200C) – CPU_WriteMem(4 bytes @ 0xE0002010) – CPU_WriteMem(4 bytes @ 0xE0002014) – CPU_WriteMem(4 bytes @ 0xE0002018) – CPU_WriteMem(4 bytes @ 0xE000201C)
02-00000000-00-00001128-01E4: – CPU_ReadMem(4 bytes @ 0xE0001000) – CPU_ReadMem(4 bytes @ 0x400FC040) – CPU_WriteMem(4 bytes @ 0xE000EDFC) – CPU_WriteMem(4 bytes @ 0xE0001058) – CPU_ReadMem(4 bytes @ 0x00000004) – CPU_ReadMem(4 bytes @ 0xE0002000) – CPU_ReadMem(4 bytes @ 0xE0002008) – CPU_ReadMem(4 bytes @ 0xE000200C) – CPU_ReadMem(4 bytes @ 0xE0002010) – CPU_ReadMem(4 bytes @ 0xE0002014) – CPU_ReadMem(4 bytes @ 0xE0002018) – CPU_ReadMem(4 bytes @ 0xE000201C) – CPU_WriteMem(4 bytes @ 0xE0002000)
02-00000000-00-00001243-01EC: – CPU_WriteMem(4 bytes @ 0xE0002008) – CPU_WriteMem(4 bytes @ 0xE000200C) – CPU_WriteMem(4 bytes @ 0xE0002010) – CPU_WriteMem(4 bytes @ 0xE0002014) – CPU_WriteMem(4 bytes @ 0xE0002018) – CPU_WriteMem(4 bytes @ 0xE000201C) – CPU_ReadMem(4 bytes @ 0xE0001000) – CPU_ReadMem(4 bytes @ 0x400FC040) – CPU_WriteMem(4 bytes @ 0xE0002000) – CPU_WriteMem(4 bytes @ 0xE0002008) – CPU_WriteMem(4 bytes @ 0xE000200C) – CPU_WriteMem(4 bytes @ 0xE0002010) – CPU_WriteMem(4 bytes @ 0xE0002014)
02-00000000-00-00001248-00D3: – CPU_WriteMem(4 bytes @ 0xE0002018) – CPU_WriteMem(4 bytes @ 0xE000201C) – CPU_WriteMem(4 bytes @ 0xE0002000) – CPU_ReadMem(4 bytes @ 0xE000EDFC) – CPU_ReadMem(4 bytes @ 0xE0001000) (0265ms, 0987ms total)
01-0000000A-00-00001248-007C: $52657365747320636f72652026207065726970686572616c7320766961205359535245534554524551202620564543545245534554206269742e0D0A#1f
03-00000000-00-00001248-003A: Resets core & peripherals via SYSRESETREQ & VECTRESET bit.
00-0000000A-00-00001249-0036: $qRcmd,72656720723133203d20283078303030303030303029#13
02-00000000-00-00001253-007B: T1D87000 001:252 JLINK_SWO_Read(…, Offset = 0x00, NumBytes = 0x80000) - Data: NumBytesRead = 0x00 (0000ms, 0987ms total)
02-00000000-00-00001253-0064: T1D87000 001:254 JLINK_SWO_Control(JLINKARM_SWO_CMD_FLUSH, …) returns 0x00 (0000ms, 0987ms total)
02-00000000-00-00001255-00F7: T5607000 001:254 JLINK_ReadMemU32(0x00000000, 0x0001 Items, …) – CPU_ReadMem(64 bytes @ 0x00000000) – Updating C cache (64 bytes @ 0x00000000) – Read from C cache (4 bytes @ 0x00000000) - Data: E0 7F 00 10 returns 0x01 (0002ms, 0989ms total)
02-00000000-00-00001256-005A: T5607000 001:257 JLINK_WriteReg(R13 (SP), 0x10007FE0) returns 0x00 (0000ms, 0989ms total)
01-0000000A-00-00001256-004C: $57726974696e6720726567697374657220285350203d2030783130303037464530290D0A#24
03-00000000-00-00001256-0022: Writing register (SP = 0x10007FE0)
00-0000000A-00-00001256-0034: $qRcmd,726567207063203d20283078303030303030303429#b4
02-00000000-00-00001256-00A5: T5607000 001:257 JLINK_ReadMemU32(0x00000004, 0x0001 Items, …) – Read from C cache (4 bytes @ 0x00000004) - Data: CD 00 00 00 returns 0x01 (0000ms, 0989ms total)
02-00000000-00-00001256-005A: T5607000 001:257 JLINK_WriteReg(R15 (PC), 0x000000CC) returns 0x00 (0000ms, 0989ms total)
01-0000000A-00-00001256-004C: $57726974696e6720726567697374657220285043203d2030783030303030304344290D0A#17
03-00000000-00-00001256-0022: Writing register (PC = 0x000000CD)
00-0000000A-00-00001256-0018: $qRcmd,72656720723133#f9
02-00000000-00-00001257-0053: T5607000 001:258 JLINK_ReadReg(R13 (SP)) returns 0x10007FE0 (0000ms, 0989ms total)
01-0000000A-00-00001257-004C: $52656164696e6720726567697374657220285350203d2030783130303037464530290D0A#18
03-00000000-00-00001257-0022: Reading register (SP = 0x10007FE0)
00-0000000A-00-00001257-0016: $qRcmd,726567207063#96
02-00000000-00-00001259-0053: T5607000 001:260 JLINK_ReadReg(R15 (PC)) returns 0x000000CC (0000ms, 0989ms total)
01-0000000A-00-00001259-004C: $52656164696e6720726567697374657220285043203d2030783030303030304343290D0A#0a
03-00000000-00-00001260-0022: Reading register (PC = 0x000000CC)
02-00000000-00-00001266-007B: T1D87000 001:265 JLINK_SWO_Read(…, Offset = 0x00, NumBytes = 0x80000) - Data: NumBytesRead = 0x00 (0000ms, 0989ms total)
02-00000000-00-00001266-0064: T1D87000 001:267 JLINK_SWO_Control(JLINKARM_SWO_CMD_FLUSH, …) returns 0x00 (0000ms, 0989ms total)
02-00000000-00-00001281-007B: T1D87000 001:280 JLINK_SWO_Read(…, Offset = 0x00, NumBytes = 0x80000) - Data: NumBytesRead = 0x00 (0000ms, 0989ms total)
02-00000000-00-00001281-0064: T1D87000 001:282 JLINK_SWO_Control(JLINKARM_SWO_CMD_FLUSH, …) returns 0x00 (0000ms, 0989ms total)
02-00000000-00-00001293-007B: T1D87000 001:292 JLINK_SWO_Read(…, Offset = 0x00, NumBytes = 0x80000) - Data: NumBytesRead = 0x00 (0000ms, 0989ms total)
02-00000000-00-00001296-0064: T1D87000 001:296 JLINK_SWO_Control(JLINKARM_SWO_CMD_FLUSH, …) returns 0x00 (0000ms, 0989ms total)
02-00000000-00-00001307-007B: T1D87000 001:307 JLINK_SWO_Read(…, Offset = 0x00, NumBytes = 0x80000) - Data: NumBytesRead = 0x00 (0000ms, 0990ms total)
02-00000000-00-00001307-0064: T1D87000 001:308 JLINK_SWO_Control(JLINKARM_SWO_CMD_FLUSH, …) returns 0x00 (0000ms, 0990ms total)
00-0000000A-00-00001311-000C: $qTStatus#49
01-0000000A-00-00001311-0004: $#00
00-0000000A-00-00001311-000C: $qTStatus#49
01-0000000A-00-00001311-0004: $#00
00-0000000A-00-00001311-000C: $qTStatus#49
01-0000000A-00-00001311-0004: $#00
00-0000000A-00-00001311-000C: $qTStatus#49
01-0000000A-00-00001311-0004: $#00
00-0000000A-00-00001311-000D: $qSymbol::#5b
01-0000000A-00-00001311-0004: $#00
00-0000000A-00-00001312-000C: $X4000,0:#b2
01-0000000A-00-00001312-0006: $OK#9a
00-0000000A-01-00001313-0800:

{{<<I HAVE REMOVED ALL THE HEXCODES OF THE DOWNLOADED main.elf FILE AS THE PSOT IS TOO BIG OTHERWISE>>}}

03-00000000-00-00001325-002C: Downloading 15040 bytes @ address 0x00013C10
02-00000000-00-00001327-00A1: T5607000 001:328 JLINK_WriteMem(0x00013C10, 0x3AC0 Bytes, …) - Data: 11 9F 05 46 00 2F 05 DD 29 46 50 46 3A 46 00 F0 … returns 0x3AC0 (0000ms, 0995ms total)
02-00000000-00-00001328-00D3: T5607000 001:328 JLINK_ReadMem (0x00013C10, 0x3AC0 Bytes, …) – Read from flash cache (15040 bytes @ 0x00013C10) - Data: 11 9F 05 46 00 2F 05 DD 29 46 50 46 3A 46 00 F0 … returns 0x00 (0001ms, 0996ms total)
03-00000000-00-00001328-000E: - Verified OK
01-0000000A-00-00001328-0006: $OK#9a
00-0000000A-01-00001328-0015: 245831373664302c383a288eff7f01000000233564
03-00000000-00-00001328-0028: Downloading 8 bytes @ address 0x000176D0
02-00000000-00-00001328-0083: T5607000 001:329 JLINK_WriteMem(0x000176D0, 0x0008 Bytes, …) - Data: 28 8E FF 7F 01 00 00 00 returns 0x08 (0000ms, 0996ms total)
02-00000000-00-00001328-00B3: T5607000 001:329 JLINK_ReadMem (0x000176D0, 0x0008 Bytes, …) – Read from flash cache (8 bytes @ 0x000176D0) - Data: 28 8E FF 7F 01 00 00 00 returns 0x00 (0000ms, 0996ms total)
03-00000000-00-00001328-000E: - Verified OK
01-0000000A-00-00001328-0006: $OK#9a
00-0000000A-01-00001328-0143: 245831373664382c3133343a000000000000a041040309040902090000010080fa000000420330003100320033003400350036003700610062006300640065006600670068003000310032003300340035003600370061006200630064006500660067006800000012010002ef020140501d15600001000000010000b80a001000d8b80500000000b0730100d0730100f0730100000000000000000000000000000000001074010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040010010b4740100c8750100da610100da610100da610100da610100da610100da610100da610100da610100da610100ffffffffffffffffffffffffffff0000f1400000ad45000015470000f1510000e5820000d1b30000cd400000233362
03-00000000-00-00001329-002A: Downloading 308 bytes @ address 0x000176D8
02-00000000-00-00001329-00A0: T5607000 001:330 JLINK_WriteMem(0x000176D8, 0x0134 Bytes, …) - Data: 00 00 00 00 00 00 A0 41 04 03 09 04 09 02 09 00 … returns 0x134 (0000ms, 0996ms total)
02-00000000-00-00001331-00D1: T5607000 001:332 JLINK_ReadMem (0x000176D8, 0x0134 Bytes, …) – Read from flash cache (308 bytes @ 0x000176D8) - Data: 00 00 00 00 00 00 A0 41 04 03 09 04 09 02 09 00 … returns 0x00 (0000ms, 0996ms total)
03-00000000-00-00001331-000E: - Verified OK
01-0000000A-00-00001331-0006: $OK#9a
00-0000000A-00-00001332-000F: $Pf=1de70000#e4
02-00000000-00-00001384-01F2: T5607000 001:333 JLINK_WriteReg(R15 (PC), 0x0000E71C) – -------------------------------------- – Start of determining dirty areas in flash cache – End of determining dirty areas – Start of preparing flash programming – Calculating RAM usage – RAM usage = 5844 Bytes – Preserving registers – Preparing memory – Determining CPU clock frequency – CPU clock frequency: 4063 kHz – CPU frequency = 4063 kHz – Preparing target – Preserving additional used target memory – Downloading RAMCode
02-00000000-00-00001446-01B8: – Using alternate TurboMode RAMCode – Checking target RAM – Preparing RAMCode – End of preparing flash programming – CPU is running at 60000 kHz. – Start of comparing flash – CRC check was estimated as fastest method – Comparing range 0x4000 - 0xFFFF (12 Sectors, 48 KB), using multi-block CRC calculation – All CRCs match – Comparing range 0x10000 - 0x17FFF (1 Sector, 32 KB), using multi-block CRC calculation – All CRCs match
02-00000000-00-00001483-01FD: – Comparing range 0x4000 - 0xFFFF (12 Sectors, 48 KB), using alternative multi-block CRC calculation – All CRCs match – Comparing range 0x10000 - 0x17FFF (1 Sector, 32 KB), using alternative multi-block CRC calculation – All CRCs match – End of comparing flash – Start of erasing sectors – End of erasing sectors – Start of flash programming – End of flash programming – Start of verifying flash – End of verifying flash – Start of restoring – Restore RAMCode – Restore content of target memory
02-00000000-00-00001489-0196: – Restore target – Restore memory – Restore content of registers – End of restoring – Flash download into internal flash skipped. Flash contents already match – Flash download into internal flash skipped. Flash contents already match – Total time needed: 0.153s (Prepare: 0.081s, Compare: 0.061s, Erase: 0.000s, Program: 0.000s, Verify: 0.000s, Restore: 0.011s) returns 0x00 (0157ms, 1153ms total)
03-00000000-00-00001489-0022: Writing register (PC = 0x0000e71d)
01-0000000A-00-00001489-0006: $OK#9a
00-0000000A-00-00001489-000C: $qTStatus#49
01-0000000A-00-00001489-0004: $#00
00-0000000A-00-00001489-000C: $qTStatus#49
01-0000000A-00-00001489-0004: $#00
00-0000000A-00-00001489-000C: $qTStatus#49
01-0000000A-00-00001489-0004: $#00
00-0000000A-00-00001489-000C: $qTStatus#49
01-0000000A-00-00001489-0004: $#00
00-0000000A-00-00001490-001D: $qXfer:threads:read::0,fff#03
01-0000000A-00-00001490-0005: $l#6c
02-00000000-00-00001490-007B: T1D87000 001:490 JLINK_SWO_Read(…, Offset = 0x00, NumBytes = 0x80000) - Data: NumBytesRead = 0x00 (0000ms, 1153ms total)
02-00000000-00-00001490-0064: T1D87000 001:491 JLINK_SWO_Control(JLINKARM_SWO_CMD_FLUSH, …) returns 0x00 (0000ms, 1153ms total)
02-00000000-00-00001504-007B: T1D87000 001:504 JLINK_SWO_Read(…, Offset = 0x00, NumBytes = 0x80000) - Data: NumBytesRead = 0x00 (0000ms, 1153ms total)
02-00000000-00-00001505-0064: T1D87000 001:505 JLINK_SWO_Control(JLINKARM_SWO_CMD_FLUSH, …) returns 0x00 (0001ms, 1154ms total)
02-00000000-00-00001516-007B: T1D87000 001:516 JLINK_SWO_Read(…, Offset = 0x00, NumBytes = 0x80000) - Data: NumBytesRead = 0x00 (0000ms, 1154ms total)
02-00000000-00-00001517-0064: T1D87000 001:518 JLINK_SWO_Control(JLINKARM_SWO_CMD_FLUSH, …) returns 0x00 (0000ms, 1155ms total)
02-00000000-00-00001532-007B: T1D87000 001:529 JLINK_SWO_Read(…, Offset = 0x00, NumBytes = 0x80000) - Data: NumBytesRead = 0x00 (0000ms, 1155ms total)
02-00000000-00-00001532-0064: T1D87000 001:533 JLINK_SWO_Control(JLINKARM_SWO_CMD_FLUSH, …) returns 0x00 (0000ms, 1155ms total)
02-00000000-00-00001545-007B: T1D87000 001:544 JLINK_SWO_Read(…, Offset = 0x00, NumBytes = 0x80000) - Data: NumBytesRead = 0x00 (0000ms, 1155ms total)
02-00000000-00-00001545-0064: T1D87000 001:546 JLINK_SWO_Control(JLINKARM_SWO_CMD_FLUSH, …) returns 0x00 (0000ms, 1155ms total)
02-00000000-00-00001558-007B: T1D87000 001:558 JLINK_SWO_Read(…, Offset = 0x00, NumBytes = 0x80000) - Data: NumBytesRead = 0x00 (0000ms, 1155ms total)
02-00000000-00-00001559-0064: T1D87000 001:560 JLINK_SWO_Control(JLINKARM_SWO_CMD_FLUSH, …) returns 0x00 (0000ms, 1156ms total)
02-00000000-00-00001572-007B: T1D87000 001:570 JLINK_SWO_Read(…, Offset = 0x00, NumBytes = 0x80000) - Data: NumBytesRead = 0x00 (0000ms, 1156ms total)
02-00000000-00-00001572-0064: T1D87000 001:573 JLINK_SWO_Control(JLINKARM_SWO_CMD_FLUSH, …) returns 0x00 (0000ms, 1156ms total)
02-00000000-00-00001586-007B: T1D87000 001:586 JLINK_SWO_Read(…, Offset = 0x00, NumBytes = 0x80000) - Data: NumBytesRead = 0x00 (0000ms, 1156ms total)
02-00000000-00-00001586-0064: T1D87000 001:587 JLINK_SWO_Control(JLINKARM_SWO_CMD_FLUSH, …) returns 0x00 (0000ms, 1156ms total)
02-00000000-00-00001598-007B: T1D87000 001:598 JLINK_SWO_Read(…, Offset = 0x00, NumBytes = 0x80000) - Data: NumBytesRead = 0x00 (0000ms, 1156ms total)
02-00000000-00-00001598-0064: T1D87000 001:599 JLINK_SWO_Control(JLINKARM_SWO_CMD_FLUSH, …) returns 0x00 (0000ms, 1156ms total)
02-00000000-00-00001613-007B: T1D87000 001:612 JLINK_SWO_Read(…, Offset = 0x00, NumBytes = 0x80000) - Data: NumBytesRead = 0x00 (0000ms, 1156ms total)
02-00000000-00-00001613-0064: T1D87000 001:614 JLINK_SWO_Control(JLINKARM_SWO_CMD_FLUSH, …) returns 0x00 (0000ms, 1156ms total)
02-00000000-00-00001629-007B: T1D87000 001:629 JLINK_SWO_Read(…, Offset = 0x00, NumBytes = 0x80000) - Data: NumBytesRead = 0x00 (0000ms, 1156ms total)
02-00000000-00-00001629-0064: T1D87000 001:630 JLINK_SWO_Control(JLINKARM_SWO_CMD_FLUSH, …) returns 0x00 (0000ms, 1156ms total)
02-00000000-00-00001642-007B: T1D87000 001:640 JLINK_SWO_Read(…, Offset = 0x00, NumBytes = 0x80000) - Data: NumBytesRead = 0x00 (0000ms, 1156ms total)
02-00000000-00-00001643-0064: T1D87000 001:644 JLINK_SWO_Control(JLINKARM_SWO_CMD_FLUSH, …) returns 0x00 (0000ms, 1156ms total)
02-00000000-00-00001660-007B: T1D87000 001:658 JLINK_SWO_Read(…, Offset = 0x00, NumBytes = 0x80000) - Data: NumBytesRead = 0x00 (0000ms, 1156ms total)
02-00000000-00-00001660-0064: T1D87000 001:661 JLINK_SWO_Control(JLINKARM_SWO_CMD_FLUSH, …) returns 0x00 (0000ms, 1156ms total)
02-00000000-00-00001673-007B: T1D87000 001:673 JLINK_SWO_Read(…, Offset = 0x00, NumBytes = 0x80000) - Data: NumBytesRead = 0x00 (0000ms, 1156ms total)
02-00000000-00-00001673-0064: T1D87000 001:674 JLINK_SWO_Control(JLINKARM_SWO_CMD_FLUSH, …) returns 0x00 (0000ms, 1156ms total)
02-00000000-00-00001688-007B: T1D87000 001:686 JLINK_SWO_Read(…, Offset = 0x00, NumBytes = 0x80000) - Data: NumBytesRead = 0x00 (0000ms, 1156ms total)
02-00000000-00-00001689-0064: T1D87000 001:690 JLINK_SWO_Control(JLINKARM_SWO_CMD_FLUSH, …) returns 0x00 (0000ms, 1157ms total)
02-00000000-00-00001703-007B: T1D87000 001:701 JLINK_SWO_Read(…, Offset = 0x00, NumBytes = 0x80000) - Data: NumBytesRead = 0x00 (0000ms, 1157ms total)
02-00000000-00-00001703-0064: T1D87000 001:704 JLINK_SWO_Control(JLINKARM_SWO_CMD_FLUSH, …) returns 0x00 (0000ms, 1157ms total)
02-00000000-00-00001720-007B: T1D87000 001:719 JLINK_SWO_Read(…, Offset = 0x00, NumBytes = 0x80000) - Data: NumBytesRead = 0x00 (0000ms, 1157ms total)
02-00000000-00-00001720-0064: T1D87000 001:721 JLINK_SWO_Control(JLINKARM_SWO_CMD_FLUSH, …) returns 0x00 (0000ms, 1157ms total)
02-00000000-00-00001735-007B: T1D87000 001:732 JLINK_SWO_Read(…, Offset = 0x00, NumBytes = 0x80000) - Data: NumBytesRead = 0x00 (0000ms, 1157ms total)
02-00000000-00-00001735-0064: T1D87000 001:736 JLINK_SWO_Control(JLINKARM_SWO_CMD_FLUSH, …) returns 0x00 (0000ms, 1157ms total)
02-00000000-00-00001749-007B: T1D87000 001:748 JLINK_SWO_Read(…, Offset = 0x00, NumBytes = 0x80000) - Data: NumBytesRead = 0x00 (0000ms, 1157ms total)
02-00000000-00-00001749-0064: T1D87000 001:750 JLINK_SWO_Control(JLINKARM_SWO_CMD_FLUSH, …) returns 0x00 (0000ms, 1157ms total)
02-00000000-00-00001760-007B: T1D87000 001:760 JLINK_SWO_Read(…, Offset = 0x00, NumBytes = 0x80000) - Data: NumBytesRead = 0x00 (0000ms, 1157ms total)
02-00000000-00-00001760-0064: T1D87000 001:761 JLINK_SWO_Control(JLINKARM_SWO_CMD_FLUSH, …) returns 0x00 (0000ms, 1157ms total)
02-00000000-00-00001772-007B: T1D87000 001:771 JLINK_SWO_Read(…, Offset = 0x00, NumBytes = 0x80000) - Data: NumBytesRead = 0x00 (0000ms, 1157ms total)
02-00000000-00-00001772-0064: T1D87000 001:773 JLINK_SWO_Control(JLINKARM_SWO_CMD_FLUSH, …) returns 0x00 (0000ms, 1157ms total)
02-00000000-00-00001784-007B: T1D87000 001:784 JLINK_SWO_Read(…, Offset = 0x00, NumBytes = 0x80000) - Data: NumBytesRead = 0x00 (0000ms, 1157ms total)
02-00000000-00-00001784-0064: T1D87000 001:785 JLINK_SWO_Control(JLINKARM_SWO_CMD_FLUSH, …) returns 0x00 (0000ms, 1157ms total)
02-00000000-00-00001796-007B: T1D87000 001:796 JLINK_SWO_Read(…, Offset = 0x00, NumBytes = 0x80000) - Data: NumBytesRead = 0x00 (0000ms, 1157ms total)
02-00000000-00-00001796-0064: T1D87000 001:797 JLINK_SWO_Control(JLINKARM_SWO_CMD_FLUSH, …) returns 0x00 (0000ms, 1157ms total)
02-00000000-00-00001808-007B: T1D87000 001:807 JLINK_SWO_Read(…, Offset = 0x00, NumBytes = 0x80000) - Data: NumBytesRead = 0x00 (0000ms, 1157ms total)
02-00000000-00-00001808-0064: T1D87000 001:809 JLINK_SWO_Control(JLINKARM_SWO_CMD_FLUSH, …) returns 0x00 (0000ms, 1157ms total)
02-00000000-00-00001822-007B: T1D87000 001:820 JLINK_SWO_Read(…, Offset = 0x00, NumBytes = 0x80000) - Data: NumBytesRead = 0x00 (0000ms, 1157ms total)
02-00000000-00-00001822-0064: T1D87000 001:823 JLINK_SWO_Control(JLINKARM_SWO_CMD_FLUSH, …) returns 0x00 (0000ms, 1157ms total)
02-00000000-00-00001834-007B: T1D87000 001:833 JLINK_SWO_Read(…, Offset = 0x00, NumBytes = 0x80000) - Data: NumBytesRead = 0x00 (0000ms, 1157ms total)
02-00000000-00-00001834-0064: T1D87000 001:835 JLINK_SWO_Control(JLINKARM_SWO_CMD_FLUSH, …) returns 0x00 (0000ms, 1157ms total)
02-00000000-00-00001852-007B: T1D87000 001:849 JLINK_SWO_Read(…, Offset = 0x00, NumBytes = 0x80000) - Data: NumBytesRead = 0x00 (0000ms, 1157ms total)
02-00000000-00-00001852-0064: T1D87000 001:853 JLINK_SWO_Control(JLINKARM_SWO_CMD_FLUSH, …) returns 0x00 (0000ms, 1157ms total)
02-00000000-00-00001870-007B: T1D87000 001:867 JLINK_SWO_Read(…, Offset = 0x00, NumBytes = 0x80000) - Data: NumBytesRead = 0x00 (0000ms, 1157ms total)
02-00000000-00-00001870-0064: T1D87000 001:871 JLINK_SWO_Control(JLINKARM_SWO_CMD_FLUSH, …) returns 0x00 (0000ms, 1157ms total)
02-00000000-00-00001881-007B: T1D87000 001:881 JLINK_SWO_Read(…, Offset = 0x00, NumBytes = 0x80000) - Data: NumBytesRead = 0x00 (0000ms, 1157ms total)
02-00000000-00-00001881-0064: T1D87000 001:882 JLINK_SWO_Control(JLINKARM_SWO_CMD_FLUSH, …) returns 0x00 (0000ms, 1157ms total)
02-00000000-00-00001899-007B: T1D87000 001:896 JLINK_SWO_Read(…, Offset = 0x00, NumBytes = 0x80000) - Data: NumBytesRead = 0x00 (0000ms, 1157ms total)
02-00000000-00-00001899-0064: T1D87000 001:900 JLINK_SWO_Control(JLINKARM_SWO_CMD_FLUSH, …) returns 0x00 (0000ms, 1157ms total)
03-00000000-00-00001911-001C: GDB closed TCP/IP connection
02-00000000-00-00001913-007B: T1D87000 001:910 JLINK_SWO_Read(…, Offset = 0x00, NumBytes = 0x80000) - Data: NumBytesRead = 0x00 (0000ms, 1157ms total)
02-00000000-00-00001913-0064: T1D87000 001:914 JLINK_SWO_Control(JLINKARM_SWO_CMD_FLUSH, …) returns 0x00 (0000ms, 1157ms total)


How have others debugged firmware for Smoothie???

Help :slight_smile:

Cheers
Douglas

Just pressing the “bootloader” ( ISP ) button while Smoothie is running should put it into MRI mode.
Also, you can use the “break” command : http://smoothieware.org/console-commands over the USB/Serial port.
Also you can edit the makefile so that Smoothie will break into MRI at boot time.

Cheers.

I am trying to debug using the MRI interface.

I can make flash OK, but make debug cannot start my updated firmware:

make flash
cp ../LPC1768/main.elf ../LPC1768/main_lastupload.elf
lpc21isp ../LPC1768/main.hex /dev/tty.usbserial-A6026NUK 115200 12000
lpc21isp version 1.85
File ../LPC1768/main.hex:
    loaded...
Start Address = 0x00039421
    converted to binary format...
    image size : 345392
Image size : 345392
Synchronizing (ESC to abort). OK
Read bootcode version: 2
4
Read part ID: LPC1769, 512 kiB ROM / 64 kiB SRAM (0x26113F37)
Will start programming at Sector 1 if possible, and conclude with Sector 0 to ensure that checksum is written last.
Erasing sector 0 first, to invalidate checksum. OK 
Sector 1: ...............................................................................................
Sector 2: ...............................................................................................
Sector 3: ...............................................................................................
Sector 4: ...............................................................................................
Sector 5: ...............................................................................................
Sector 6: ...............................................................................................
Sector 7: ...............................................................................................
Sector 8: ...............................................................................................
Sector 9: ...............................................................................................
Sector 10: ...............................................................................................
Sector 11: ...............................................................................................
Sector 12: ...............................................................................................
Sector 13: ...............................................................................................
Sector 14: ...............................................................................................
Sector 15: ...............................................................................................
Sector 16: ...............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................
Sector 17: ...............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................
Sector 18: ...............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................
Sector 19: ...............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................
Sector 20: ...............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................
Sector 21: ...............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................
Sector 22: ...............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................
Sector 23: ...............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................
Sector 24: ...............................................................................................|.............................................................................................|.............................................................................................|.............................................................................................|.................................
Sector 0: ..............................................................................................
Download Finished... taking 62 seconds
Now launching the brand new code
bash-3.2$ make debug
/Users/douglaspearless/Documents/workspace/Smoothieware/build/osx64/arm-none-eabi-gdb ../LPC1768/main.elf -ex  "set target-charset ASCII" -ex "set remotelogfile mri.log" -ex "target remote /dev/tty.usbserial-A6026NUK"
GNU gdb (GNU Tools for ARM Embedded Processors) 7.4.1.20121207-cvs
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=x86_64-apple-darwin11.4.2 --target=arm-none-eabi".
For bug reporting instructions, please see:
Reading symbols from /Users/douglaspearless/Documents/workspace/Smoothieware/LPC1768/main.elf...done.
Remote debugging using /dev/tty.usbserial-A6026NUK
Ignoring packet error, continuing...
warning: unrecognized item "timeout" in "qSupported" response
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Malformed response to offset query, timeout
(gdb) list
1    /*
2     * Copyright (c) 2006, Swedish Institute of Computer Science.
3     * All rights reserved.
4     *
5     * Redistribution and use in source and binary forms, with or without
6     * modification, are permitted provided that the following conditions
7     * are met:
8     * 1. Redistributions of source code must retain the above copyright
9     *    notice, this list of conditions and the following disclaimer.
10     * 2. Redistributions in binary form must reproduce the above copyright
(gdb) list 20
15     *    without specific prior written permission.
16     *
17     * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
18     * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19     * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20     * ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
21     * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22     * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23     * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24     * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
(gdb) list 40
35     * \file
36     *         Implementation of architecture-specific clock functionality
37     * \author
38     *         Adam Dunkels <adam@sics.se>
39     */
40    
41    #include "clock-arch.h"
42    static clock_time_t Ticks;
43    
44    void do_tick() {
(gdb) list 60
Line number 55 out of range; libs/Network/uip/clock-arch.c has 53 lines.
(gdb) s
The program is not being run.
(gdb) start
Temporary breakpoint 1 at 0x786c: file main.cpp, line 248.
Starting program: /Users/douglaspearless/Documents/workspace/Smoothieware/LPC1768/main.elf 
Don't know how to run.  Try "help target".
(gdb) s
The program is not being run.
(gdb) list
Line number 55 out of range; libs/Network/uip/clock-arch.c has 53 lines.
(gdb) start
Temporary breakpoint 2 at 0x786c: file main.cpp, line 248.
Starting program: /Users/douglaspearless/Documents/workspace/Smoothieware/LPC1768/main.elf 
Don't know how to run.  Try "help target".
(gdb) run
Starting program: /Users/douglaspearless/Documents/workspace/Smoothieware/LPC1768/main.elf 
Don't know how to run.  Try "help target".
(gdb) help target
Connect to a target machine or process.
The first argument is the type or protocol of the target machine.
Remaining arguments are interpreted by the target protocol.  For more
information on the arguments for a particular protocol, type
`help target ' followed by the protocol name.

List of target subcommands:

target exec – Use an executable file as a target
target extended-remote – Use a remote computer via a serial line
target record – Log program while executing and replay execution from log
target record-core – Log program while executing and replay execution from log
target remote – Use a remote computer via a serial line
target tfile – Use a trace file as a target

Type “help target” followed by target subcommand name for full documentation.
Type “apropos word” to search for commands related to “word”.
Command name abbreviations are allowed if unambiguous.
(gdb)


Any thoughts?

In the output you pasted, it can’t connect :

Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Malformed response to offset query, timeout

You need to put Smoothie into MRI mode before you try to connect. You can do that by clicking the “ISP” button on the board, or by connecting to one of the serial ports and entering the “break” command.

Hi Arthur,

I went back and reloaded the boot loader and the firmware and config that is in your repository.

The firmware boots and works.

I then did a make clean and a make all and copied the main.bin to the SD card and renamed it to firmware.bin (as the SD card on the Smoothie is visible under finder on my Mac) and pressed reset.

The LEDS 1-4 began to flash the same as when it loaded you firmware, after a few moments, stopped and LED1 is off, LEDS is on, LED3 is off and LED4 is on.

I assume it was unable to flash my firmware.

If fact it could not get it to flash back your firmware, I had to reinstall fir boot loader, so I suspect I may have somehow over-written the boot loader???

Thoughts or advice?

Cheers
Douglas

Just a quick update to say that I successfully got Eclipse working.

The issue was in part a code bug of mine that I had introduced in the firmware where I am trying to extend Smoothie to support a Rotational Delta arm solution. (check out delta.firepick.org)

The documentation on this site is correct :slight_smile:

Thanks for the help to Jim and Arthur.

Cheers
Douglas

Douglas, can you give any more details about how you fixed the issues you encountered getter Eclipse to work and also attaching GDB. I am seeing exactly the same error message from GDB as you.

Cheers