summaryrefslogtreecommitdiff
path: root/src/transport/swd_core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/swd_core.c')
-rw-r--r--src/transport/swd_core.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/transport/swd_core.c b/src/transport/swd_core.c
index c608bf21..da287e7a 100644
--- a/src/transport/swd_core.c
+++ b/src/transport/swd_core.c
@@ -180,6 +180,12 @@ int oocd_swd_transport_select(struct command_context *ctx){
LOG_ERROR("Unable to set log level: %s", swd_error_string(retval));
return ERROR_FAIL;
}
+
+ retval=swd_register_commands(ctx);
+ if (retval!=ERROR_OK) {
+ LOG_ERROR("Unable to register SWD commands!");
+ return retval;
+ }
LOG_DEBUG("SWD Transport selection complete...");
return ERROR_OK;
}