Nevermind, seems the problem wasn't with openocd, I had loaded an MBED program 
that read from the UART and seems stopped openocd from communicating with the 
module, replaced it with a blinky program and can now get openocd to connect.


---

** [tickets:#120] cmsis-dap for STM32F4 (MBED) no longer works**

**Status:** new
**Milestone:** 0.9.0
**Created:** Sun Mar 06, 2016 03:46 PM UTC by nope adope
**Last Updated:** Sun Mar 06, 2016 03:46 PM UTC
**Owner:** nobody


Last time I used openocd to communicate with an stm32f4 MBED board over 
cmsis-dap it worked, however trying now yields failure, either it fails to 
communicate like so:

Info : 219 66 cmsis_dap_usb.c:683 cmsis_dap_get_caps_info(): CMSIS-DAP: SWD  
Supported
Info : 220 68 cmsis_dap_usb.c:784 cmsis_dap_swd_open(): CMSIS-DAP: Interface 
Initialised (SWD)
Info : 221 70 cmsis_dap_usb.c:663 cmsis_dap_get_version_info(): CMSIS-DAP: FW 
Version = 1.0
Debug: 222 72 cmsis_dap_usb.c:856 cmsis_dap_init(): CMSIS-DAP: Packet Size = 64
Debug: 223 74 cmsis_dap_usb.c:867 cmsis_dap_init(): CMSIS-DAP: Packet Count = 1
Info : 224 76 cmsis_dap_usb.c:704 cmsis_dap_get_status(): SWCLK/TCK = 1 
SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : 225 86 cmsis_dap_usb.c:910 cmsis_dap_init(): CMSIS-DAP: Interface ready
Debug: 226 86 core.c:1596 adapter_khz_to_speed(): convert khz to interface 
specific speed value
Debug: 227 86 core.c:1599 adapter_khz_to_speed(): have interface set up
Debug: 228 88 core.c:1596 adapter_khz_to_speed(): convert khz to interface 
specific speed value
Debug: 229 88 core.c:1599 adapter_khz_to_speed(): have interface set up
Info : 230 88 core.c:1384 adapter_init(): clock speed 2000 kHz
Debug: 231 88 openocd.c:137 handle_init_command(): Debug Adapter init complete
Debug: 232 88 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_transport init
Debug: 233 88 command.c:145 script_debug(): command - ocd_transport 
ocd_transport init
Debug: 235 88 transport.c:240 handle_transport_init(): handle_transport_init
Debug: 236 90 cmsis_dap_usb.c:731 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 237 92 cmsis_dap_usb.c:522 cmsis_dap_swd_run_queue(): Executing 2 queued 
transactions
Debug: 238 92 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP read reg 0 0
Debug: 239 92 cmsis_dap_usb.c:545 cmsis_dap_swd_run_queue(): DP write reg 0 1e
Debug: 240 97 cmsis_dap_usb.c:583 cmsis_dap_swd_run_queue(): SWD ack not OK: 2 
WAIT
Debug: 241 97 command.c:628 run_command(): Command failed with error code -5
User : 242 97 command.c:689 command_run_line(): in procedure 'init' 
in procedure 'ocd_bouncer'
Debug: 243 97 command.c:628 run_command(): Command failed with error code -4
User : 244 97 command.c:689 command_run_line()

Or it fails as so:

Info : CMSIS-DAP: SWD  Supported
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : CMSIS-DAP: FW Version = 1.0
Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : clock speed 2000 kHz
Info : SWD IDCODE 0x2ba01477
Error: Failed to read memory and, additionally, failed to find out where
Polling target stm32f4x.cpu failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 100ms
Polling target stm32f4x.cpu failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 300ms
Polling target stm32f4x.cpu failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 700ms
Polling target stm32f4x.cpu failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 1500ms
Polling target stm32f4x.cpu failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 3100ms
Polling target stm32f4x.cpu failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 6300ms
Info : SWD IDCODE 0x2ba01477
Polling target stm32f4x.cpu failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 6300ms


I'm running openocd 0.9.0 as: openocd -f 
/usr/share/openocd/scripts/interface/cmsis-dap.cfg -f 
/usr/share/openocd/scripts/target/stm32f4x.cfg using arch linux 64 bit


---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/openocd/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/openocd/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to