drivers/stlink_usb: use command STLINK_DEBUG_APIV2_READ_IDCODES 26/4826/5
authorAntonio Borneo <borneo.antonio@gmail.com>
Wed, 19 Dec 2018 23:01:58 +0000 (00:01 +0100)
committerTomas Vanek <vanekt@fbl.cz>
Fri, 8 Mar 2019 07:06:28 +0000 (07:06 +0000)
commit56568b7996323da8e9254cadcdd555323a76466f
tree57e53cf4dd24b39710d517fd4b0f0d4cd78a71e3
parent05c6c871e3328dd38dc46ea11b3b9b546feb7850
drivers/stlink_usb: use command STLINK_DEBUG_APIV2_READ_IDCODES

API v2 deprecates using command STLINK_DEBUG_READCOREID to read
the core ID.
Switch to STLINK_DEBUG_APIV2_READ_IDCODES on new stlink firmware
version.

Change-Id: Iabadfc116c57f2c31f08f2e77baefea0cf90bdc3
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/4826
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
src/jtag/drivers/stlink_usb.c