|
From: openocd-gerrit <ope...@us...> - 2026-02-27 16:16:56
|
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 70525731872b26b9c64c2ec6617b927045d41dae (commit)
from 129e9d30055e5cbed5ad6f0229772a3dc89fa529 (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 70525731872b26b9c64c2ec6617b927045d41dae
Author: Marc Schink <de...@za...>
Date: Fri Jul 11 22:08:14 2025 +0000
server/gdb: Add support for NVM banks without sectors
This is necessary for non-flash NVM which does not have the concept of
sectors, such as RRAM. Also small flash memory regions without sectors,
such as configuration areas, can now be exposed to GDB.
Tested with nRF54L15-DK, tested for regression with AT32F421C8T7.
Change-Id: Ifc96ddca7dcfcd4ab17683c0e59f1be912901941
Signed-off-by: Marc Schink <de...@za...>
Reviewed-on: https://review.openocd.org/c/openocd/+/9290
Reviewed-by: Tomas Vanek <va...@fb...>
Reviewed-by: Antonio Borneo <bor...@gm...>
Tested-by: jenkins
diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c
index b966e8593..cf7a2bde0 100644
--- a/src/server/gdb_server.c
+++ b/src/server/gdb_server.c
@@ -2010,6 +2010,15 @@ static int gdb_memory_map(struct connection *connection,
"length=\"0x%x\"/>\n",
p->base, p->size);
} else {
+ if (p->num_sectors == 0) {
+ xml_printf(&retval, &xml, &pos, &size,
+ "<memory type=\"flash\" "
+ "start=\"" TARGET_ADDR_FMT "\" "
+ "length=\"0x%x\">"
+ "<property name=\"blocksize\">0x%x</property>\n"
+ "</memory>\n", p->base, p->size, p->size);
+ }
+
/* Report adjacent groups of same-size sectors. So for
* example top boot CFI flash will list an initial region
* with several large sectors (maybe 128KB) and several
-----------------------------------------------------------------------
Summary of changes:
src/server/gdb_server.c | 9 +++++++++
1 file changed, 9 insertions(+)
hooks/post-receive
--
Main OpenOCD repository
|