I have been following the user guide to get running on Olimex stm-h103 ie stm32, openocd 0.4.0.
I am using the supplied cfg files; stm32.cfg olimex_stm32_h103.cfg olimex-jtag-timy.cfg
Openocd runs and finds the cfg files ok, creates TAPS but then ends with “Command/target: stm32.cpu Exists”. I do not get “tap/device found” and no flashing lights.
From the log it looks like the cfg is attempted twice…?? perhaps after a failed flash attempt? There are no errors posted that I can see.
Any help would be appreciated; system is Eclipse,cygwin (on windows7), openocd 0.4.0. jtag tiny drivers etc appear ok.
Open On-Chip Debugger 0.4.0 (2010-06-25-11:18)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.berlios.de/doc/doxygen/bugs.html
User : 10 0 command.c:539 command_print(): debug_level: 3
Debug: 11 0 configuration.c:45 add_script_search_dir(): adding C:\gccfd\openocd\src..
Debug: 12 0 configuration.c:45 add_script_search_dir(): adding C:/gccfd/openocd/src/…/share/openocd/scripts
Debug: 13 0 configuration.c:87 find_file(): found olimex-jtag-tiny.cfg
Debug: 14 0 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_interface ft2232
Debug: 15 16 command.c:133 script_debug(): command - interface ocd_interface ft2232
Debug: 17 16 command.c:346 register_command_handler(): registering ‘ocd_ft2232_device_desc’…
Debug: 18 16 command.c:346 register_command_handler(): registering ‘ocd_ft2232_serial’…
Debug: 19 16 command.c:346 register_command_handler(): registering ‘ocd_ft2232_layout’…
Debug: 20 16 command.c:346 register_command_handler(): registering ‘ocd_ft2232_vid_pid’…
Debug: 21 16 command.c:346 register_command_handler(): registering ‘ocd_ft2232_latency’…
Debug: 22 16 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_ft2232_device_desc Olimex OpenOCD JTAG TINY
Debug: 23 16 command.c:133 script_debug(): command - ft2232_device_desc ocd_ft2232_device_desc Olimex OpenOCD JTAG TINY
Debug: 25 16 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_ft2232_layout olimex-jtag
Debug: 26 16 command.c:133 script_debug(): command - ft2232_layout ocd_ft2232_layout olimex-jtag
Debug: 28 16 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_ft2232_vid_pid 0x15ba 0x0004
Debug: 29 16 command.c:133 script_debug(): command - ft2232_vid_pid ocd_ft2232_vid_pid 0x15ba 0x0004
Debug: 31 16 configuration.c:87 find_file(): found olimex_stm32_h103.cfg
Debug: 32 16 configuration.c:87 find_file(): found target/stm32.cfg
Debug: 33 16 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag_khz 1000
Debug: 34 16 command.c:133 script_debug(): command - jtag_khz ocd_jtag_khz 1000
Debug: 36 16 core.c:1560 jtag_config_khz(): handle jtag khz
Debug: 37 16 core.c:1523 jtag_khz_to_speed(): convert khz to interface specific speed value
User : 38 16 command.c:539 command_print(): 1000 kHz
Debug: 39 16 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag_nsrst_delay 100
Debug: 40 16 command.c:133 script_debug(): command - jtag_nsrst_delay ocd_jtag_nsrst_delay 100
User : 42 16 command.c:539 command_print(): jtag_nsrst_delay: 100
Debug: 43 16 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag_ntrst_delay 100
Debug: 44 16 command.c:133 script_debug(): command - jtag_ntrst_delay ocd_jtag_ntrst_delay 100
User : 46 16 command.c:539 command_print(): jtag_ntrst_delay: 100
Debug: 47 16 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag newtap stm32 cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x3ba00477
Debug: 48 16 command.c:133 script_debug(): command - ocd_jtag ocd_jtag newtap stm32 cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x3ba00477
Debug: 49 16 tcl.c:568 jim_newtap_cmd(): Creating New Tap, Chip: stm32, Tap: cpu, Dotted: stm32.cpu, 8 params
Debug: 50 16 tcl.c:585 jim_newtap_cmd(): Processing option: -irlen
Debug: 51 16 tcl.c:585 jim_newtap_cmd(): Processing option: -ircapture
Debug: 52 16 tcl.c:585 jim_newtap_cmd(): Processing option: -irmask
Debug: 53 16 tcl.c:585 jim_newtap_cmd(): Processing option: -expected-id
Debug: 54 16 core.c:1300 jtag_tap_init(): Created Tap: stm32.cpu @ abs position 0, irlen 4, capture: 0x1 mask: 0xf
Debug: 55 16 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag newtap stm32 bs -irlen 5 -expected-id 0x16410041
Debug: 56 16 command.c:133 script_debug(): command - ocd_jtag ocd_jtag newtap stm32 bs -irlen 5 -expected-id 0x16410041
Debug: 57 16 tcl.c:568 jim_newtap_cmd(): Creating New Tap, Chip: stm32, Tap: bs, Dotted: stm32.bs, 4 params
Debug: 58 16 tcl.c:585 jim_newtap_cmd(): Processing option: -irlen
Debug: 59 16 tcl.c:585 jim_newtap_cmd(): Processing option: -expected-id
Debug: 60 16 core.c:1300 jtag_tap_init(): Created Tap: stm32.bs @ abs position 0, irlen 5, capture: 0x1 mask: 0x3
Debug: 61 16 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_target create stm32.cpu cortex_m3 -endian little -chain-position stm32.cpu
Debug: 62 16 command.c:133 script_debug(): command - ocd_target ocd_target create stm32.cpu cortex_m3 -endian little -chain-position stm32.cpu
Debug: 63 16 command.c:346 register_command_handler(): registering ‘ocd_dap’…
Debug: 64 16 command.c:346 register_command_handler(): registering ‘ocd_dap’…
Debug: 65 16 command.c:346 register_command_handler(): registering ‘ocd_dap’…
Debug: 66 16 command.c:346 register_command_handler(): registering ‘ocd_dap’…
Debug: 67 16 command.c:346 register_command_handler(): registering ‘ocd_dap’…
Debug: 68 16 command.c:346 register_command_handler(): registering ‘ocd_cortex_m3’…
Debug: 69 16 command.c:346 register_command_handler(): registering ‘ocd_cortex_m3’…
Debug: 70 16 command.c:346 register_command_handler(): registering ‘ocd_cortex_m3’…
Debug: 71 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…
Debug: 72 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…
Debug: 73 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…
Debug: 74 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…
Debug: 75 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…
Debug: 76 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…
Debug: 77 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…
Debug: 78 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…
Debug: 79 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…
Debug: 80 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…
Debug: 81 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…
Debug: 82 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…
Debug: 83 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…
Debug: 84 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…
Debug: 85 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…
Debug: 86 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…
Debug: 87 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…
Debug: 88 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…
Debug: 89 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…
Debug: 90 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…
Debug: 91 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…
Debug: 92 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…
Debug: 93 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…
Debug: 94 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…
Debug: 95 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…
Debug: 96 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…
Debug: 97 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…
Debug: 98 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…
Debug: 99 16 command.c:346 register_command_handler(): registering ‘ocd_stm32.cpu’…
Debug: 100 16 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_stm32.cpu configure -work-area-phys 0x20000000 -work-area-size 0x5000 -work-area-backup 0
Debug: 101 16 command.c:133 script_debug(): command - ocd_stm32.cpu ocd_stm32.cpu configure -work-area-phys 0x20000000 -work-area-size 0x5000 -work-area-backup 0
Debug: 102 16 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_flash bank stm32.flash stm32x 0 0 0 0 stm32.cpu
Debug: 103 16 command.c:133 script_debug(): command - ocd_flash ocd_flash bank stm32.flash stm32x 0 0 0 0 stm32.cpu
Debug: 105 16 command.c:346 register_command_handler(): registering ‘ocd_stm32x’…
Debug: 106 16 command.c:346 register_command_handler(): registering ‘ocd_stm32x’…
Debug: 107 16 command.c:346 register_command_handler(): registering ‘ocd_stm32x’…
Debug: 108 16 command.c:346 register_command_handler(): registering ‘ocd_stm32x’…
Debug: 109 16 command.c:346 register_command_handler(): registering ‘ocd_stm32x’…
Debug: 110 16 configuration.c:87 find_file(): found stm32.cfg
Debug: 111 16 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag_khz 1000
Debug: 112 16 command.c:133 script_debug(): command - jtag_khz ocd_jtag_khz 1000
Debug: 114 16 core.c:1560 jtag_config_khz(): handle jtag khz
Debug: 115 16 core.c:1523 jtag_khz_to_speed(): convert khz to interface specific speed value
User : 116 16 command.c:539 command_print(): 1000 kHz
Debug: 117 16 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag_nsrst_delay 100
Debug: 118 16 command.c:133 script_debug(): command - jtag_nsrst_delay ocd_jtag_nsrst_delay 100
User : 120 16 command.c:539 command_print(): jtag_nsrst_delay: 100
Debug: 121 16 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag_ntrst_delay 100
Debug: 122 16 command.c:133 script_debug(): command - jtag_ntrst_delay ocd_jtag_ntrst_delay 100
User : 124 16 command.c:539 command_print(): jtag_ntrst_delay: 100
Debug: 125 16 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag newtap stm32 cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x3ba00477
Debug: 126 16 command.c:133 script_debug(): command - ocd_jtag ocd_jtag newtap stm32 cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x3ba00477
Debug: 127 16 tcl.c:568 jim_newtap_cmd(): Creating New Tap, Chip: stm32, Tap: cpu, Dotted: stm32.cpu, 8 params
Debug: 128 16 tcl.c:585 jim_newtap_cmd(): Processing option: -irlen
Debug: 129 16 tcl.c:585 jim_newtap_cmd(): Processing option: -ircapture
Debug: 130 16 tcl.c:585 jim_newtap_cmd(): Processing option: -irmask
Debug: 131 16 tcl.c:585 jim_newtap_cmd(): Processing option: -expected-id
Debug: 132 16 core.c:1300 jtag_tap_init(): Created Tap: stm32.cpu @ abs position 0, irlen 4, capture: 0x1 mask: 0xf
Debug: 133 16 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag newtap stm32 bs -irlen 5 -expected-id 0x06412041
Debug: 134 16 command.c:133 script_debug(): command - ocd_jtag ocd_jtag newtap stm32 bs -irlen 5 -expected-id 0x06412041
Debug: 135 16 tcl.c:568 jim_newtap_cmd(): Creating New Tap, Chip: stm32, Tap: bs, Dotted: stm32.bs, 4 params
Debug: 136 16 tcl.c:585 jim_newtap_cmd(): Processing option: -irlen
Debug: 137 16 tcl.c:585 jim_newtap_cmd(): Processing option: -expected-id
Debug: 138 16 core.c:1300 jtag_tap_init(): Created Tap: stm32.bs @ abs position 0, irlen 5, capture: 0x1 mask: 0x3
Debug: 139 16 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_target create stm32.cpu cortex_m3 -endian little -chain-position stm32.cpu
Debug: 140 16 command.c:133 script_debug(): command - ocd_target ocd_target create stm32.cpu cortex_m3 -endian little -chain-position stm32.cpu
User : 141 16 command.c:824 openocd_jim_vfprintf(): Command/target: stm32.cpu Exists
User : 144 16 command.c:824 openocd_jim_vfprintf():
User : 146 16 command.c:824 openocd_jim_vfprintf():
User : 149 16 command.c:824 openocd_jim_vfprintf():
User : 151 16 command.c:824 openocd_jim_vfprintf():
User : 153 16 command.c:824 openocd_jim_vfprintf():
User : 155 16 command.c:824 openocd_jim_vfprintf():
User : 157 16 command.c:824 openocd_jim_vfprintf():