Advertisement
JetForMe

OpenOCD Log

Jan 10th, 2023
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.67 KB | None | 0 0
  1. 25037 22:19: ~/ $ openocd -d3 -f interface/cmsis-dap.cfg -f target/at91samdXX.cfg -c init
  2. Open On-Chip Debugger 0.11.0
  3. Licensed under GNU GPL v2
  4. For bug reports, read
  5. http://openocd.org/doc/doxygen/bugs.html
  6. User : 13 1 options.c:63 configuration_output_handler(): debug_level: 3
  7. User : 14 1 options.c:63 configuration_output_handler():
  8. Debug: 15 1 options.c:244 add_default_dirs(): bindir=/opt/homebrew/Cellar/open-ocd/0.11.0/bin
  9. Debug: 16 1 options.c:245 add_default_dirs(): pkgdatadir=/opt/homebrew/Cellar/open-ocd/0.11.0/share/openocd
  10. Debug: 17 1 options.c:246 add_default_dirs(): exepath=/opt/homebrew/Cellar/open-ocd/0.11.0/bin
  11. Debug: 18 1 options.c:247 add_default_dirs(): bin2data=../share/openocd
  12. Debug: 19 1 configuration.c:42 add_script_search_dir(): adding /Users/rmann/Library/Preferences/org.openocd
  13. Debug: 20 1 configuration.c:42 add_script_search_dir(): adding /Users/rmann/.config/openocd
  14. Debug: 21 1 configuration.c:42 add_script_search_dir(): adding /Users/rmann/.openocd
  15. Debug: 22 1 configuration.c:42 add_script_search_dir(): adding /opt/homebrew/Cellar/open-ocd/0.11.0/bin/../share/openocd/site
  16. Debug: 23 1 configuration.c:42 add_script_search_dir(): adding /opt/homebrew/Cellar/open-ocd/0.11.0/bin/../share/openocd/scripts
  17. Debug: 24 2 configuration.c:97 find_file(): found /opt/homebrew/Cellar/open-ocd/0.11.0/bin/../share/openocd/scripts/interface/cmsis-dap.cfg
  18. Debug: 25 2 command.c:146 script_debug(): command - adapter driver cmsis-dap
  19. Debug: 27 2 configuration.c:97 find_file(): found /opt/homebrew/Cellar/open-ocd/0.11.0/bin/../share/openocd/scripts/target/at91samdXX.cfg
  20. Debug: 28 2 configuration.c:97 find_file(): found /opt/homebrew/Cellar/open-ocd/0.11.0/bin/../share/openocd/scripts/target/swj-dp.tcl
  21. Debug: 29 2 command.c:146 script_debug(): command - transport select
  22. Info : 30 2 transport.c:276 jim_transport_select(): auto-selecting first available session transport "swd". To override use 'transport select <transport>'.
  23. Debug: 31 2 command.c:146 script_debug(): command - transport select
  24. Debug: 32 2 command.c:146 script_debug(): command - transport select
  25. Debug: 33 2 command.c:146 script_debug(): command - swd newdap at91samd cpu -irlen 4 -expected-id 0x4ba00477
  26. Debug: 34 2 tcl.c:572 jim_newtap_cmd(): Creating New Tap, Chip: at91samd, Tap: cpu, Dotted: at91samd.cpu, 4 params
  27. Debug: 35 2 core.c:1488 jtag_tap_init(): Created Tap: at91samd.cpu @ abs position 0, irlen 0, capture: 0x0 mask: 0x0
  28. Debug: 36 2 command.c:146 script_debug(): command - dap create at91samd.dap -chain-position at91samd.cpu
  29. Debug: 37 2 command.c:146 script_debug(): command - target create at91samd.cpu cortex_m -endian little -dap at91samd.dap
  30. Debug: 38 2 command.c:376 register_command(): command 'rtt' is already registered in '<global>' context
  31. Debug: 39 2 command.c:146 script_debug(): command - at91samd.cpu configure -work-area-phys 0x20000000 -work-area-size 0x800 -work-area-backup 0
  32. Debug: 40 2 target.c:2172 target_free_all_working_areas_restore(): freeing all working areas
  33. Debug: 41 2 target.c:2172 target_free_all_working_areas_restore(): freeing all working areas
  34. Debug: 42 2 target.c:2172 target_free_all_working_areas_restore(): freeing all working areas
  35. Debug: 43 2 command.c:146 script_debug(): command - at91samd.cpu configure -event reset-deassert-post
  36. at91samd dsu_reset_deassert
  37.  
  38. Debug: 44 2 command.c:146 script_debug(): command - reset_config srst_gates_jtag
  39. Debug: 46 2 command.c:146 script_debug(): command - adapter speed 400
  40. Debug: 48 2 core.c:1822 jtag_config_khz(): handle jtag khz
  41. Debug: 49 2 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value
  42. Debug: 50 2 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value
  43. Debug: 51 3 command.c:146 script_debug(): command - transport select
  44. Debug: 52 3 command.c:146 script_debug(): command - cortex_m reset_config sysresetreq
  45. Debug: 54 3 command.c:146 script_debug(): command - flash bank at91samd.flash at91samd 0x00000000 0 1 1 at91samd.cpu
  46. Debug: 56 3 tcl.c:1319 handle_flash_bank_command(): 'at91samd' driver usage field missing
  47. Debug: 57 3 command.c:146 script_debug(): command - init
  48. Debug: 59 3 command.c:146 script_debug(): command - target init
  49. Debug: 61 3 command.c:146 script_debug(): command - target names
  50. Debug: 62 3 command.c:146 script_debug(): command - at91samd.cpu cget -event gdb-flash-erase-start
  51. Debug: 63 3 command.c:146 script_debug(): command - at91samd.cpu configure -event gdb-flash-erase-start reset init
  52. Debug: 64 3 command.c:146 script_debug(): command - at91samd.cpu cget -event gdb-flash-write-end
  53. Debug: 65 3 command.c:146 script_debug(): command - at91samd.cpu configure -event gdb-flash-write-end reset halt
  54. Debug: 66 3 command.c:146 script_debug(): command - at91samd.cpu cget -event gdb-attach
  55. Debug: 67 3 command.c:146 script_debug(): command - at91samd.cpu configure -event gdb-attach halt 1000
  56. Debug: 68 3 target.c:1639 handle_target_init_command(): Initializing targets...
  57. Debug: 69 3 semihosting_common.c:99 semihosting_common_init():
  58. Debug: 70 1072 cmsis_dap_usb_bulk.c:133 cmsis_dap_usb_open(): could not read serial number for device 0x239a:0x800b: Operation timed out
  59. Warn : 71 2189 cmsis_dap_usb_bulk.c:154 cmsis_dap_usb_open(): could not read product string for device 0x239a:0x800b: Operation timed out
  60. Debug: 72 2189 cmsis_dap_usb_bulk.c:177 cmsis_dap_usb_open(): enumerating interfaces of 0x239a:0x800b
  61. Warn : 73 2191 cmsis_dap_usb_bulk.c:154 cmsis_dap_usb_open(): could not read product string for device 0x2222:0x0043: Pipe error
  62. Debug: 74 2191 cmsis_dap_usb_bulk.c:177 cmsis_dap_usb_open(): enumerating interfaces of 0x2222:0x0043
  63. Debug: 75 2192 cmsis_dap_usb_bulk.c:177 cmsis_dap_usb_open(): enumerating interfaces of 0x05ac:0x0304
  64. Debug: 76 2192 cmsis_dap_usb_bulk.c:177 cmsis_dap_usb_open(): enumerating interfaces of 0x043e:0x9a70
  65. Debug: 77 2194 cmsis_dap_usb_bulk.c:177 cmsis_dap_usb_open(): enumerating interfaces of 0x043e:0x9a66
  66. Debug: 78 2195 cmsis_dap_usb_bulk.c:177 cmsis_dap_usb_open(): enumerating interfaces of 0x043e:0x9a68
  67. Debug: 79 2195 cmsis_dap_usb_bulk.c:177 cmsis_dap_usb_open(): enumerating interfaces of 0x05e3:0x0608
  68. Debug: 80 2196 cmsis_dap_usb_bulk.c:177 cmsis_dap_usb_open(): enumerating interfaces of 0x05ac:0x1392
  69. Debug: 81 2196 cmsis_dap_usb_bulk.c:177 cmsis_dap_usb_open(): enumerating interfaces of 0x043e:0x9a71
  70. Debug: 82 2197 cmsis_dap_usb_bulk.c:177 cmsis_dap_usb_open(): enumerating interfaces of 0x043e:0x9a73
  71. Debug: 83 2197 cmsis_dap_usb_bulk.c:177 cmsis_dap_usb_open(): enumerating interfaces of 0x043e:0x9a60
  72. Debug: 84 2197 cmsis_dap_usb_bulk.c:177 cmsis_dap_usb_open(): enumerating interfaces of 0x043e:0x9a61
  73. Debug: 85 2199 cmsis_dap_usb_bulk.c:177 cmsis_dap_usb_open(): enumerating interfaces of 0x256f:0xc635
  74. Debug: 86 2199 cmsis_dap_usb_bulk.c:177 cmsis_dap_usb_open(): enumerating interfaces of 0x1e91:0x4001
  75. Debug: 87 2200 cmsis_dap_usb_bulk.c:177 cmsis_dap_usb_open(): enumerating interfaces of 0xa466:0x0a53
  76. Debug: 88 2200 cmsis_dap_usb_bulk.c:157 cmsis_dap_usb_open(): found product string of 0x0d28:0x0204 'DAPLink CMSIS-DAP'
  77. Debug: 89 2200 cmsis_dap_usb_bulk.c:177 cmsis_dap_usb_open(): enumerating interfaces of 0x0d28:0x0204
  78. Debug: 90 2201 cmsis_dap_usb_bulk.c:244 cmsis_dap_usb_open(): skipping interface 0, endpoint[0] is not bulk out
  79. Debug: 91 2201 cmsis_dap_usb_bulk.c:237 cmsis_dap_usb_open(): skipping interface 1, has only 1 endpoints
  80. Debug: 92 2201 cmsis_dap_usb_bulk.c:285 cmsis_dap_usb_open(): skipping interface 2, class 10 subclass 0 protocol 0
  81. Debug: 93 2201 cmsis_dap_usb_bulk.c:224 cmsis_dap_usb_open(): found interface 3 string 'CMSIS-DAP v1'
  82. Debug: 94 2201 cmsis_dap_usb_bulk.c:244 cmsis_dap_usb_open(): skipping interface 3, endpoint[0] is not bulk out
  83. Debug: 95 2202 cmsis_dap_usb_bulk.c:224 cmsis_dap_usb_open(): found interface 4 string 'WebUSB: CMSIS-DAP'
  84. Debug: 96 2202 cmsis_dap_usb_bulk.c:237 cmsis_dap_usb_open(): skipping interface 4, has only 0 endpoints
  85. Info : 97 2220 cmsis_dap.c:788 cmsis_dap_get_caps_info(): CMSIS-DAP: SWD Supported
  86. Info : 98 2222 cmsis_dap.c:768 cmsis_dap_get_version_info(): CMSIS-DAP: FW Version = 0254.2
  87. Info : 99 2224 cmsis_dap.c:753 cmsis_dap_get_serial_info(): CMSIS-DAP: Serial# = 310436023538a0ab0533363639323946a5a5a5a597969908
  88. Info : 100 2226 cmsis_dap.c:881 cmsis_dap_swd_open(): CMSIS-DAP: Interface Initialised (SWD)
  89. Debug: 101 2228 cmsis_dap.c:953 cmsis_dap_init(): CMSIS-DAP: Packet Size = 64
  90. Debug: 102 2230 cmsis_dap.c:966 cmsis_dap_init(): CMSIS-DAP: Packet Count = 4
  91. Debug: 103 2230 cmsis_dap.c:969 cmsis_dap_init(): Allocating FIFO for 3 pending packets
  92. Info : 104 2232 cmsis_dap.c:809 cmsis_dap_get_status(): SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
  93. Info : 105 2242 cmsis_dap.c:1023 cmsis_dap_init(): CMSIS-DAP: Interface ready
  94. Debug: 106 2242 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value
  95. Debug: 107 2242 core.c:1789 adapter_khz_to_speed(): have interface set up
  96. Debug: 108 2244 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value
  97. Debug: 109 2244 core.c:1789 adapter_khz_to_speed(): have interface set up
  98. Info : 110 2244 core.c:1565 adapter_init(): clock speed 400 kHz
  99. Debug: 111 2244 openocd.c:143 handle_init_command(): Debug Adapter init complete
  100. Debug: 112 2244 command.c:146 script_debug(): command - transport init
  101. Debug: 113 2244 log.c:428 gdb_timeout_warning(): keep_alive() was not invoked in the 1000 ms timelimit (2244 ms). This may cause trouble with GDB connections.
  102. Debug: 116 2244 transport.c:229 handle_transport_init(): handle_transport_init
  103. Debug: 117 2244 command.c:146 script_debug(): command - dap init
  104. Debug: 119 2244 arm_dap.c:106 dap_init_all(): Initializing all DAPs ...
  105. Debug: 120 2248 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
  106. Info : 121 2254 adi_v5_swd.c:148 swd_connect(): SWD DPIDR 0x0bc11477
  107. Debug: 122 2256 arm_adi_v5.c:653 dap_dp_init(): at91samd.dap
  108. Debug: 123 2256 arm_adi_v5.c:685 dap_dp_init(): DAP: wait CDBGPWRUPACK
  109. Debug: 124 2256 arm_adi_v5.h:507 dap_dp_poll_register(): DAP: poll 4, mask 0x20000000, value 0x20000000
  110. Debug: 125 2258 arm_adi_v5.c:693 dap_dp_init(): DAP: wait CSYSPWRUPACK
  111. Debug: 126 2258 arm_adi_v5.h:507 dap_dp_poll_register(): DAP: poll 4, mask 0x80000000, value 0x80000000
  112. Debug: 127 2260 cmsis_dap.c:587 cmsis_dap_swd_write_from_queue(): refusing to enable sticky overrun detection
  113. Debug: 128 2262 openocd.c:160 handle_init_command(): Examining targets...
  114. Debug: 129 2262 target.c:1827 target_call_event_callbacks(): target event 19 (examine-start) for core at91samd.cpu
  115. Debug: 130 2264 arm_adi_v5.c:904 dap_find_ap(): Found AHB3-AP at AP index: 0 (IDR=0x04770031)
  116. Debug: 131 2267 arm_adi_v5.c:793 mem_ap_init(): MEM_AP Packed Transfers: disabled
  117. Debug: 132 2267 arm_adi_v5.c:804 mem_ap_init(): MEM_AP CFG: large data 0, long address 0, big-endian 0
  118. Debug: 133 2269 target.c:2589 target_read_u32(): address: 0xe000ed00, value: 0x410cc601
  119. Debug: 134 2269 cortex_m.c:2001 cortex_m_examine(): Cortex-M0 r0p1 processor detected
  120. Debug: 135 2269 cortex_m.c:2012 cortex_m_examine(): cpuid: 0x410cc601
  121. Debug: 136 2271 target.c:2589 target_read_u32(): address: 0xe000edf0, value: 0x00030003
  122. Debug: 137 2271 target.c:2677 target_write_u32(): address: 0xe000edfc, value: 0x01000000
  123. Debug: 138 2275 target.c:2589 target_read_u32(): address: 0xe0002000, value: 0x00000040
  124. Debug: 139 2275 target.c:2677 target_write_u32(): address: 0xe0002008, value: 0x00000000
  125. Debug: 140 2277 target.c:2677 target_write_u32(): address: 0xe000200c, value: 0x00000000
  126. Debug: 141 2279 target.c:2677 target_write_u32(): address: 0xe0002010, value: 0x00000000
  127. Debug: 142 2281 target.c:2677 target_write_u32(): address: 0xe0002014, value: 0x00000000
  128. Debug: 143 2283 cortex_m.c:2116 cortex_m_examine(): FPB fpcr 0x40, numcode 4, numlit 0
  129. Debug: 144 2285 target.c:2589 target_read_u32(): address: 0xe0001000, value: 0x20000000
  130. Debug: 145 2285 cortex_m.c:1830 cortex_m_dwt_setup(): DWT_CTRL: 0x20000000
  131. Debug: 146 2287 target.c:2589 target_read_u32(): address: 0xe0001fbc, value: 0x00000000
  132. Debug: 147 2287 cortex_m.c:1837 cortex_m_dwt_setup(): DWT_DEVARCH: 0x0
  133. Debug: 148 2287 target.c:2677 target_write_u32(): address: 0xe0001028, value: 0x00000000
  134. Debug: 149 2289 target.c:2677 target_write_u32(): address: 0xe0001038, value: 0x00000000
  135. Debug: 150 2291 cortex_m.c:1886 cortex_m_dwt_setup(): DWT dwtcr 0x20000000, comp 2, watch/trigger
  136. Info : 151 2291 cortex_m.c:2126 cortex_m_examine(): at91samd.cpu: hardware has 4 breakpoints, 2 watchpoints
  137. Debug: 152 2291 target.c:1827 target_call_event_callbacks(): target event 21 (examine-end) for core at91samd.cpu
  138. Debug: 153 2291 command.c:146 script_debug(): command - flash init
  139. Debug: 155 2293 tcl.c:1385 handle_flash_init_command(): Initializing flash devices...
  140. Debug: 156 2293 command.c:146 script_debug(): command - nand init
  141. Debug: 158 2295 tcl.c:498 handle_nand_init_command(): Initializing NAND devices...
  142. Debug: 159 2295 command.c:146 script_debug(): command - pld init
  143. Debug: 161 2297 pld.c:206 handle_pld_init_command(): Initializing PLDs...
  144. Info : 162 2297 gdb_server.c:3503 gdb_target_start(): starting gdb server for at91samd.cpu on 3333
  145. Info : 163 2297 server.c:312 add_service(): Listening on port 3333 for gdb connections
  146. Info : 164 2297 server.c:312 add_service(): Listening on port 6666 for tcl connections
  147. Info : 165 2297 server.c:312 add_service(): Listening on port 4444 for telnet connections
  148. Debug: 166 2297 command.c:146 script_debug(): command - init
  149.  
  150.  
  151. (in another window:) 25027 22:19: ~/ $ lldb /var/folders/16/jfb809_s2fz01ql7k494f6pc0000gn/T/arduino_build_41974/Blink.ino.elf
  152. (lldb) target create "/var/folders/16/jfb809_s2fz01ql7k494f6pc0000gn/T/arduino_build_41974/Blink.ino.elf"
  153. Current executable set to '/var/folders/16/jfb809_s2fz01ql7k494f6pc0000gn/T/arduino_build_41974/Blink.ino.elf' (arm).
  154. (lldb) gdb-remote 3333
  155. Process 1 stopped
  156.  
  157.  
  158. Info : 168 16567 server.c:100 add_connection(): accepting 'gdb' connection on tcp/3333
  159. Debug: 169 16567 breakpoints.c:384 breakpoint_clear_target_internal(): Delete all breakpoints for target: at91samd.cpu
  160. Debug: 170 16567 breakpoints.c:524 watchpoint_clear_target(): Delete all watchpoints for target: at91samd.cpu
  161. Debug: 171 16567 target.c:1827 target_call_event_callbacks(): target event 22 (gdb-attach) for core at91samd.cpu
  162. Debug: 172 16567 target.c:4779 target_handle_event(): target(0): at91samd.cpu (cortex_m) event: 22 (gdb-attach) action: halt 1000
  163. Debug: 173 16567 command.c:146 script_debug(): command - halt 1000
  164. Debug: 175 16569 target.c:3260 handle_halt_command(): -
  165. Debug: 176 16569 cortex_m.c:682 cortex_m_halt(): target->state: halted
  166. Debug: 177 16569 cortex_m.c:685 cortex_m_halt(): target was already halted
  167. Debug: 178 16573 target.c:2589 target_read_u32(): address: 0x41002018, value: 0x10010305
  168. Debug: 179 16575 target.c:2589 target_read_u32(): address: 0x41004008, value: 0x00031000
  169. Debug: 180 16577 target.c:2613 target_read_u16(): address: 0x41004020, value: 0xffff
  170. Info : 181 16577 at91samd.c:501 samd_probe(): SAMD MCU: SAMD21G18A (256KB Flash, 32KB RAM)
  171. Debug: 182 16577 gdb_server.c:1015 gdb_new_connection(): New GDB Connection: 1, Target at91samd.cpu, state: halted
  172. Debug: 183 16577 gdb_server.c:3272 gdb_input_inner(): received packet: 'QStartNoAckMode'
  173. Debug: 184 16577 gdb_server.c:644 gdb_get_packet_inner(): Received first acknowledgment after entering noack mode. Ignoring it.
  174. Debug: 185 16577 gdb_server.c:3272 gdb_input_inner(): received packet: 'qSupported:xmlRegisters=i386,arm,mips,arc;multiprocess+;fork-events+;vfork-events+'
  175. Debug: 186 16577 gdb_server.c:3272 gdb_input_inner(): received packet: 'QThreadSuffixSupported'
  176. Debug: 187 16577 gdb_server.c:3272 gdb_input_inner(): received packet: 'QListThreadsInStopReply'
  177. Debug: 188 16578 gdb_server.c:3272 gdb_input_inner(): received packet: 'qHostInfo'
  178. Debug: 189 16578 gdb_server.c:3272 gdb_input_inner(): received packet: 'vCont?'
  179. Debug: 190 16578 gdb_server.c:3272 gdb_input_inner(): received packet: 'qVAttachOrWaitSupported'
  180. Debug: 191 16578 gdb_server.c:3272 gdb_input_inner(): received packet: 'QEnableErrorStrings'
  181. Debug: 192 16578 gdb_server.c:3272 gdb_input_inner(): received packet: 'qProcessInfo'
  182. Debug: 193 16578 gdb_server.c:3272 gdb_input_inner(): received packet: 'qC'
  183. Debug: 194 16578 gdb_server.c:3272 gdb_input_inner(): received packet: 'qfThreadInfo'
  184. Debug: 195 16578 gdb_server.c:3272 gdb_input_inner(): received packet: '?'
  185. User : 196 16578 gdb_server.c:165 gdb_last_signal(): undefined debug reason 8 - target needs reset
  186. Warn : 197 16578 gdb_server.c:3319 gdb_input_inner(): Prefer GDB command "target extended-remote 3333" instead of "target remote 3333"
  187. Debug: 198 16579 gdb_server.c:3272 gdb_input_inner(): received packet: 'qProcessInfo'
  188. Debug: 199 16579 gdb_server.c:3272 gdb_input_inner(): received packet: 'qProcessInfo'
  189. Debug: 200 16579 gdb_server.c:3272 gdb_input_inner(): received packet: 'qXfer:features:read:target.xml:0,3fff'
  190. Debug: 201 16579 gdb_server.c:3272 gdb_input_inner(): received packet: 'qfThreadInfo'
  191. Debug: 202 16579 gdb_server.c:3272 gdb_input_inner(): received packet: 'Hg1'
  192. Debug: 203 16580 gdb_server.c:3272 gdb_input_inner(): received packet: 'p0'
  193. Debug: 204 16582 armv7m.c:341 armv7m_read_core_reg(): read r0 value 0x000000e1
  194. Debug: 205 16582 gdb_server.c:3272 gdb_input_inner(): received packet: 'qProcessInfo'
  195. Debug: 206 16582 gdb_server.c:3272 gdb_input_inner(): received packet: 'qOffsets'
  196. Debug: 207 16582 gdb_server.c:3272 gdb_input_inner(): received packet: 'qSymbol::'
  197. Debug: 208 16582 gdb_server.c:3272 gdb_input_inner(): received packet: 'qStructuredDataPlugins'
  198. Debug: 209 16583 gdb_server.c:3272 gdb_input_inner(): received packet: 'qfThreadInfo'
  199. Debug: 210 16583 gdb_server.c:3272 gdb_input_inner(): received packet: 'qfThreadInfo'
  200. Debug: 211 16583 gdb_server.c:3272 gdb_input_inner(): received packet: 'pf'
  201. Debug: 212 16585 armv7m.c:341 armv7m_read_core_reg(): read pc value 0x000022e4
  202. Debug: 213 16586 gdb_server.c:3272 gdb_input_inner(): received packet: 'x0,0'
  203. Debug: 214 16586 gdb_server.c:3447 gdb_input_inner(): ignoring 0x78 packet
  204. Debug: 215 16586 gdb_server.c:3272 gdb_input_inner(): received packet: 'm2200,200'
  205. Debug: 216 16586 gdb_server.c:1463 gdb_read_memory_packet(): addr: 0x0000000000002200, len: 0x00000200
  206. Debug: 217 16586 target.c:2442 target_read_buffer(): reading buffer of 512 byte at 0x00002200
  207. Debug: 218 16609 gdb_server.c:3272 gdb_input_inner(): received packet: 'pd'
  208. Debug: 219 16611 armv7m.c:341 armv7m_read_core_reg(): read sp value 0x20007fd8
  209. Debug: 220 16611 gdb_server.c:3272 gdb_input_inner(): received packet: 'm20007e00,200'
  210. Debug: 221 16611 gdb_server.c:1463 gdb_read_memory_packet(): addr: 0x0000000020007e00, len: 0x00000200
  211. Debug: 222 16611 target.c:2442 target_read_buffer(): reading buffer of 512 byte at 0x20007e00
  212. Debug: 223 16633 gdb_server.c:3272 gdb_input_inner(): received packet: 'jThreadsInfo'
  213.  
  214.  
  215. (in another window:) (lldb) c
  216. Process 1 resuming
  217.  
  218.  
  219.  
  220. Debug: 276 43058 gdb_server.c:3272 gdb_input_inner(): received packet: 'c'
  221. Debug: 277 43058 target.c:1827 target_call_event_callbacks(): target event 7 (gdb-start) for core at91samd.cpu
  222. Debug: 278 43058 gdb_server.c:1630 gdb_step_continue_packet(): -
  223. Debug: 279 43058 gdb_server.c:1639 gdb_step_continue_packet(): continue
  224. Debug: 280 43058 target.c:1827 target_call_event_callbacks(): target event 3 (resume-start) for core at91samd.cpu
  225. Debug: 281 43058 target.c:2172 target_free_all_working_areas_restore(): freeing all working areas
  226. Debug: 282 43058 armv7m.c:160 armv7m_restore_context():
  227. Debug: 283 43061 target.c:1827 target_call_event_callbacks(): target event 2 (resumed) for core at91samd.cpu
  228. Debug: 284 43061 cortex_m.c:886 cortex_m_resume(): target resumed at 0x22a4
  229. Debug: 285 43061 target.c:1827 target_call_event_callbacks(): target event 4 (resume-end) for core at91samd.cpu
  230.  
  231.  
  232. (in another window:) <ctrl-C>
  233. Process 1 stopped
  234. * thread #1, stop reason = signal SIGINT
  235. frame #0: 0x00002268 Blink.ino.elf`micros at delay.c:40:1
  236. 37 // When it appears that millis counter and pending is stable and SysTick hasn't rolled over, use these
  237. 38 // values to calculate micros. If there is a pending SysTick, add one to the millis counter in the calculation.
  238. 39 unsigned long micros( void )
  239. -> 40 {
  240. 41 uint32_t ticks, ticks2;
  241. 42 uint32_t pend, pend2;
  242. 43 uint32_t count, count2;
  243.  
  244.  
  245. Debug: 286 46916 gdb_server.c:3272 gdb_input_inner(): received packet: ''
  246. Debug: 287 46916 cortex_m.c:682 cortex_m_halt(): target->state: running
  247. Debug: 288 46921 cortex_m.c:491 cortex_m_debug_entry():
  248. Debug: 289 46927 cortex_m.c:235 cortex_m_clear_halt(): NVIC_DFSR 0x1
  249. Debug: 290 46931 armv7m.c:341 armv7m_read_core_reg(): read r0 value 0x00000122
  250. Debug: 291 46933 armv7m.c:341 armv7m_read_core_reg(): read r1 value 0x00000120
  251. Debug: 292 46935 armv7m.c:341 armv7m_read_core_reg(): read r2 value 0x00000001
  252. Debug: 293 46937 armv7m.c:341 armv7m_read_core_reg(): read r3 value 0x00000001
  253. Debug: 294 46939 armv7m.c:341 armv7m_read_core_reg(): read r4 value 0x00000142
  254. Debug: 295 46941 armv7m.c:341 armv7m_read_core_reg(): read r5 value 0x0993c898
  255. Debug: 296 46943 armv7m.c:341 armv7m_read_core_reg(): read r6 value 0x000003e8
  256. Debug: 297 46945 armv7m.c:341 armv7m_read_core_reg(): read r7 value 0x00000000
  257. Debug: 298 46947 armv7m.c:341 armv7m_read_core_reg(): read r8 value 0xcbfd7fbb
  258. Debug: 299 46949 armv7m.c:341 armv7m_read_core_reg(): read r9 value 0xfb7efbff
  259. Debug: 300 46951 armv7m.c:341 armv7m_read_core_reg(): read r10 value 0x1ee57f3b
  260. Debug: 301 46953 armv7m.c:341 armv7m_read_core_reg(): read r11 value 0xff4ff1f3
  261. Debug: 302 46956 armv7m.c:341 armv7m_read_core_reg(): read r12 value 0x20000730
  262. Debug: 303 46958 armv7m.c:341 armv7m_read_core_reg(): read sp value 0x20007fd8
  263. Debug: 304 46960 armv7m.c:341 armv7m_read_core_reg(): read lr value 0x000022e1
  264. Debug: 305 46962 armv7m.c:341 armv7m_read_core_reg(): read pc value 0x00002268
  265. Debug: 306 46964 armv7m.c:341 armv7m_read_core_reg(): read xPSR value 0x81000000
  266. Debug: 307 46966 armv7m.c:341 armv7m_read_core_reg(): read msp value 0x20007fd8
  267. Debug: 308 46968 armv7m.c:341 armv7m_read_core_reg(): read psp value 0x6ef7dd64
  268. Debug: 309 46970 armv7m.c:341 armv7m_read_core_reg(): read pmsk_bpri_fltmsk_ctrl value 0x00000000
  269. Debug: 310 46970 cortex_m.c:562 cortex_m_debug_entry(): entered debug state in core mode: Thread at PC 0x2268, cpu in Non-Secure state, target->state: halted
  270. Debug: 311 46970 target.c:1827 target_call_event_callbacks(): target event 0 (gdb-halt) for core at91samd.cpu
  271. Debug: 312 46970 target.c:1827 target_call_event_callbacks(): target event 1 (halted) for core at91samd.cpu
  272. Debug: 313 46970 target.c:1827 target_call_event_callbacks(): target event 8 (gdb-end) for core at91samd.cpu
  273. Debug: 314 47077 gdb_server.c:3272 gdb_input_inner(): received packet: 'qfThreadInfo'
  274. Debug: 315 47077 gdb_server.c:3272 gdb_input_inner(): received packet: 'qfThreadInfo'
  275. Debug: 316 47077 gdb_server.c:3272 gdb_input_inner(): received packet: 'Hg1'
  276. Debug: 317 47077 gdb_server.c:3272 gdb_input_inner(): received packet: 'pf'
  277. Debug: 318 47077 gdb_server.c:3272 gdb_input_inner(): received packet: 'pd'
  278. Debug: 319 47078 gdb_server.c:3272 gdb_input_inner(): received packet: 'pe'
  279. Debug: 320 47078 gdb_server.c:3272 gdb_input_inner(): received packet: 'm20007e00,200'
  280. Debug: 321 47078 gdb_server.c:1463 gdb_read_memory_packet(): addr: 0x0000000020007e00, len: 0x00000200
  281. Debug: 322 47078 target.c:2442 target_read_buffer(): reading buffer of 512 byte at 0x20007e00
  282. Debug: 323 47100 gdb_server.c:3272 gdb_input_inner(): received packet: 'jThreadsInfo'
  283. Debug: 324 47100 gdb_server.c:3272 gdb_input_inner(): received packet: 'jThreadsInfo'
  284.  
  285. (in another window:) (lldb) bt
  286. * thread #1, stop reason = signal SIGINT
  287. * frame #0: 0x00002268 Blink.ino.elf`micros at delay.c:40:1
  288. frame #1: 0x000022e0 Blink.ino.elf`delay(ms=322) at delay.c:103:23
  289. frame #2: 0x0000211c Blink.ino.elf`::loop() at Blink.ino:34:8
  290. frame #3: 0x00002eda Blink.ino.elf`main at main.cpp:54:9
  291. frame #4: 0x00002218 Blink.ino.elf`Reset_Handler at cortex_handlers.c:496:3
  292. (lldb) l
  293. 44
  294. 45 ticks2 = SysTick->VAL;
  295. 46 pend2 = !!(SCB->ICSR & SCB_ICSR_PENDSTSET_Msk) ;
  296. 47 count2 = _ulTickCount ;
  297. 48
  298. 49 do
  299. 50 {
  300.  
  301.  
  302. Debug: 325 53445 gdb_server.c:3272 gdb_input_inner(): received packet: 'p4'
  303. Debug: 326 53445 gdb_server.c:3272 gdb_input_inner(): received packet: 'pb'
  304.  
  305. (in another window:) (lldb) break set --file delay.c --line 47
  306. Breakpoint 1: where = Blink.ino.elf`micros + 2 at delay.c:47:11, address = 0x0000226a
  307.  
  308.  
  309. Debug: 327 96206 gdb_server.c:3272 gdb_input_inner(): received packet: 'Z0,226a,2'
  310. Debug: 328 96206 gdb_server.c:1662 gdb_breakpoint_watchpoint_packet(): [at91samd.cpu]
  311. Debug: 329 96209 cortex_m.c:1345 cortex_m_set_breakpoint(): BPID: 0, Type: 1, Address: 0x0000226a Length: 2 (set=1)
  312. Debug: 330 96209 breakpoints.c:104 breakpoint_add_internal(): added software breakpoint at 0x0000226a of length 0x00000002, (BPID: 0)
  313.  
  314. (in another window:) (lldb) c
  315. Process 1 resuming
  316.  
  317.  
  318. Debug: 331 117107 gdb_server.c:3272 gdb_input_inner(): received packet: 'c'
  319. Debug: 332 117107 target.c:1827 target_call_event_callbacks(): target event 7 (gdb-start) for core at91samd.cpu
  320. Debug: 333 117107 gdb_server.c:1630 gdb_step_continue_packet(): -
  321. Debug: 334 117107 gdb_server.c:1639 gdb_step_continue_packet(): continue
  322. Debug: 335 117107 target.c:1827 target_call_event_callbacks(): target event 3 (resume-start) for core at91samd.cpu
  323. Debug: 336 117107 target.c:2172 target_free_all_working_areas_restore(): freeing all working areas
  324. Debug: 337 117107 armv7m.c:160 armv7m_restore_context():
  325. Debug: 338 117110 target.c:1827 target_call_event_callbacks(): target event 2 (resumed) for core at91samd.cpu
  326. Debug: 339 117110 cortex_m.c:886 cortex_m_resume(): target resumed at 0x2268
  327. Debug: 340 117110 target.c:1827 target_call_event_callbacks(): target event 4 (resume-end) for core at91samd.cpu
  328.  
  329.  
  330.  
  331.  
  332.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement