mirror of
https://github.com/linux-msm/openocd.git
synced 2026-02-25 13:15:07 -08:00
drivers: cmsis-dap: Print version info when available
No need to wait until after connecting, might help diagnose part information by printing earlier. Change-Id: I51eb0d584be306baa811fbeb1ad6a604773e602c Signed-off-by: Karl Palsson <karlp@tweak.net.au> Reviewed-on: http://openocd.zylin.com/3404 Tested-by: jenkins Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
This commit is contained in:
committed by
Tomas Vanek
parent
5aceec2412
commit
b24301a01a
@@ -869,6 +869,10 @@ static int cmsis_dap_init(void)
|
||||
if (retval != ERROR_OK)
|
||||
return retval;
|
||||
|
||||
retval = cmsis_dap_get_version_info();
|
||||
if (retval != ERROR_OK)
|
||||
return retval;
|
||||
|
||||
if (swd_mode) {
|
||||
retval = cmsis_dap_swd_open();
|
||||
if (retval != ERROR_OK)
|
||||
@@ -889,10 +893,6 @@ static int cmsis_dap_init(void)
|
||||
LOG_INFO("CMSIS-DAP: Interface Initialised (JTAG)");
|
||||
}
|
||||
|
||||
retval = cmsis_dap_get_version_info();
|
||||
if (retval != ERROR_OK)
|
||||
return retval;
|
||||
|
||||
/* INFO_ID_PKT_SZ - short */
|
||||
retval = cmsis_dap_cmd_DAP_Info(INFO_ID_PKT_SZ, &data);
|
||||
if (retval != ERROR_OK)
|
||||
|
||||
Reference in New Issue
Block a user