Just had a scan through some docs that ST sent us ages ago and I have the
following error codes listed.
~~~
/* JTAG Status codes ---------------------------------------------------------*/
#define STLINK_JTAG_OK 0x80 /* 0x80 in order to avoid API
break */
#define STLINK_JTAG_UNKNOWN_ERROR 0x01
#define STLINK_JTAG_SPI_ERROR 0x02
#define STLINK_JTAG_DMA_ERROR 0x03
#define STLINK_JTAG_UNKNOWN_JTAG_CHAIN 0x04
#define STLINK_JTAG_NO_DEVICE_CONNECTED 0x05
#define STLINK_JTAG_INTERNAL_ERROR 0x06
#define STLINK_JTAG_CMD_WAIT 0x07
#define STLINK_JTAG_CMD_ERROR 0x08
#define STLINK_JTAG_GET_IDCODE_ERROR 0x09
#define STLINK_JTAG_ALIGNMENT_ERROR 0x0A
#define STLINK_JTAG_DBG_POWER_ERROR 0x0B
#define STLINK_JTAG_WRITE_ERROR 0x0C
#define STLINK_JTAG_WRITE_VERIF_ERROR 0x0D
#define STLINK_SWD_AP_WAIT 0x10
#define STLINK_SWD_AP_FAULT 0x11
#define STLINK_SWD_AP_ERROR 0x12
#define STLINK_SWD_AP_PARITY_ERROR 0x13
#define STLINK_SWD_DP_WAIT 0x14
#define STLINK_SWD_DP_FAULT 0x15
#define STLINK_SWD_DP_ERROR 0x16
#define STLINK_SWD_DP_PARITY_ERROR 0x17
#define STLINK_SWD_AP_WDATA_ERROR 0x18
#define STLINK_SWD_AP_STICKY_ERROR 0x19
#define STLINK_SWD_AP_STICKYORUN_ERROR 0x1A
#define STLINK_SWV_NOT_AVAILABLE 0x20 // New in ST-Link/V2
#define STLINK_NO_JUMP_TO_USB_LOADER 0x21 // New in ST-Link/V2, from V2J18S4
#define STLINK_JTAG_RUNNING 0x80
#define STLINK_JTAG_HALT 0x81
#define STLINK_JTAG_OLD_ERROR 0x81 /* 0x81 is the general error code
of first API */
~~~
---
** [tickets:#149] ST-Link Unsupported status code 0x09**
**Status:** new
**Milestone:** 0.9.0
**Created:** Fri Mar 31, 2017 11:44 AM UTC by steve
**Last Updated:** Fri Mar 31, 2017 02:45 PM UTC
**Owner:** nobody
Using STM32L031 Nucleo for detailed investigation, although suspect similar
problem on STM32L050 Nucleo. Running ST-Link software 2J28M18 (latest as of
now). OpenOCD release 0.10 final
Fails to connect to target.
Relevant debug output:
~~~
Debug: 256 47 stlink_usb.c:817 stlink_usb_init_mode(): MODE: 0x01
Debug: 257 47 stlink_usb.c:442 stlink_usb_error_check(): unknown/unexpected
STLINK status code 0x9
Error: 258 47 stlink_usb.c:1779 stlink_usb_open(): init mode failed (unable to
connect to the target)
~~~
Looking in the source, this status code does not appear to be recognised at all
- presumably recent addition.
I tried reducing clock speed from 300kHz to 100kHz without any difference.
Note: I can connect to the target using ST-Link.
---
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.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel