Files
sw_openocd/src/target
Antonio Borneo 3c1bd50217 target: clean up return value of target_type::blank_check_memory()
The functions in struct target_type::blank_check_memory() return
either an OpenOCD error or a positive value that indicates the
number of blocks checked.

To prevent the mix of error codes and returned values, return the
value through an additional parameter 'checked' and then return
ERROR_OK.

While there:
- change to unsigned int the parameter 'num_blocks';
- in armv7m_blank_check_memory() verify that the working area can
  contain at least two 'algo_block'.

Change-Id: Ie22f5816819bc77ec611c3f251373d026ed9f784
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/9386
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
2026-02-15 18:14:12 +00:00
..
2025-02-16 16:24:41 +00:00
2022-09-13 22:13:58 +00:00
2024-06-23 09:30:43 +00:00
2024-06-23 09:30:43 +00:00
2022-09-13 22:13:58 +00:00
2025-09-06 11:41:33 +00:00
2022-09-13 22:13:58 +00:00
2025-08-02 12:59:33 +00:00