This is the issue I see with OpenOCD (and I see it on both the Nucleo board
and the L0 discovery board)

cmcmanis@charliehorse:~$ openocd
Open On-Chip Debugger 0.8.0 (2014-11-16-21:54)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.sourceforge.net/doc/doxygen/bugs.html
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
Info : This adapter doesn't support configurable speed
Info : STLINK v2 JTAG v21 API v2 SWIM v5 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 3.225246
Error: hl_interface_init_target: target not found: idcode: 0x0bc11477
in procedure 'transport'
in procedure 'init'
cmcmanis@charliehorse:~$


This is the the latest source built and running, my udev rules identify the
v2.1-1 boards



*# STlinkATTRS{idVendor}=="0483", ATTRS{idProduct}=="374b", MODE="666",
GROUP="plugdev"*
My openocd.cfg has

*source [find board/st_nucleo_f030r8.cfg]*

That does the standard things of
find interface/stlink-v2-1.cfg
find target stm32f0x_stlink.cfg

And everything reads like that should be "it" but it doesn't work.

Looking through the long -d3 listing from openocd gives lots of detail and
a very helpful bit about how successful it is in setting up the hla_swd
interface, I have attached that as well.

Frankly I would love it or my BMP probe to work on these boards but neither
do (I expect I could get the BMP to work if I could disable the debug
processor a bit more.)

--Chuck



On Tue, Nov 18, 2014 at 1:21 AM, Paul Fertser <[email protected]> wrote:

