11633 Commits
Author SHA1 Message Date
Kulyatskaya Alexandra 751e5af67b target: prevent image load to overwrite a breakpoint
Call function 'is_breakpoint_in_range()' in handler_load_image_command and
handle_fast_load_command for detecting breakpoint memory overwriting.

Change-Id: I8fb6c9811dc7322d78ec9cbba0e4641d619b7e03
Signed-off-by: Kulyatskaya Alexandra <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/9240
Reviewed-by: Antonio Borneo <[email protected]>
Tested-by: jenkins
latest
2026-10-11 10:04:54 +00:00
Marc Schink f4a4ac23d6 tcl/cpld: Move Xilinx config files into vendor folder
Move the configuration files into a dedicated vendor folder as required
by the developer guidelines.

Change-Id: I638510a45c02e932df9e52ae3ec6b211baa597c8
Signed-off-by: Marc Schink <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/10069
Tested-by: jenkins
Reviewed-by: Antonio Borneo <[email protected]>
2026-10-11 10:04:03 +00:00
Marc Schink 20620c907b tcl/cpld: Move Lattice config files into vendor folder
Move the configuration files into a dedicated vendor folder as required
by the developer guidelines.

Change-Id: I7fa6e6bc4ca70e5272b3fbe3beca4106fd975d17
Signed-off-by: Marc Schink <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/10068
Reviewed-by: Antonio Borneo <[email protected]>
Tested-by: jenkins
2026-10-11 10:03:54 +00:00
Marc Schink 7a95bf8cca tcl/cpld: Move Altera config files into vendor folder
Move the configuration files into a dedicated vendor folder as required
by the developer guidelines.

Change-Id: Ibf6c7221310b7d9e676b13816d00655c091e3d16
Signed-off-by: Marc Schink <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/10067
Tested-by: jenkins
Reviewed-by: Antonio Borneo <[email protected]>
2026-10-11 10:03:41 +00:00
Nguyen Minh Tien b20f0fb10b tcl/target/allwinner_v3s: create the DAP with 'dap create'
The config does not load:

  Error: target requires -dap parameter instead of -tap

A cortex_a target takes its DAP from '-dap' and refuses '-tap' (before
that '-chain-position'). That was already the case when the file was
added: 0.12.0 fails the same way, naming '-chain-position'.

Create the DAP on the existing TAP and pass it with '-dap', as
ls1046a.cfg does. The TAP, the DAP and the target keep their names
(v3s.dap, v3s.cpu).

Checked with the dummy adapter only: the config loads and creates the
cortex_a target v3s.cpu on the DAP v3s.dap.

Fixes: f8367dbb49 ("tcl/target: add Allwinner V3s SoC support")
Change-Id: Ie8396b7ffbb2b494a74bcfe7fe0f4241cbcf1f7b
Signed-off-by: Nguyen Minh Tien <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/10080
Tested-by: jenkins
Reviewed-by: Antonio Borneo <[email protected]>
2026-10-11 09:58:28 +00:00
Antonio Borneo 0e6ae2525d target/st/stm32mpxxx: enable smp only when working on multi-core
Setting an HW breakpoint when one target is declared in the SMP
list but is not examined causes error on OpenOCD

	Info : no hardware breakpoint available
	Error: [..] can't add breakpoint: resource not available

because OpenOCD doesn't know how many HW breakpoint are allowed
on the not yet examined target.

Simply drop the SMP association when only one target is debugged.

Change-Id: Ib7a5e3e6bb4329107bbc00f8334fca988a420e6c
Signed-off-by: Antonio Borneo <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/10066
Tested-by: jenkins
2026-10-11 09:58:05 +00:00
Antonio Borneo 6bacfd24cd doc: fix command syntax in example
The syntax of command `flash banks` requires no parameters.
Fix the example.

Change-Id: I08554b1df8436e709d499dd24b3280b5322ca51e
Signed-off-by: Antonio Borneo <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/10025
Reviewed-by: Tomas Vanek <[email protected]>
Tested-by: jenkins
2026-10-11 09:56:49 +00:00
Alexey Charkov 382b96214c tcl/target: add Rockchip RK3576 target
The Rockchip RK3576 SoC is used in a number of SBCs such as the ArmSoM
Sige5, FriendlyElec NanoPi M5 and others.

Add the target config to debug those over the SWD connection exposed via
SDMMC card pins D2 (SWCLK) and D3 (SWDIO).

Tested using a custom mini-PCB in the shape of a microSD card with an
extra cutout to avoid triggering the card detect switch (which forces
the SoC to switch the pins from SWD mode to SD).

Change-Id: I2d97058784f5a774fc2cb62baff0cb2a51102fcc
Signed-off-by: Alexey Charkov <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/9567
Reviewed-by: Antonio Borneo <[email protected]>
Tested-by: jenkins
2026-10-11 09:56:24 +00:00
Marc Schink 0a0dc39699 target/riscv: Rework 'set_mem_access' command
Rework the command and make the configured memory access method(s)
readable. As part of this, rename the command to 'mem_access' but
keep the legacy 'set_mem_access' command for backwards compatibility.

While at it, fix various coding style issues such as data types, return
values and error messages.

Change-Id: I2eace597c292a3a82f208c34b2ab0ff494f3c2fb
Signed-off-by: Marc Schink <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/9974
Tested-by: jenkins
Reviewed-by: Antonio Borneo <[email protected]>
2026-10-11 09:54:56 +00:00
Alamy Liu 41ba891c35 target: aarch64: replace Cortex-A8 with AArch64
The original code addressed Cortex-A8, but it's for generic
AArch64.
Change the text in the comments.

Change-Id: I319514d1c30263fa549e40cd7434ae42a89c5a40
Signed-off-by: Alamy Liu <[email protected]>
Signed-off-by: Antonio Borneo <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/3274
Tested-by: jenkins
2026-10-11 09:53:34 +00:00
Daniel Anselmi 3964780dc4 server/ipdbg.c: remove trailing '.' from help strings.
Removed trailing '.' in help strings in server/ipdbg.c.

Change-Id: I7d024e81fb84b60ed4b27b236093d17f546f5189
Signed-off-by: Daniel Anselmi <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/9938
Reviewed-by: Antonio Borneo <[email protected]>
Tested-by: jenkins
2026-10-11 09:52:17 +00:00
Daniel Anselmi 12122ff80e ipdbg: add commands to list hubs and services
Adding commands to list created hubs and active connections
on hubs. This is useful to debug configuration problems.

Change-Id: Ifb8bea7e64e172f15cd861e86edf3412ae232352
Signed-off-by: Daniel Anselmi <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/9356
Reviewed-by: Antonio Borneo <[email protected]>
Tested-by: jenkins
2026-10-11 09:52:06 +00:00
daniellizewski 0f08cd3779 src/server/gdb_server.c: Prevent target string from corrupting XML
There are a few places in gdb_server.c where strings are taken directly
from target memory and placed in an XML message to GDB. If the string
contained XML reserved characters or control characters, GDB would drop
the entire message with
"warning: while parsing threads: not well-formed (invalid token)"
resulting in loss of debugging.
This patch escapes valid XML reserve characters and replaces non-ascii
characters with '?' so a thread name like "<foo>" can't corrupt the
entire message. XML escaping was removed from ecos.c to avoid double
escaping.

Change-Id: Iba1d29a57b1aab8723a4c66339399e948e2e14af
Signed-off-by: daniellizewski <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/10008
Tested-by: jenkins
Reviewed-by: Tomas Vanek <[email protected]>
Reviewed-by: Antonio Borneo <[email protected]>
2026-10-10 09:09:56 +00:00
Ryan QIAN 7eaf547cc7 tcl: add hpm5100 and hpm5100evk configs
- add target config file for hpm5100 and hpm5100evk

Change-Id: Iad6721ed06de81f8082728802aa64c0703a42ad1
Signed-off-by: Ryan QIAN <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/10074
Tested-by: jenkins
Reviewed-by: Tomas Vanek <[email protected]>
2026-10-10 09:09:16 +00:00
Ryan QIAN 55201069e5 contrib/loaders/flash/hpmicro: stop clean from deleting the tracked blob
- make clean removed hpm_xpi_flash.inc, a tracked file the hpm_xpi flash
  driver includes, so a failed rebuild after clean left the driver broken
  in the working tree. also clean the generated map file, which the rule
  missed.

Change-Id: I3a5e8cf41c9ce31112a418ab3e83971827e6637c
Signed-off-by: Ryan QIAN <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/10073
Tested-by: jenkins
Reviewed-by: Tomas Vanek <[email protected]>
2026-10-10 09:09:07 +00:00
Ryan QIAN ca0f021e78 contrib/loaders/flash/hpmicro: enable fpu before calling rom apis
- rom routines on some devices, early hpm6200 for example, use floating
  point in their calculations. the loader is entered with mstatus.FS
  clear, so the first fp instruction in rom code traps and the flash
  operation fails on the target.

Change-Id: Idf108f6ee4a6ab42412fcb756cbdb1700bbc6d4f
Signed-off-by: Ryan QIAN <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/10072
Tested-by: jenkins
Reviewed-by: Tomas Vanek <[email protected]>
2026-10-10 09:08:56 +00:00
Ryan QIAN 77a277fd64 contrib/loaders/flash/hpmicro: fix hybrid xpi support check
- not only the romapi version, but it still needs to check if the
  corresponding api is available.

Change-Id: I45fdd86a979bf99122758a627234cd8f57fc5621
Signed-off-by: Ryan QIAN <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/9599
Reviewed-by: Tomas Vanek <[email protected]>
Tested-by: jenkins
2026-10-10 09:08:43 +00:00
Tomas Vanek 1232e7e1f0 flash/nor: fix some stubs
Do not return ERROR_OK if erase_check of not memory mapped SPI
flash is not implemented. Log error and return ERROR_NOT_IMPLEMENTED.

msp432: do not pretend that protect check is implemented.
Drop the stub.

Change-Id: I81c490770b615b496b7046d4e895eeccf7e92a0d
Signed-off-by: Tomas Vanek <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/10003
Reviewed-by: zapb <[email protected]>
Tested-by: jenkins
2026-10-10 09:08:06 +00:00
Marc Schink 8da0578d7b tcl/fpga/altera/cyclone-iv: Fix typo in variable name
Correct the variable name from '_CYCLON_4_DATA' to '_CYCLONE_4_DATA' to
resolve the following error:

tcl/fpga/altera/cyclone-iv.cfg:40: Error: can't read "_CYCLONE_4_DATA": no such variable

Change-Id: I9289f20b1b58844ad87e5e9183e37ebf29ba1fa2
Signed-off-by: Marc Schink <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/10046
Tested-by: jenkins
Reviewed-by: Daniel Anselmi <[email protected]>
Reviewed-by: Antonio Borneo <[email protected]>
2026-10-04 13:54:40 +00:00
Marc Schink 8fff75b98e tcl: Move Altera configs into vendor folder
Move the configuration files into a dedicated vendor folder as required
by the developer guidelines. Additionally, move files from 'cpld' to 'fpga'
subfolder since the devices are FPGAs, not CPLDs.

Change-Id: I21481ec9c66efc9a7bdb1367687c29b29901e2fc
Signed-off-by: Marc Schink <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/10045
Reviewed-by: Antonio Borneo <[email protected]>
Tested-by: jenkins
2026-10-04 13:54:22 +00:00
Marc Schink 5e971aef13 tcl/fpga: Move Xilinx utility files into vendor folder
Move the utility files into a dedicated vendor folder as required by the
developer guidelines.

Change-Id: Ic6ebb24e06558733b08a0f2337bfa0ceafb053ca
Signed-off-by: Marc Schink <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/10032
Reviewed-by: Antonio Borneo <[email protected]>
Tested-by: jenkins
2026-10-04 13:53:27 +00:00
Marc Schink 71a6efd637 tcl/fpga/xlnx: Explicitly select JTAG as transport
Since commit 9a5de74423 ("transport: deprecate auto-selection of
transport"), auto-selection triggers a deprecation warning. Explicitly
select JTAG as transport for Xilinx FPGAs to resolve this warning and
remove the (now) unnecessary transport selection from the affected board
files.

Change-Id: I201b37f54aab5951b3b44e3e40ac217a1ac68849
Signed-off-by: Marc Schink <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/10031
Reviewed-by: Tomas Vanek <[email protected]>
Reviewed-by: Antonio Borneo <[email protected]>
Tested-by: jenkins
2026-10-04 13:53:05 +00:00
Marc Schink 0b155094f4 tcl: Move Xilinx configs into vendor folder
Move the configuration files into a dedicated vendor folder as required
by the developer guidelines. Additionally, move files from 'cpld' to 'fpga'
subfolder since the devices are FPGAs, not CPLDs.

Change-Id: I8bb3686b4d59b285e7e53f9f238569f751ef2787
Signed-off-by: Marc Schink <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/10030
Tested-by: jenkins
Reviewed-by: Antonio Borneo <[email protected]>
2026-10-04 13:51:25 +00:00
Marc Schink 36be448f19 tcl/fpga: Move Gowin configs into vendor folder
Move the configuration file into a dedicated vendor folder as required
by the developer guidelines.

Change-Id: Ia0eb415a1f69428c635093c6d542c09acd811e08
Signed-off-by: Marc Schink <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/10011
Reviewed-by: Antonio Borneo <[email protected]>
Tested-by: jenkins
2026-10-04 13:51:13 +00:00
Marc Schink 921daeadd7 tcl/fpga: Move Efinix configs into vendor folder
Move the configuration file into a dedicated vendor folder as required
by the developer guidelines.

Change-Id: I7a9c72e9bfca9578f1bc7fe394913437b796d6fa
Signed-off-by: Marc Schink <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/10010
Reviewed-by: Antonio Borneo <[email protected]>
Tested-by: jenkins
2026-10-04 13:51:02 +00:00
Marc Schink 2e03dfa6b8 tcl/fpga: Move Lattice configs into vendor folder
Move the configuration file into a dedicated vendor folder as required
by the developer guidelines.

Some configuration file names are adjusted to match the vendor's
official names.

Change-Id: Ic64a94d4e4da92dd80200e9d0f30dda98bc0558b
Signed-off-by: Marc Schink <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/10009
Tested-by: jenkins
Reviewed-by: Antonio Borneo <[email protected]>
2026-10-04 13:50:47 +00:00
Marc Schink 046dbd9790 doc: Fix virtex2 'pld load' example usage
Use the correct board filename and use the pld name instead of the
deprecated index number.

Change-Id: I869a9dbf752cdef6b8741a28ba8307a1f9d94318
Signed-off-by: Marc Schink <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/10019
Reviewed-by: Daniel Anselmi <[email protected]>
Tested-by: jenkins
Reviewed-by: Antonio Borneo <[email protected]>
2026-10-04 13:46:39 +00:00
Marc Schink c81d880ef0 tcl/board: Fix 'pld load' command usage
Using an index number in the 'pld load' command has been deprecated in
commit 5ae0264055 ("pld: give devices a name for referencing in
scripts"). Adapt the example commands accordingly.

Change-Id: Iad1ea44341a6fc407b1284c8fdaf22b7da683486
Signed-off-by: Marc Schink <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/10018
Reviewed-by: Daniel Anselmi <[email protected]>
Tested-by: jenkins
Reviewed-by: Antonio Borneo <[email protected]>
2026-10-04 13:46:26 +00:00
Matthew Waltz 85193e2805 target/riscv: fix trigger bookkeeping limit
riscv_enumerate_triggers() used trigger_tinfo[]
size to set r->trigger_count. Later code uses that
count to index trigger_unique_id[] as well, which
is bounded by RISCV_MAX_HWBPS rather than
RISCV_MAX_TRIGGERS, leading to crashes on OOB
accesses.

The out-of-bounds access could happen in loops such
as find_next_free_trigger(), which reads
trigger_unique_id[i], and
riscv_trigger_detect_hit_bits().

If the target reports more triggers than OpenOCD
supports, a warning is also logged.

Change-Id: Icbcd6cec0e1e9a8a44420f87288e52fd0f3542c3
Signed-off-by: Matthew Waltz <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/9802
Tested-by: jenkins
Reviewed-by: Antonio Borneo <[email protected]>
Reviewed-by: Evgeniy Naydanov <[email protected]>
2026-10-04 13:40:58 +00:00
Konrad Dybcio d3ebb8d2b9 adapter/eud: Fold trailing idle clocks into the queue buffer
An SWD transaction must be followed by another transaction or at least
8 idle clocks to clock data through the AP. Ensure a queue-ending transfer
gets those clocks, reusing its AP delay when possible.

Reserve space in the output FIFO for a possible trailing DITMS command.

Reported-by: Tomas Vanek <[email protected]>
Change-Id: I11e69ca7087bfc1d4e932476429f1925379abc88
Signed-off-by: Konrad Dybcio <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/10033
Tested-by: jenkins
Reviewed-by: Tomas Vanek <[email protected]>
2026-10-02 19:46:01 +00:00
Mark O'Donovan 12b9cfbe4c tcl/target: Add max32666.cfg
Config file added and tested on max32666 EV kit

Change-Id: I26064bf36e491a75fb65759a560d287468ab0c47
Signed-off-by: Mark O'Donovan <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/9472
Reviewed-by: Tomas Vanek <[email protected]>
Tested-by: jenkins
Reviewed-by: Henrik Mau <[email protected]>
2026-10-02 19:44:32 +00:00
Mark O'Donovan a9137f4b33 tcl/target/max32xxx: add TODO to check enable_debug()
According to Tomas Vanek:
    enable_debug() is just a simplified version of halt command.
    No idea why the Tcl re-implementation is necessary...

Change-Id: If1533ffac1d5e8537c5858e28d487aef84a5d572
Signed-off-by: Mark O'Donovan <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/9632
Tested-by: jenkins
Reviewed-by: Tomas Vanek <[email protected]>
2026-10-02 19:44:09 +00:00
Tomas Vanek 9ce48f20ba jtag/drivers/linuxspidev: release resources if init fails
The adapter driver leaked allocated memory and didn't close
fd if some init call failed.

Call spidev_quit() in such case, it is safe to call
in any state including partial initialization.

Change-Id: I4dbd8377ac8a7587db0b3ceac32776b417cfba9b
Signed-off-by: Tomas Vanek <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/9988
Reviewed-by: Tomas Vanek <[email protected]>
Tested-by: jenkins
Reviewed-by: Richard Pasek <[email protected]>
2026-10-01 20:08:11 +00:00
Tomas Vanek 221e8fe6c5 jtag/drivers: initialize SRST before other signals
If reset is configured with option connect_assert_srst, SRST signal
should be asserted early, best before init of other JTAG/SWD signals
to avoid conflict when both adapter and target device drive
the same wire.

Change the order of GPIO initialization in 3 bitbang drivers.

Change-Id: I35a0d566c68ecc52ad89822efeb534e3e91ce628
Signed-off-by: Tomas Vanek <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/9927
Tested-by: jenkins
Reviewed-by: Tomas Vanek <[email protected]>
2026-10-01 20:07:57 +00:00
Tomas Vanek 8ff92b6833 jtag/adapter: honour connect_assert_srst in gpio init
If reset is configured with option connect_assert_srst, SRST signal
should be asserted early, best before init of other JTAG/SWD signals
to avoid conflict when both adapter and target device drive
the same wire.

Add setting of adapter_config.gpio init_state to
sync_adapter_reset_with_gpios().

Change-Id: I614800c2d6661113ce4d2497f31eaddea151e606
Signed-off-by: Tomas Vanek <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/9926
Tested-by: jenkins
Reviewed-by: Tomas Vanek <[email protected]>
2026-10-01 20:07:33 +00:00
stfnbr fbc480aa16 flash/nor, tcl/target: add PAC55XX
add flash driver and config file for PAC55XX

Change-Id: Ica2966995fc4a6e25df66a782cf87c978459ec5f
Signed-off-by: stfnbr <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/9701
Tested-by: jenkins
Reviewed-by: Tomas Vanek <[email protected]>
2026-10-01 20:04:18 +00:00
Tomas Vanek 68ae032362 jtag: factor out tap_set_end_state_stable()
Almost all of the JTAG drivers have a driver-local function
*_end_state().
Introduce a single function, tap_set_end_state_stable(), which will
be called by the individual drivers as soon as they have correct
error passing implemented.
Use it in cmsis_dap.c and jlink.c, and remove the driver-local functions.

Checkpatch-ignore: BAD_SIGN_OFF
Assisted-by: Github Copilot
Change-Id: I5b9aa64db555b301c6b61e05896a4a5b7da5f842
Signed-off-by: Tomas Vanek <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/10000
Reviewed-by: Antonio Borneo <[email protected]>
Reviewed-by: Evgeniy Naydanov <[email protected]>
Tested-by: jenkins
2026-10-01 20:01:52 +00:00
Tomas Vanek 61bfea112f jtag/drivers/jlink: implement error passing for JTAG
Replace fatal exit(-1) TAP errors with OpenOCD error codes.
Propagate jlink_flush() failures through scans, state moves,
runtest, stable clocks, sleep, reset, and initialization.
Preserve jlink_execute_queue() error handling.

Checkpatch-ignore: BAD_SIGN_OFF
Assisted-by: Github Copilot
Change-Id: I28f7e2f786c07890606da81d57055e728c7f5890
Signed-off-by: Tomas Vanek <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/9999
Tested-by: jenkins
Reviewed-by: zapb <[email protected]>
2026-10-01 20:01:31 +00:00
Tomas Vanek 4b4e682b3d jtag/drivers/cmsis_dap: add JTAG transfer response size checks
Check response size during copying the pending scans results.

Change-Id: I1d427f2d0d6172ded122860993cfb724e0d86a2d
Signed-off-by: Tomas Vanek <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/9968
Tested-by: jenkins
Reviewed-by: Antonio Borneo <[email protected]>
Reviewed-by: Tomas Vanek <[email protected]>
2026-10-01 20:00:55 +00:00
Antonio Borneo 21f88d7815 doc: fix incorrect @xref
Fix build warning
	openocd.texi:10377: warning: `.' or `,' must follow @xref, not f
by adding a ','.

Fixes: b04ccfeff7 ("target: Add calculate_checksum command")
Change-Id: If7ca9a018beba4abdf1026cf776a32401eff0d85
Signed-off-by: Antonio Borneo <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/10021
Tested-by: jenkins
2026-09-26 16:33:58 +00:00
Marc Schink 1b649f4b28 tcl: Remove remaining references to 'usb_blaster device_desc'
The commit 4afd8852bb ("Remove remaining references to FTD2XX driver")
removed the 'usb_blaster device_desc' command but not all its
references.

Since the command has been already removed in 0.12, simply drop all
references.

Change-Id: I0977c4058ac5682be05f55063c9c636e4f32b08d
Signed-off-by: Marc Schink <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/10006
Tested-by: jenkins
Reviewed-by: Tomas Vanek <[email protected]>
Reviewed-by: Antonio Borneo <[email protected]>
2026-09-26 16:16:58 +00:00
Marc Schink e8bdc200ff tcl/board: Move Hilscher configs into vendor folder
Move the configuration file into a dedicated vendor folder as required
by the developer guidelines.

Change-Id: Iacc728d5570df31d2a20df5e08051103909ca37c
Signed-off-by: Marc Schink <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/10005
Reviewed-by: Antonio Borneo <[email protected]>
Tested-by: jenkins
2026-09-26 16:16:20 +00:00
Marc Schink a2e40d581f tcl/target: Move Hilscher configs into vendor folder
Move the configuration file into a dedicated vendor folder as required
by the developer guidelines.

Change-Id: I7e3d7f48001deadcbf72bfcc8b05b2f963a7e34c
Signed-off-by: Marc Schink <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/10004
Reviewed-by: Antonio Borneo <[email protected]>
Tested-by: jenkins
2026-09-26 16:16:13 +00:00
Patrick Oppenlander 46d9b606b2 server: gdb: fix qSupported feature flags
Commit db48769729 ("server: gdb: add support for 'x' packet")
reordered the qSupported feature string without reordering the
corresponding arguments.

Fixes: db48769729 ("server: gdb: add support for 'x' packet")
Change-Id: Ida7fc93659383ad13bf036c245f035c265bca50d
Signed-off-by: Patrick Oppenlander <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/10024
Tested-by: jenkins
Reviewed-by: Evgeniy Naydanov <[email protected]>
Reviewed-by: Antonio Borneo <[email protected]>
2026-09-22 15:52:49 +00:00
Tomas Vanek 8136bc6cea jtag/drivers/cmsis_dap: implement error passing for JTAG
JTAG transport related part of the driver used exit() calls
in case of errors. exit() was called even on libusb error
returned during data exchange with the adapter.

Pass error codes to the caller instead.

Change-Id: I7038613380ea775fc14fe6116c040a1e956e28d9
Signed-off-by: Tomas Vanek <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/9967
Reviewed-by: Antonio Borneo <[email protected]>
Tested-by: jenkins
2026-09-22 05:58:18 +00:00
Marc Schink b04ccfeff7 target: Add calculate_checksum command
This command allows to calculate the checksum of a memory region to
verify its contents against a known value. Unlike 'verify_image_checksum',
this command requires no file and accepts arbitrary memory addresses and
sizes.

Change-Id: I0f7309999bc7268e58af533695bcfaa3c1a5fc24
Signed-off-by: Marc Schink <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/9971
Reviewed-by: Antonio Borneo <[email protected]>
Tested-by: jenkins
Reviewed-by: Tomas Vanek <[email protected]>
2026-09-20 13:44:25 +00:00
Marc Schink a3277510b3 helper/util.h Add missing #include
Commit 181547327f ("target/breakpoints.c: add breakpoint intersection
detection") introduced is_memory_regions_overlap(). This function uses the
type 'target_addr_t' but does not include the required types.h header file.

Change-Id: Ib050eb2fd8618d2f4e43f1813a7075a99bb17158
Signed-off-by: Marc Schink <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/9970
Tested-by: jenkins
Reviewed-by: Antonio Borneo <[email protected]>
2026-09-20 13:44:19 +00:00
Antonio Borneo e9bb3f487b doc: document the command 'services'
Document the command and add an example.

Fixes: 43441cd83b ("server: add 'services' command to list service information")
Change-Id: I3b82ee634072c8ec1f18361a3d91c992eeea96d9
Signed-off-by: Antonio Borneo <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/9957
Tested-by: jenkins
Reviewed-by: Tim Hutt <[email protected]>
2026-09-20 13:41:40 +00:00
Antonio Borneo 95cd013e53 target: deprecate 'fast_load' and 'fast_load_image' commands
The pair of commands 'fast_load' and 'fast_load_image' where
introduced in 2008 with [1] inside the 'ecosboard.c' file, part of
the obsoleted Zylin zy1000 project, then moved to target with [2].
The 'ecosboard' code was then dropped in 2012 with [3].

While the need to split the phases of file reading by OpenOCD from
target writing was probably relevant in the embedded context of
using 'ecosboard', this is now less relevant because OpenOCD runs
in an OS where file I/O is by far faster than the interactions
with the external probe (apart from slow remote filesystems, not
suitable for benchmarking).
To measure write performance, it's also much easier creating a Tcl
array of data and measure the speed of 'write_memory' command.

To reduce the maintenance effort, deprecate the two commands.
Drop the commands from the documentation.

[1] commit fb7189761d ("wip")
[2] commit 459d03e3bb ("fast_load profiling tool moved to target.c")
[3] commit 39650e2273 ("ecosboard: delete bit-rotted eCos code")

Change-Id: I1a53116093402c76afd7b3fc073a41e4a757c1a3
Signed-off-by: Antonio Borneo <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/9953
Reviewed-by: zapb <[email protected]>
Tested-by: jenkins
Reviewed-by: Tomas Vanek <[email protected]>
2026-09-20 13:41:07 +00:00
Kulyatskaya Alexandra db48769729 server: gdb: add support for 'x' packet
Implement the binary memory read GDB packet 'x addr,length'.
Add bounds check for packet length.

Change-Id: I7e4aab1c5e9fd26bb03f19f133b9d94aee7f22a1
Signed-off-by: Kulyatskaya Alexandra <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/9579
Tested-by: jenkins
Reviewed-by: Antonio Borneo <[email protected]>
2026-09-20 13:40:06 +00:00