mirror of
https://github.com/openocd-org/openocd.git
synced 2025-05-09 16:27:20 +08:00
rtt: Raise error if control block was not found
Since RTT is not started if the control block was not found, an error must be raised instead of just informing the user. Change-Id: I2873e72f142ca572da97ee1fe91f6f1301307555 Signed-off-by: Marc Schink <dev@zapb.de> Reviewed-on: https://review.openocd.org/c/openocd/+/8757 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
parent
7837f508a5
commit
953ad9e116
@ -140,8 +140,8 @@ int rtt_start(void)
|
||||
addr);
|
||||
rtt.ctrl.address = addr;
|
||||
} else {
|
||||
LOG_INFO("rtt: No control block found");
|
||||
return ERROR_OK;
|
||||
LOG_ERROR("rtt: No control block found");
|
||||
return ERROR_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user