> On Mon, Nov 17, 2014 at 07:53:59PM -0800, Chuck McManis wrote:
> > The OpenOCD stuff still doesn't work but I suspect it is also an
> > f0/l0 issue. Its possible ST is using the CMSIS-DAP profile for
> > these things, I just know they aren't recognized.
>
> AFAICT, ST never shipped any CMSIS-DAP comliant adapter. Also, OpenOCD
> is actually able to work with CMSIS-DAP by other vendors.
>
> Also, Karl has tested his L0 board yesterday and the only issue
> noticed so far was ramping up PLL proc that's specific to L1 parts.
>
> --
> Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
> mailto:[email protected]
>
Open On-Chip Debugger 0.8.0 (2014-11-16-21:54)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.sourceforge.net/doc/doxygen/bugs.html
User : 13 3 command.c:546 command_print(): debug_level: 3
Debug: 14 3 options.c:98 add_default_dirs(): bindir=/usr/local/bin
Debug: 15 3 options.c:99 add_default_dirs(): pkgdatadir=/usr/local/share/openocd
Debug: 16 3 options.c:100 add_default_dirs(): run_prefix=
Debug: 17 3 configuration.c:44 add_script_search_dir(): adding 
/home/cmcmanis/.openocd
Debug: 18 3 configuration.c:44 add_script_search_dir(): adding 
/usr/local/share/openocd/site
Debug: 19 3 configuration.c:44 add_script_search_dir(): adding 
/usr/local/share/openocd/scripts
Debug: 20 4 configuration.c:84 find_file(): found openocd.cfg
Debug: 21 4 configuration.c:84 find_file(): found 
/usr/local/share/openocd/scripts/board/st_nucleo_f030r8.cfg
Debug: 22 4 configuration.c:84 find_file(): found 
/usr/local/share/openocd/scripts/interface/stlink-v2-1.cfg
Debug: 23 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_interface hla
Debug: 24 4 command.c:145 script_debug(): command - interface ocd_interface hla
Debug: 26 4 command.c:366 register_command_handler(): registering 
'ocd_hla_device_desc'...
Debug: 27 4 command.c:366 register_command_handler(): registering 
'ocd_hla_serial'...
Debug: 28 4 command.c:366 register_command_handler(): registering 
'ocd_hla_layout'...
Debug: 29 4 command.c:366 register_command_handler(): registering 
'ocd_hla_vid_pid'...
Debug: 30 4 command.c:366 register_command_handler(): registering 'ocd_trace'...
Debug: 31 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_hla_layout stlink
Debug: 32 4 command.c:145 script_debug(): command - hla_layout ocd_hla_layout 
stlink
Debug: 34 4 hla_interface.c:176 hl_interface_handle_layout_command(): 
hl_interface_handle_layout_command
Debug: 35 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_hla_device_desc ST-LINK/V2-1
Debug: 36 4 command.c:145 script_debug(): command - hla_device_desc 
ocd_hla_device_desc ST-LINK/V2-1
Debug: 38 4 hla_interface.c:150 hl_interface_handle_device_desc_command(): 
hl_interface_handle_device_desc_command
Debug: 39 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_hla_vid_pid 0x0483 0x374b
Debug: 40 4 command.c:145 script_debug(): command - hla_vid_pid ocd_hla_vid_pid 
0x0483 0x374b
Debug: 42 4 hla_interface.c:204 hl_interface_handle_vid_pid_command(): 
hl_interface_handle_vid_pid_command
Debug: 43 4 configuration.c:84 find_file(): found 
/usr/local/share/openocd/scripts/target/stm32f0x_stlink.cfg
Debug: 44 4 configuration.c:84 find_file(): found 
/usr/local/share/openocd/scripts/target/stm32_stlink.cfg
Debug: 45 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_transport select hla_swd
Debug: 46 5 command.c:145 script_debug(): command - ocd_transport ocd_transport 
select hla_swd
Debug: 47 5 hla_transport.c:187 hl_transport_select(): hl_transport_select
Debug: 48 5 command.c:366 register_command_handler(): registering 'ocd_hla'...
Debug: 49 5 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 50 5 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 51 5 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 52 5 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 53 5 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 54 5 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 55 5 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 56 5 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 57 5 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 58 5 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_hla newtap stm32f0x cpu -expected-id 0x0bb11477
Debug: 59 5 command.c:145 script_debug(): command - ocd_hla ocd_hla newtap 
stm32f0x cpu -expected-id 0x0bb11477
Debug: 60 5 hla_tcl.c:104 jim_hl_newtap_cmd(): Creating New Tap, Chip: 
stm32f0x, Tap: cpu, Dotted: stm32f0x.cpu, 2 params
Debug: 61 5 hla_tcl.c:114 jim_hl_newtap_cmd(): Processing option: -expected-id
Debug: 62 5 core.c:1319 jtag_tap_init(): Created Tap: stm32f0x.cpu @ abs 
position 0, irlen 0, capture: 0x0 mask: 0x0
Debug: 63 5 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_target create stm32f0x.cpu hla_target -chain-position stm32f0x.cpu
Debug: 64 5 command.c:145 script_debug(): command - ocd_target ocd_target 
create stm32f0x.cpu hla_target -chain-position stm32f0x.cpu
Debug: 65 5 target.c:1722 target_free_all_working_areas_restore(): freeing all 
working areas
Debug: 66 5 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 67 5 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 68 5 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 69 5 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 70 5 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 71 5 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 72 5 hla_target.c:367 adapter_target_create(): adapter_target_create
Debug: 73 5 hla_target.c:338 adapter_init_arch_info(): adapter_init_arch_info
Debug: 74 5 command.c:366 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 75 5 command.c:366 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 76 5 command.c:366 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 77 5 command.c:366 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 78 5 command.c:366 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 79 5 command.c:366 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 80 5 command.c:366 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 81 5 command.c:366 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 82 5 command.c:366 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 83 5 command.c:366 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 84 5 command.c:366 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 85 5 command.c:366 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 86 5 command.c:366 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 87 5 command.c:366 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 88 5 command.c:366 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 89 5 command.c:366 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 90 5 command.c:366 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 91 5 command.c:366 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 92 5 command.c:366 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 93 5 command.c:366 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 94 6 command.c:366 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 95 6 command.c:366 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 96 6 command.c:366 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 97 6 command.c:366 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 98 6 command.c:366 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 99 6 command.c:366 register_command_handler(): registering 
'ocd_stm32f0x.cpu'...
Debug: 100 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_stm32f0x.cpu configure -work-area-phys 0x20000000 -work-area-size 
0x1000 -work-area-backup 0
Debug: 101 6 command.c:145 script_debug(): command - ocd_stm32f0x.cpu 
ocd_stm32f0x.cpu configure -work-area-phys 0x20000000 -work-area-size 0x1000 
-work-area-backup 0
Debug: 102 6 target.c:1722 target_free_all_working_areas_restore(): freeing all 
working areas
Debug: 103 6 target.c:1722 target_free_all_working_areas_restore(): freeing all 
working areas
Debug: 104 6 target.c:1722 target_free_all_working_areas_restore(): freeing all 
working areas
Debug: 105 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_flash bank stm32f0x.flash stm32f1x 0 0 0 0 stm32f0x.cpu
Debug: 106 6 command.c:145 script_debug(): command - ocd_flash ocd_flash bank 
stm32f0x.flash stm32f1x 0 0 0 0 stm32f0x.cpu
Debug: 108 6 command.c:366 register_command_handler(): registering 
'ocd_stm32f1x'...
Debug: 109 6 command.c:366 register_command_handler(): registering 
'ocd_stm32f1x'...
Debug: 110 6 command.c:366 register_command_handler(): registering 
'ocd_stm32f1x'...
Debug: 111 6 command.c:366 register_command_handler(): registering 
'ocd_stm32f1x'...
Debug: 112 6 command.c:366 register_command_handler(): registering 
'ocd_stm32f1x'...
Debug: 113 6 tcl.c:804 handle_flash_bank_command(): 'stm32f1x' driver usage 
field missing
Debug: 114 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_reset_config srst_only srst_nogate
Debug: 115 6 command.c:145 script_debug(): command - reset_config 
ocd_reset_config srst_only srst_nogate
User : 117 6 command.c:546 command_print(): srst_only separate srst_nogate 
srst_open_drain connect_deassert_srst
Debug: 118 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_init
Debug: 119 6 command.c:145 script_debug(): command - init ocd_init
Debug: 121 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_target init
Debug: 122 6 command.c:145 script_debug(): command - ocd_target ocd_target init
Debug: 124 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_target names
Debug: 125 6 command.c:145 script_debug(): command - ocd_target ocd_target names
Debug: 126 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_stm32f0x.cpu cget -event gdb-flash-erase-start
Debug: 127 6 command.c:145 script_debug(): command - ocd_stm32f0x.cpu 
ocd_stm32f0x.cpu cget -event gdb-flash-erase-start
Debug: 128 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_stm32f0x.cpu configure -event gdb-flash-erase-start reset init
Debug: 129 7 command.c:145 script_debug(): command - ocd_stm32f0x.cpu 
ocd_stm32f0x.cpu configure -event gdb-flash-erase-start reset init
Debug: 130 7 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_stm32f0x.cpu cget -event gdb-flash-write-end
Debug: 131 7 command.c:145 script_debug(): command - ocd_stm32f0x.cpu 
ocd_stm32f0x.cpu cget -event gdb-flash-write-end
Debug: 132 7 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_stm32f0x.cpu configure -event gdb-flash-write-end reset halt
Debug: 133 7 command.c:145 script_debug(): command - ocd_stm32f0x.cpu 
ocd_stm32f0x.cpu configure -event gdb-flash-write-end reset halt
Debug: 134 7 target.c:1285 handle_target_init_command(): Initializing targets...
Debug: 135 7 hla_target.c:357 adapter_init_target(): adapter_init_target
Debug: 136 7 command.c:366 register_command_handler(): registering 
'ocd_target_request'...
Debug: 137 7 command.c:401 register_command(): command 'trace' is already 
registered in '<global>' context
Debug: 138 7 command.c:366 register_command_handler(): registering 
'ocd_trace'...
Debug: 139 7 command.c:366 register_command_handler(): registering 
'ocd_trace'...
Debug: 140 7 command.c:366 register_command_handler(): registering 
'ocd_fast_load_image'...
Debug: 141 7 command.c:366 register_command_handler(): registering 
'ocd_fast_load'...
Debug: 142 7 command.c:366 register_command_handler(): registering 
'ocd_profile'...
Debug: 143 7 command.c:366 register_command_handler(): registering 
'ocd_virt2phys'...
Debug: 144 7 command.c:366 register_command_handler(): registering 'ocd_reg'...
Debug: 145 7 command.c:366 register_command_handler(): registering 'ocd_poll'...
Debug: 146 7 command.c:366 register_command_handler(): registering 
'ocd_wait_halt'...
Debug: 147 7 command.c:366 register_command_handler(): registering 'ocd_halt'...
Debug: 148 7 command.c:366 register_command_handler(): registering 
'ocd_resume'...
Debug: 149 7 command.c:366 register_command_handler(): registering 
'ocd_reset'...
Debug: 150 7 command.c:366 register_command_handler(): registering 
'ocd_soft_reset_halt'...
Debug: 151 7 command.c:366 register_command_handler(): registering 'ocd_step'...
Debug: 152 7 command.c:366 register_command_handler(): registering 'ocd_mdw'...
Debug: 153 7 command.c:366 register_command_handler(): registering 'ocd_mdh'...
Debug: 154 7 command.c:366 register_command_handler(): registering 'ocd_mdb'...
Debug: 155 7 command.c:366 register_command_handler(): registering 'ocd_mww'...
Debug: 156 7 command.c:366 register_command_handler(): registering 'ocd_mwh'...
Debug: 157 7 command.c:366 register_command_handler(): registering 'ocd_mwb'...
Debug: 158 7 command.c:366 register_command_handler(): registering 'ocd_bp'...
Debug: 159 7 command.c:366 register_command_handler(): registering 'ocd_rbp'...
Debug: 160 7 command.c:366 register_command_handler(): registering 'ocd_wp'...
Debug: 161 7 command.c:366 register_command_handler(): registering 'ocd_rwp'...
Debug: 162 7 command.c:366 register_command_handler(): registering 
'ocd_load_image'...
Debug: 163 7 command.c:366 register_command_handler(): registering 
'ocd_dump_image'...
Debug: 164 7 command.c:366 register_command_handler(): registering 
'ocd_verify_image'...
Debug: 165 7 command.c:366 register_command_handler(): registering 
'ocd_test_image'...
Debug: 166 7 command.c:366 register_command_handler(): registering 
'ocd_reset_nag'...
Debug: 167 7 command.c:366 register_command_handler(): registering 'ocd_ps'...
Debug: 168 7 command.c:366 register_command_handler(): registering 
'ocd_test_mem_access'...
Debug: 169 7 hla_interface.c:108 hl_interface_init(): hl_interface_init
Debug: 170 7 hla_layout.c:85 hl_layout_init(): hl_layout_init
Info : 171 7 core.c:1371 adapter_init(): This adapter doesn't support 
configurable speed
Debug: 172 7 openocd.c:132 handle_init_command(): Debug Adapter init complete
Debug: 173 7 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_transport init
Debug: 174 7 command.c:145 script_debug(): command - ocd_transport 
ocd_transport init
Debug: 176 7 transport.c:240 handle_transport_init(): handle_transport_init
Debug: 177 7 hla_transport.c:148 hl_transport_init(): hl_transport_init
Debug: 178 7 hla_transport.c:165 hl_transport_init(): current transport hla_swd
Debug: 179 7 hla_interface.c:44 hl_interface_open(): hl_interface_open
Debug: 180 7 hla_layout.c:42 hl_layout_open(): hl_layout_open
Debug: 181 7 stlink_usb.c:1573 stlink_usb_open(): stlink_usb_open
Debug: 182 7 stlink_usb.c:1588 stlink_usb_open(): transport: 1 vid: 0x0483 pid: 
0x374b
Info : 183 11 stlink_usb.c:468 stlink_usb_version(): STLINK v2 JTAG v21 API v2 
SWIM v5 VID 0x0483 PID 0x374B
Info : 184 11 stlink_usb.c:1699 stlink_usb_open(): using stlink api v2
Debug: 185 11 stlink_usb.c:636 stlink_usb_init_mode(): MODE: 0x02
Info : 186 11 stlink_usb.c:500 stlink_usb_check_voltage(): Target voltage: 
3.223669
Debug: 187 11 stlink_usb.c:691 stlink_usb_init_mode(): MODE: 0x02
Debug: 188 12 stlink_usb.c:730 stlink_usb_init_mode(): MODE: 0x02
Debug: 189 12 stlink_usb.c:1738 stlink_usb_open(): Using TAR autoincrement: 1024
Debug: 190 12 hla_interface.c:129 hl_interface_execute_queue(): 
hl_interface_execute_queue: ignored
Debug: 191 12 core.c:717 jtag_add_reset(): SRST line released
Debug: 192 12 core.c:741 jtag_add_reset(): TRST line released
Debug: 193 12 core.c:321 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 194 12 hla_interface.c:69 hl_interface_init_target(): 
hl_interface_init_target
Debug: 195 13 stlink_usb.c:755 stlink_usb_idcode(): IDCODE: 0x0BC11477
Error: 196 13 hla_interface.c:96 hl_interface_init_target(): 
hl_interface_init_target: target not found: idcode: 0x0bc11477
Debug: 197 13 command.c:628 run_command(): Command failed with error code -4
User : 198 13 command.c:666 command_run_line(): in procedure 'transport'
Debug: 199 13 command.c:628 run_command(): Command failed with error code -4
User : 200 13 command.c:666 command_run_line(): in procedure 'init'
Debug: 201 13 hla_interface.c:116 hl_interface_quit(): hl_interface_quit
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
libopencm3-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libopencm3-devel

Reply via email to