Hello everybody, I hope I'm writing my problem to the right mailing list. Sorry if not!
I have compiled openocd (0.9.0-dev-00184-g885f438 (2014-10-21-19:14) on Fedora 19 without any problems. My goal is to connect to a EFM32GG290 [1] with Flyswatter2, but even if the Flyswatter2 is NOT connected to the EFM32 and I run openocd as root (openocd -f interface/ftdi/flyswatter2.cfg -f interface/ftdi/swd-resistor-hack.cfg -f target/efm32.cfg -d 1) I get an error message (see below for the full log): Debug: 226 11 transport.c:240 handle_transport_init(): handle_transport_init Debug: 227 11 ftdi.c:949 ftdi_swd_run_queue(): Executing 2 queued transactions Debug: 228 11 ftdi.c:981 ftdi_swd_run_queue(): JUNK DP read reg 0 = ffffffff Debug: 229 11 command.c:628 run_command(): Command failed with error code 7 User : 230 11 command.c:666 command_run_line(): in procedure 'init' in procedure 'ocd_bouncer' in procedure 'transport' Debug: 231 11 command.c:628 run_command(): Command failed with error code -4 User : 232 11 command.c:666 command_run_line(): in procedure 'init' After executing the command I see this output with dmesg: [ 2446.706358] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0 [ 2446.706391] ftdi_sio 2-1.2:1.0: device disconnected Any help would be appreciated. Thanks Christian [1] http://www.silabs.com/Support%20Documents/TechnicalDocs/EFM32GG290.pdf [root@fedora ~]# openocd -f interface/ftdi/flyswatter2.cfg -f interface/ftdi/swd-resistor-hack.cfg -f target/efm32.cfg -d 1 Open On-Chip Debugger 0.9.0-dev-00184-g885f438 (2014-10-21-19:14) Licensed under GNU GPL v2 For bug reports, read http://openocd.sourceforge.net/doc/doxygen/bugs.html User : 13 2 command.c:546 command_print(): debug_level: 3 Debug: 14 2 options.c:98 add_default_dirs(): bindir=/usr/local/bin Debug: 15 2 options.c:99 add_default_dirs(): pkgdatadir=/usr/local/share/openocd Debug: 16 2 options.c:100 add_default_dirs(): run_prefix= Debug: 17 2 configuration.c:44 add_script_search_dir(): adding /root/.openocd Debug: 18 2 configuration.c:44 add_script_search_dir(): adding /usr/local/share/openocd/site Debug: 19 2 configuration.c:44 add_script_search_dir(): adding /usr/local/share/openocd/scripts Debug: 20 2 configuration.c:84 find_file(): found /usr/local/share/openocd/scripts/interface/ftdi/flyswatter2.cfg Debug: 21 3 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_interface ftdi Debug: 22 3 command.c:145 script_debug(): command - interface ocd_interface ftdi Debug: 24 3 command.c:366 register_command_handler(): registering 'ocd_ftdi_device_desc'... Debug: 25 3 command.c:366 register_command_handler(): registering 'ocd_ftdi_serial'... Debug: 26 3 command.c:366 register_command_handler(): registering 'ocd_ftdi_channel'... Debug: 27 3 command.c:366 register_command_handler(): registering 'ocd_ftdi_layout_init'... Debug: 28 3 command.c:366 register_command_handler(): registering 'ocd_ftdi_layout_signal'... Debug: 29 3 command.c:366 register_command_handler(): registering 'ocd_ftdi_set_signal'... Debug: 30 3 command.c:366 register_command_handler(): registering 'ocd_ftdi_vid_pid'... Debug: 31 3 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_ftdi_device_desc Flyswatter2 Debug: 32 3 command.c:145 script_debug(): command - ftdi_device_desc ocd_ftdi_device_desc Flyswatter2 Debug: 34 3 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_ftdi_vid_pid 0x0403 0x6010 Debug: 35 3 command.c:145 script_debug(): command - ftdi_vid_pid ocd_ftdi_vid_pid 0x0403 0x6010 Debug: 37 3 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_ftdi_layout_init 0x0538 0x057b Debug: 38 3 command.c:145 script_debug(): command - ftdi_layout_init ocd_ftdi_layout_init 0x0538 0x057b Debug: 40 3 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_ftdi_layout_signal LED -ndata 0x0400 Debug: 41 3 command.c:145 script_debug(): command - ftdi_layout_signal ocd_ftdi_layout_signal LED -ndata 0x0400 Debug: 43 3 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_ftdi_layout_signal nTRST -data 0x0010 Debug: 44 3 command.c:145 script_debug(): command - ftdi_layout_signal ocd_ftdi_layout_signal nTRST -data 0x0010 Debug: 46 3 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_ftdi_layout_signal nSRST -data 0x0020 -noe 0x0100 Debug: 47 3 command.c:145 script_debug(): command - ftdi_layout_signal ocd_ftdi_layout_signal nSRST -data 0x0020 -noe 0x0100 Debug: 49 3 configuration.c:84 find_file(): found /usr/local/share/openocd/scripts/interface/ftdi/swd-resistor-hack.cfg Debug: 50 3 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport select swd Debug: 51 3 command.c:145 script_debug(): command - ocd_transport ocd_transport select swd Debug: 52 4 command.c:325 command_new(): BUG: command 'swd' does not have the '.usage' field filled out Debug: 53 4 command.c:366 register_command_handler(): registering 'ocd_swd'... Debug: 54 4 command.c:366 register_command_handler(): registering 'ocd_swd'... Info : 55 4 ftdi.c:923 ftdi_swd_init(): FTDI SWD mode enabled Debug: 56 4 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_ftdi_layout_signal SWD_EN -data 0 Debug: 57 4 command.c:145 script_debug(): command - ftdi_layout_signal ocd_ftdi_layout_signal SWD_EN -data 0 Debug: 59 4 configuration.c:84 find_file(): found /usr/local/share/openocd/scripts/target/efm32.cfg Debug: 60 4 configuration.c:84 find_file(): found /usr/local/share/openocd/scripts/target/swj-dp.tcl Debug: 61 4 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport select Debug: 62 4 command.c:145 script_debug(): command - ocd_transport ocd_transport select Debug: 63 4 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport select Debug: 64 4 command.c:145 script_debug(): command - ocd_transport ocd_transport select Debug: 65 4 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport select Debug: 66 4 command.c:145 script_debug(): command - ocd_transport ocd_transport select Debug: 67 4 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport select Debug: 68 4 command.c:145 script_debug(): command - ocd_transport ocd_transport select Debug: 69 4 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport select Debug: 70 4 command.c:145 script_debug(): command - ocd_transport ocd_transport select Debug: 71 4 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_swd newdap efm32 cpu -expected-id 0x2ba01477 Debug: 72 4 command.c:145 script_debug(): command - ocd_swd ocd_swd newdap efm32 cpu -expected-id 0x2ba01477 Debug: 73 4 tcl.c:554 jim_newtap_cmd(): Creating New Tap, Chip: efm32, Tap: cpu, Dotted: efm32.cpu, 2 params Debug: 74 4 core.c:1322 jtag_tap_init(): Created Tap: efm32.cpu @ abs position 0, irlen 0, capture: 0x0 mask: 0x0 Debug: 75 4 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_adapter_khz 1000 Debug: 76 5 command.c:145 script_debug(): command - adapter_khz ocd_adapter_khz 1000 Debug: 78 5 core.c:1647 jtag_config_khz(): handle jtag khz Debug: 79 5 core.c:1614 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 80 5 core.c:1614 adapter_khz_to_speed(): convert khz to interface specific speed value User : 81 5 command.c:546 command_print(): adapter speed: 1000 kHz Debug: 82 5 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_target create efm32.cpu cortex_m -chain-position efm32.cpu Debug: 83 5 command.c:145 script_debug(): command - ocd_target ocd_target create efm32.cpu cortex_m -chain-position efm32.cpu Debug: 84 5 target.c:1726 target_free_all_working_areas_restore(): freeing all working areas Debug: 85 5 command.c:366 register_command_handler(): registering 'ocd_arm'... Debug: 86 5 command.c:366 register_command_handler(): registering 'ocd_arm'... Debug: 87 5 command.c:366 register_command_handler(): registering 'ocd_arm'... Debug: 88 5 command.c:366 register_command_handler(): registering 'ocd_arm'... Debug: 89 5 command.c:366 register_command_handler(): registering 'ocd_arm'... Debug: 90 5 command.c:366 register_command_handler(): registering 'ocd_arm'... Debug: 91 5 command.c:366 register_command_handler(): registering 'ocd_dap'... Debug: 92 5 command.c:366 register_command_handler(): registering 'ocd_dap'... Debug: 93 5 command.c:366 register_command_handler(): registering 'ocd_dap'... Debug: 94 5 command.c:366 register_command_handler(): registering 'ocd_dap'... Debug: 95 5 command.c:366 register_command_handler(): registering 'ocd_dap'... Debug: 96 5 command.c:366 register_command_handler(): registering 'ocd_dap'... Debug: 97 5 command.c:366 register_command_handler(): registering 'ocd_dap'... Debug: 98 5 command.c:366 register_command_handler(): registering 'ocd_cortex_m'... Debug: 99 5 command.c:366 register_command_handler(): registering 'ocd_cortex_m'... Debug: 100 5 command.c:366 register_command_handler(): registering 'ocd_cortex_m'... Debug: 101 5 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 102 5 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 103 5 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 104 5 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 105 5 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 106 5 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 107 5 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 108 5 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 109 5 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 110 5 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 111 5 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 112 5 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 113 5 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 114 5 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 115 5 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 116 5 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 117 5 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 118 5 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 119 5 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 120 5 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 121 5 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 122 5 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 123 5 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 124 6 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 125 6 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 126 6 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 127 6 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 128 6 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 129 6 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 130 6 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 131 6 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 132 6 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 133 6 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 134 6 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 135 6 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 136 6 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 137 6 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 138 6 command.c:366 register_command_handler(): registering 'ocd_efm32.cpu'... Debug: 139 6 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_efm32.cpu configure -work-area-phys 0x10000000 -work-area-size 0x800 -work-area-backup 0 Debug: 140 6 command.c:145 script_debug(): command - ocd_efm32.cpu ocd_efm32.cpu configure -work-area-phys 0x10000000 -work-area-size 0x800 -work-area-backup 0 Debug: 141 6 target.c:1726 target_free_all_working_areas_restore(): freeing all working areas Debug: 142 6 target.c:1726 target_free_all_working_areas_restore(): freeing all working areas Debug: 143 6 target.c:1726 target_free_all_working_areas_restore(): freeing all working areas Debug: 144 6 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_flash bank efm32.flash efm32 0 0 0 0 efm32.cpu Debug: 145 6 command.c:145 script_debug(): command - ocd_flash ocd_flash bank efm32.flash efm32 0 0 0 0 efm32.cpu Debug: 147 6 tcl.c:824 handle_flash_bank_command(): 'efm32' driver usage field missing Debug: 148 6 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport select Debug: 149 6 command.c:145 script_debug(): command - ocd_transport ocd_transport select Debug: 150 6 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_cortex_m reset_config sysresetreq Debug: 151 6 command.c:145 script_debug(): command - ocd_cortex_m ocd_cortex_m reset_config sysresetreq User : 153 6 command.c:546 command_print(): cortex_m reset_config sysresetreq Debug: 154 6 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_init Debug: 155 6 command.c:145 script_debug(): command - init ocd_init Debug: 157 6 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_target init Debug: 158 6 command.c:145 script_debug(): command - ocd_target ocd_target init Debug: 160 6 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_target names Debug: 161 7 command.c:145 script_debug(): command - ocd_target ocd_target names Debug: 162 7 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_efm32.cpu cget -event gdb-flash-erase-start Debug: 163 7 command.c:145 script_debug(): command - ocd_efm32.cpu ocd_efm32.cpu cget -event gdb-flash-erase-start Debug: 164 7 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_efm32.cpu configure -event gdb-flash-erase-start reset init Debug: 165 7 command.c:145 script_debug(): command - ocd_efm32.cpu ocd_efm32.cpu configure -event gdb-flash-erase-start reset init Debug: 166 7 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_efm32.cpu cget -event gdb-flash-write-end Debug: 167 7 command.c:145 script_debug(): command - ocd_efm32.cpu ocd_efm32.cpu cget -event gdb-flash-write-end Debug: 168 7 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_efm32.cpu configure -event gdb-flash-write-end reset halt Debug: 169 7 command.c:145 script_debug(): command - ocd_efm32.cpu ocd_efm32.cpu configure -event gdb-flash-write-end reset halt Debug: 170 7 target.c:1289 handle_target_init_command(): Initializing targets... Debug: 171 7 command.c:366 register_command_handler(): registering 'ocd_target_request'... Debug: 172 7 command.c:366 register_command_handler(): registering 'ocd_trace'... Debug: 173 7 command.c:366 register_command_handler(): registering 'ocd_trace'... Debug: 174 7 command.c:366 register_command_handler(): registering 'ocd_fast_load_image'... Debug: 175 7 command.c:366 register_command_handler(): registering 'ocd_fast_load'... Debug: 176 7 command.c:366 register_command_handler(): registering 'ocd_profile'... Debug: 177 7 command.c:366 register_command_handler(): registering 'ocd_virt2phys'... Debug: 178 7 command.c:366 register_command_handler(): registering 'ocd_reg'... Debug: 179 7 command.c:366 register_command_handler(): registering 'ocd_poll'... Debug: 180 7 command.c:366 register_command_handler(): registering 'ocd_wait_halt'... Debug: 181 7 command.c:366 register_command_handler(): registering 'ocd_halt'... Debug: 182 7 command.c:366 register_command_handler(): registering 'ocd_resume'... Debug: 183 7 command.c:366 register_command_handler(): registering 'ocd_reset'... Debug: 184 7 command.c:366 register_command_handler(): registering 'ocd_soft_reset_halt'... Debug: 185 7 command.c:366 register_command_handler(): registering 'ocd_step'... Debug: 186 7 command.c:366 register_command_handler(): registering 'ocd_mdw'... Debug: 187 7 command.c:366 register_command_handler(): registering 'ocd_mdh'... Debug: 188 7 command.c:366 register_command_handler(): registering 'ocd_mdb'... Debug: 189 7 command.c:366 register_command_handler(): registering 'ocd_mww'... Debug: 190 7 command.c:366 register_command_handler(): registering 'ocd_mwh'... Debug: 191 7 command.c:366 register_command_handler(): registering 'ocd_mwb'... Debug: 192 7 command.c:366 register_command_handler(): registering 'ocd_bp'... Debug: 193 7 command.c:366 register_command_handler(): registering 'ocd_rbp'... Debug: 194 7 command.c:366 register_command_handler(): registering 'ocd_wp'... Debug: 195 7 command.c:366 register_command_handler(): registering 'ocd_rwp'... Debug: 196 7 command.c:366 register_command_handler(): registering 'ocd_load_image'... Debug: 197 7 command.c:366 register_command_handler(): registering 'ocd_dump_image'... Debug: 198 7 command.c:366 register_command_handler(): registering 'ocd_verify_image'... Debug: 199 8 command.c:366 register_command_handler(): registering 'ocd_test_image'... Debug: 200 8 command.c:366 register_command_handler(): registering 'ocd_reset_nag'... Debug: 201 8 command.c:366 register_command_handler(): registering 'ocd_ps'... Debug: 202 8 command.c:366 register_command_handler(): registering 'ocd_test_mem_access'... Debug: 203 8 ftdi.c:625 ftdi_initialize(): ftdi interface using shortest path jtag state transitions Debug: 204 11 mpsse.c:363 mpsse_purge(): - Debug: 205 11 mpsse.c:644 mpsse_loopback_config(): off Debug: 206 11 mpsse.c:689 mpsse_set_frequency(): target 1000000 Hz Debug: 207 11 mpsse.c:681 mpsse_rtck_config(): off Debug: 208 11 mpsse.c:670 mpsse_divide_by_5_config(): off Debug: 209 11 mpsse.c:650 mpsse_set_divisor(): 29 Debug: 210 11 mpsse.c:713 mpsse_set_frequency(): actually 1000000 Hz Debug: 211 11 ftdi.c:1095 ftdi_swd_switch_seq(): JTAG-to-SWD Debug: 212 11 core.c:1614 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 213 11 core.c:1617 adapter_khz_to_speed(): have interface set up Debug: 214 11 mpsse.c:689 mpsse_set_frequency(): target 1000000 Hz Debug: 215 11 mpsse.c:681 mpsse_rtck_config(): off Debug: 216 11 mpsse.c:670 mpsse_divide_by_5_config(): off Debug: 217 11 mpsse.c:650 mpsse_set_divisor(): 29 Debug: 218 11 mpsse.c:713 mpsse_set_frequency(): actually 1000000 Hz Debug: 219 11 core.c:1614 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 220 11 core.c:1617 adapter_khz_to_speed(): have interface set up Info : 221 11 core.c:1403 adapter_init(): clock speed 1000 kHz Debug: 222 11 openocd.c:137 handle_init_command(): Debug Adapter init complete Debug: 223 11 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport init Debug: 224 11 command.c:145 script_debug(): command - ocd_transport ocd_transport init Debug: 226 11 transport.c:240 handle_transport_init(): handle_transport_init Debug: 227 11 ftdi.c:949 ftdi_swd_run_queue(): Executing 2 queued transactions Debug: 228 11 ftdi.c:981 ftdi_swd_run_queue(): JUNK DP read reg 0 = ffffffff Debug: 229 11 command.c:628 run_command(): Command failed with error code 7 User : 230 11 command.c:666 command_run_line(): in procedure 'init' in procedure 'ocd_bouncer' in procedure 'transport' Debug: 231 11 command.c:628 run_command(): Command failed with error code -4 User : 232 11 command.c:666 command_run_line(): in procedure 'init'
smime.p7s
Description: S/MIME Cryptographic Signature
------------------------------------------------------------------------------
_______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
