mirror of
https://github.com/linux-msm/openocd.git
synced 2026-02-25 13:15:07 -08:00
stlink: default to latest api available
Change-Id: Ic04128f4020055587bb87250f41e5c804d9c2b01 Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/577 Tested-by: jenkins Reviewed-by: Mathias Küster <kesmtp@freenet.de> Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
This commit is contained in:
@@ -1186,8 +1186,8 @@ static int stlink_usb_open(struct stlink_interface_param_s *param, void **fd)
|
||||
return err;
|
||||
}
|
||||
|
||||
/* set the used jtag api */
|
||||
h->jtag_api = STLINK_JTAG_API_V1;
|
||||
/* set the used jtag api, this will default to the newest supported version */
|
||||
h->jtag_api = h->version.jtag_api_max;
|
||||
|
||||
/* initialize the debug hardware */
|
||||
err = stlink_usb_init_mode(h);
|
||||
|
||||
Reference in New Issue
Block a user