Skip to content

Instantly share code, notes, and snippets.

@matthijskooijman
Last active September 25, 2015 16:16
Show Gist options
  • Save matthijskooijman/39926031af502d01046a to your computer and use it in GitHub Desktop.
Save matthijskooijman/39926031af502d01046a to your computer and use it in GitHub Desktop.
2015/09/25 18:14:55 {
2015/09/25 18:14:55 "class": "thread-group-added",
2015/09/25 18:14:55 "payload": {
2015/09/25 18:14:55 "id": "i1"
2015/09/25 18:14:55 },
2015/09/25 18:14:55 "type": "notify"
2015/09/25 18:14:55 }
2015/09/25 18:14:55 Open On-Chip Debugger 0.9.0-gd4b7679 (2014-10-03-00:26)
2015/09/25 18:14:55 Licensed under GNU GPL v2
2015/09/25 18:14:55 For bug reports, read
2015/09/25 18:14:55 http://openocd.org/doc/doxygen/bugs.html
2015/09/25 18:14:55 Info : only one transport option; autoselect 'swd'
2015/09/25 18:14:55 adapter speed: 500 kHz
2015/09/25 18:14:55 adapter_nsrst_delay: 100
2015/09/25 18:14:55 cortex_m reset_config sysresetreq
2015/09/25 18:14:55 Info : CMSIS-DAP: SWD Supported
2015/09/25 18:14:55 Info : CMSIS-DAP: Interface Initialised (SWD)
2015/09/25 18:14:55 Info : CMSIS-DAP: FW Version = 02.01.0157
2015/09/25 18:14:55 Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 1 TDO = 1 nTRST = 0 nRESET = 1
2015/09/25 18:14:55 Info : CMSIS-DAP: Interface ready
2015/09/25 18:14:55 Info : clock speed 500 kHz
2015/09/25 18:14:55 Info : SWD IDCODE 0x0bc11477
2015/09/25 18:14:55 Info : at91samd21g18.cpu: hardware has 4 breakpoints, 2 watchpoints
2015/09/25 18:14:55 Info : accepting 'gdb' connection from pipe
2015/09/25 18:14:55 Info : SAMD MCU: SAMD21G18A (256KB Flash, 32KB RAM)
2015/09/25 18:14:55 undefined debug reason 7 - target needs reset
2015/09/25 18:14:55 {
2015/09/25 18:14:55 "class": "thread-group-started",
2015/09/25 18:14:55 "payload": {
2015/09/25 18:14:55 "id": "i1",
2015/09/25 18:14:55 "pid": "42000"
2015/09/25 18:14:55 },
2015/09/25 18:14:55 "type": "notify"
2015/09/25 18:14:55 }
2015/09/25 18:14:55 {
2015/09/25 18:14:55 "class": "thread-created",
2015/09/25 18:14:55 "payload": {
2015/09/25 18:14:55 "group-id": "i1",
2015/09/25 18:14:55 "id": "1"
2015/09/25 18:14:55 },
2015/09/25 18:14:55 "type": "notify"
2015/09/25 18:14:55 }
2015/09/25 18:14:55 {
2015/09/25 18:14:55 "class": "stopped",
2015/09/25 18:14:55 "payload": {
2015/09/25 18:14:55 "frame": {
2015/09/25 18:14:55 "addr": "0x000021c0",
2015/09/25 18:14:55 "args": [
2015/09/25 18:14:55 {
2015/09/25 18:14:55 "name": "ms",
2015/09/25 18:14:55 "value": "1000"
2015/09/25 18:14:55 }
2015/09/25 18:14:55 ],
2015/09/25 18:14:55 "file": "/home/matthijs/docs/Electronics/Arduino/Sketches/hardware/arduino/samd/cores/arduino/delay.c",
2015/09/25 18:14:55 "fullname": "/home/matthijs/docs/Electronics/Arduino/ArduinoCore-samd/cores/arduino/delay.c",
2015/09/25 18:14:55 "func": "delay",
2015/09/25 18:14:55 "line": "76"
2015/09/25 18:14:55 },
2015/09/25 18:14:55 "stopped-threads": "all",
2015/09/25 18:14:55 "thread-id": "1"
2015/09/25 18:14:55 },
2015/09/25 18:14:55 "type": "exec"
2015/09/25 18:14:55 }
>>> exec-continue
2015/09/25 18:14:58 {
2015/09/25 18:14:58 "class": "running",
2015/09/25 18:14:58 "payload": {
2015/09/25 18:14:58 "thread-id": "all"
2015/09/25 18:14:58 },
2015/09/25 18:14:58 "type": "exec"
2015/09/25 18:14:58 }
>>> Sending interrupt...
2015/09/25 18:14:59 {
2015/09/25 18:14:59 "class": "stopped",
2015/09/25 18:14:59 "payload": {
2015/09/25 18:14:59 "frame": {
2015/09/25 18:14:59 "addr": "0x000021e0",
2015/09/25 18:14:59 "args": [],
2015/09/25 18:14:59 "file": "/home/matthijs/docs/Electronics/Arduino/Sketches/hardware/arduino/samd/cores/arduino/hooks.c",
2015/09/25 18:14:59 "fullname": "/home/matthijs/docs/Electronics/Arduino/ArduinoCore-samd/cores/arduino/hooks.c",
2015/09/25 18:14:59 "func": "__empty",
2015/09/25 18:14:59 "line": "30"
2015/09/25 18:14:59 },
2015/09/25 18:14:59 "reason": "signal-received",
2015/09/25 18:14:59 "signal-meaning": "Interrupt",
2015/09/25 18:14:59 "signal-name": "SIGINT",
2015/09/25 18:14:59 "stopped-threads": "all",
2015/09/25 18:14:59 "thread-id": "1"
2015/09/25 18:14:59 },
2015/09/25 18:14:59 "type": "exec"
2015/09/25 18:14:59 }
>>> stack-list-frames
2015/09/25 18:15:03 {
2015/09/25 18:15:03 "stack": [
2015/09/25 18:15:03 {
2015/09/25 18:15:03 "frame": {
2015/09/25 18:15:03 "addr": "0x000021e0",
2015/09/25 18:15:03 "file": "/home/matthijs/docs/Electronics/Arduino/Sketches/hardware/arduino/samd/cores/arduino/hooks.c",
2015/09/25 18:15:03 "fullname": "/home/matthijs/docs/Electronics/Arduino/ArduinoCore-samd/cores/arduino/hooks.c",
2015/09/25 18:15:03 "func": "__empty",
2015/09/25 18:15:03 "level": "0",
2015/09/25 18:15:03 "line": "30"
2015/09/25 18:15:03 }
2015/09/25 18:15:03 },
2015/09/25 18:15:03 {
2015/09/25 18:15:03 "frame": {
2015/09/25 18:15:03 "addr": "0x000021bc",
2015/09/25 18:15:03 "file": "/home/matthijs/docs/Electronics/Arduino/Sketches/hardware/arduino/samd/cores/arduino/delay.c",
2015/09/25 18:15:03 "fullname": "/home/matthijs/docs/Electronics/Arduino/ArduinoCore-samd/cores/arduino/delay.c",
2015/09/25 18:15:03 "func": "delay",
2015/09/25 18:15:03 "level": "1",
2015/09/25 18:15:03 "line": "75"
2015/09/25 18:15:03 }
2015/09/25 18:15:03 },
2015/09/25 18:15:03 {
2015/09/25 18:15:03 "frame": {
2015/09/25 18:15:03 "addr": "0x0000213e",
2015/09/25 18:15:03 "file": "/home/matthijs/docs/Electronics/Arduino/Arduino-1.5/build/linux/work/examples/01.Basics/Blink/Blink.ino",
2015/09/25 18:15:03 "fullname": "/home/matthijs/docs/Electronics/Arduino/Arduino-1.5/build/linux/work/examples/01.Basics/Blink/Blink.ino",
2015/09/25 18:15:03 "func": "loop",
2015/09/25 18:15:03 "level": "2",
2015/09/25 18:15:03 "line": "28"
2015/09/25 18:15:03 }
2015/09/25 18:15:03 },
2015/09/25 18:15:03 {
2015/09/25 18:15:03 "frame": {
2015/09/25 18:15:03 "addr": "0x000026ee",
2015/09/25 18:15:03 "file": "/home/matthijs/docs/Electronics/Arduino/Sketches/hardware/arduino/samd/cores/arduino/main.cpp",
2015/09/25 18:15:03 "fullname": "/home/matthijs/docs/Electronics/Arduino/ArduinoCore-samd/cores/arduino/main.cpp",
2015/09/25 18:15:03 "func": "main",
2015/09/25 18:15:03 "level": "3",
2015/09/25 18:15:03 "line": "46"
2015/09/25 18:15:03 }
2015/09/25 18:15:03 }
2015/09/25 18:15:03 ]
2015/09/25 18:15:03 }
>>> break-insert loop
2015/09/25 18:15:10 {
2015/09/25 18:15:10 "bkpt": {
2015/09/25 18:15:10 "addr": "0x0000211e",
2015/09/25 18:15:10 "disp": "keep",
2015/09/25 18:15:10 "enabled": "y",
2015/09/25 18:15:10 "file": "/home/matthijs/docs/Electronics/Arduino/Arduino-1.5/build/linux/work/examples/01.Basics/Blink/Blink.ino",
2015/09/25 18:15:10 "fullname": "/home/matthijs/docs/Electronics/Arduino/Arduino-1.5/build/linux/work/examples/01.Basics/Blink/Blink.ino",
2015/09/25 18:15:10 "func": "loop()",
2015/09/25 18:15:10 "line": "26",
2015/09/25 18:15:10 "number": "1",
2015/09/25 18:15:10 "original-location": "loop",
2015/09/25 18:15:10 "thread-groups": [
2015/09/25 18:15:10 "i1"
2015/09/25 18:15:10 ],
2015/09/25 18:15:10 "times": "0",
2015/09/25 18:15:10 "type": "breakpoint"
2015/09/25 18:15:10 }
2015/09/25 18:15:10 }
>>> exec-continue
2015/09/25 18:15:15 Note: automatically using hardware breakpoints for read-only addresses.
2015/09/25 18:15:15 {
2015/09/25 18:15:15 "class": "running",
2015/09/25 18:15:15 "payload": {
2015/09/25 18:15:15 "thread-id": "all"
2015/09/25 18:15:15 },
2015/09/25 18:15:15 "type": "exec"
2015/09/25 18:15:15 }
2015/09/25 18:15:16 {
2015/09/25 18:15:16 "class": "breakpoint-modified",
2015/09/25 18:15:16 "payload": {
2015/09/25 18:15:16 "bkpt": {
2015/09/25 18:15:16 "addr": "0x0000211e",
2015/09/25 18:15:16 "disp": "keep",
2015/09/25 18:15:16 "enabled": "y",
2015/09/25 18:15:16 "file": "/home/matthijs/docs/Electronics/Arduino/Arduino-1.5/build/linux/work/examples/01.Basics/Blink/Blink.ino",
2015/09/25 18:15:16 "fullname": "/home/matthijs/docs/Electronics/Arduino/Arduino-1.5/build/linux/work/examples/01.Basics/Blink/Blink.ino",
2015/09/25 18:15:16 "func": "loop()",
2015/09/25 18:15:16 "line": "26",
2015/09/25 18:15:16 "number": "1",
2015/09/25 18:15:16 "original-location": "loop",
2015/09/25 18:15:16 "thread-groups": [
2015/09/25 18:15:16 "i1"
2015/09/25 18:15:16 ],
2015/09/25 18:15:16 "times": "1",
2015/09/25 18:15:16 "type": "breakpoint"
2015/09/25 18:15:16 }
2015/09/25 18:15:16 },
2015/09/25 18:15:16 "type": "notify"
2015/09/25 18:15:16 }
2015/09/25 18:15:16 {
2015/09/25 18:15:16 "class": "stopped",
2015/09/25 18:15:16 "payload": {
2015/09/25 18:15:16 "bkptno": "1",
2015/09/25 18:15:16 "disp": "keep",
2015/09/25 18:15:16 "frame": {
2015/09/25 18:15:16 "addr": "0x0000211e",
2015/09/25 18:15:16 "args": [],
2015/09/25 18:15:16 "file": "/home/matthijs/docs/Electronics/Arduino/Arduino-1.5/build/linux/work/examples/01.Basics/Blink/Blink.ino",
2015/09/25 18:15:16 "fullname": "/home/matthijs/docs/Electronics/Arduino/Arduino-1.5/build/linux/work/examples/01.Basics/Blink/Blink.ino",
2015/09/25 18:15:16 "func": "loop",
2015/09/25 18:15:16 "line": "26"
2015/09/25 18:15:16 },
2015/09/25 18:15:16 "reason": "breakpoint-hit",
2015/09/25 18:15:16 "stopped-threads": "all",
2015/09/25 18:15:16 "thread-id": "1"
2015/09/25 18:15:16 },
2015/09/25 18:15:16 "type": "exec"
2015/09/25 18:15:16 }
>>> exec-continue
2015/09/25 18:15:24 {
2015/09/25 18:15:24 "class": "running",
2015/09/25 18:15:24 "payload": {
2015/09/25 18:15:24 "thread-id": "all"
2015/09/25 18:15:24 },
2015/09/25 18:15:24 "type": "exec"
2015/09/25 18:15:24 }
2015/09/25 18:15:26 {
2015/09/25 18:15:26 "class": "breakpoint-modified",
2015/09/25 18:15:26 "payload": {
2015/09/25 18:15:26 "bkpt": {
2015/09/25 18:15:26 "addr": "0x0000211e",
2015/09/25 18:15:26 "disp": "keep",
2015/09/25 18:15:26 "enabled": "y",
2015/09/25 18:15:26 "file": "/home/matthijs/docs/Electronics/Arduino/Arduino-1.5/build/linux/work/examples/01.Basics/Blink/Blink.ino",
2015/09/25 18:15:26 "fullname": "/home/matthijs/docs/Electronics/Arduino/Arduino-1.5/build/linux/work/examples/01.Basics/Blink/Blink.ino",
2015/09/25 18:15:26 "func": "loop()",
2015/09/25 18:15:26 "line": "26",
2015/09/25 18:15:26 "number": "1",
2015/09/25 18:15:26 "original-location": "loop",
2015/09/25 18:15:26 "thread-groups": [
2015/09/25 18:15:26 "i1"
2015/09/25 18:15:26 ],
2015/09/25 18:15:26 "times": "2",
2015/09/25 18:15:26 "type": "breakpoint"
2015/09/25 18:15:26 }
2015/09/25 18:15:26 },
2015/09/25 18:15:26 "type": "notify"
2015/09/25 18:15:26 }
2015/09/25 18:15:26 {
2015/09/25 18:15:26 "class": "stopped",
2015/09/25 18:15:26 "payload": {
2015/09/25 18:15:26 "bkptno": "1",
2015/09/25 18:15:26 "disp": "keep",
2015/09/25 18:15:26 "frame": {
2015/09/25 18:15:26 "addr": "0x0000211e",
2015/09/25 18:15:26 "args": [],
2015/09/25 18:15:26 "file": "/home/matthijs/docs/Electronics/Arduino/Arduino-1.5/build/linux/work/examples/01.Basics/Blink/Blink.ino",
2015/09/25 18:15:26 "fullname": "/home/matthijs/docs/Electronics/Arduino/Arduino-1.5/build/linux/work/examples/01.Basics/Blink/Blink.ino",
2015/09/25 18:15:26 "func": "loop",
2015/09/25 18:15:26 "line": "26"
2015/09/25 18:15:26 },
2015/09/25 18:15:26 "reason": "breakpoint-hit",
2015/09/25 18:15:26 "stopped-threads": "all",
2015/09/25 18:15:26 "thread-id": "1"
2015/09/25 18:15:26 },
2015/09/25 18:15:26 "type": "exec"
2015/09/25 18:15:26 }
2015/09/25 18:15:27 EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment