|
From: openocd-gerrit <ope...@us...> - 2026-10-16 07:27:43
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Main OpenOCD repository".
The branch, master has been updated
via 88a7138d344cab5227634c19e0abcfebc0c55948 (commit)
from ce6f83a74a7584909545dfdfb453a2d57befcd1a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 88a7138d344cab5227634c19e0abcfebc0c55948
Author: Marc Schink <de...@za...>
Date: Mon Aug 4 12:55:46 2025 +0200
flash/nor: Add error message to 'flash erase_sector'
Provide an error message to the caller.
Change-Id: I2290323c0aabbe156d5bcfea02371df184a0095f
Signed-off-by: Marc Schink <de...@za...>
Reviewed-on: https://review.openocd.org/c/openocd/+/9284
Reviewed-by: Tomas Vanek <tom...@gm...>
Tested-by: jenkins
Reviewed-by: Tarek BOCHKATI <tar...@gm...>
diff --git a/src/flash/nor/tcl.c b/src/flash/nor/tcl.c
index 0a0de8e24..c792a7083 100644
--- a/src/flash/nor/tcl.c
+++ b/src/flash/nor/tcl.c
@@ -332,6 +332,9 @@ COMMAND_HANDLER(handle_flash_erase_command)
"in %fs", first, last, p->bank_number, duration_elapsed(&bench));
}
+ if (retval != ERROR_OK)
+ command_print(CMD, "failed to erase sectors");
+
return retval;
}
-----------------------------------------------------------------------
Summary of changes:
src/flash/nor/tcl.c | 3 +++
1 file changed, 3 insertions(+)
hooks/post-receive
--
Main OpenOCD repository
|