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