target_run_algorithm() is only used within OpenOCD.
 
Symbols
loading...
Files
loading...
CodeScopeDevelopment ToolsOpenOCDtarget_run_algorithm()

target_run_algorithm() function

Downloads a target-specific native code algorithm to the target, and executes it. * Note that some targets may need to set up, enable, and tear down a breakpoint (hard or * soft) to detect algorithm termination, while others may support lower overhead schemes where soft breakpoints embedded in the algorithm automatically terminate the algorithm.

Syntax

int target_run_algorithm(struct target *target,     int num_mem_params,     struct mem_param *mem_params,     int num_reg_params,     struct reg_param *reg_param,     target_addr_t entry_point,     target_addr_t exit_point,     unsigned int timeout_ms,     void *arch_info);
Implemented in target.c:773

Arguments

target

used to run the algorithm

num_mem_params

mem_params

num_reg_params

reg_param

entry_point

exit_point

timeout_ms

arch_info

target-specific description of the algorithm.

References

LocationReferrerText
target.c:773
int target_run_algorithm(struct target *target,
target.h:551
int target_run_algorithm(struct target *target,
FLASHPlugin.c:212loaded_plugin_load()
retval = target_run_algorithm(target, 0, NULL, sizeof(reg_params) / sizeof(reg_params[0]), reg_params, plugin->entry, init_done_address, plugin->timeouts.load, &armv7m_info);
FLASHPlugin.c:579call_plugin_func()
int retval = target_run_algorithm(target, 0, NULL, reg_param_count, reg_params, function, return_addr, timeout, &armv7m_info);
aduc702x.c:226aduc702x_write_block()
retval = target_run_algorithm(target, 0, NULL, 5,
aducm360.c:268aducm360_write_block_sync()
retval = target_run_algorithm(target, 0, NULL, 5,
arm_io.c:169arm_nandwrite()
retval = target_run_algorithm(target, 0, NULL, 3, reg_params,
arm_io.c:275arm_nandread()
retval = target_run_algorithm(target, 0, NULL, 3, reg_params,
armv4_5.c:1648arm_checksum_memory()
retval = target_run_algorithm(target, 0, NULL, 2, reg_params,
armv4_5.c:1729arm_blank_check_memory()
retval = target_run_algorithm(target, 0, NULL, 3, reg_params,
armv7m.c:914armv7m_checksum_memory()
retval = target_run_algorithm(target, 0, NULL, 2, reg_params, crc_algorithm->address,
armv7m.c:1021armv7m_blank_check_memory()
retval = target_run_algorithm(target,
cc3220sf.c:284cc3220sf_write()
retval = target_run_algorithm(target, 0, NULL, 3, reg_params,
cc3220sf.c:346cc3220sf_write()
retval = target_run_algorithm(target, 0, NULL, 3, reg_params,
cc3220sf.c:398cc3220sf_write()
retval = target_run_algorithm(target, 0, NULL, 3, reg_params,
cfi.c:1312cfi_intel_write_block()
retval = target_run_algorithm(target, 0, NULL, 7, reg_params,
cfi.c:1542cfi_spansion_write_block_mips()
retval = target_run_algorithm(target, 0, NULL, 10, reg_params,
cfi.c:1921cfi_spansion_write_block()
retval = target_run_algorithm(target, 0, NULL, 10, reg_params,
em357.c:532em357_write_block()
retval = target_run_algorithm(target, 0, NULL, 4, reg_params,
fespi.c:596fespi_write()
retval = target_run_algorithm(target, 0, NULL,
fm3.c:308fm3_erase()
retval = target_run_algorithm(target, 0, NULL, 3, reg_params,
fm3.c:589fm3_write_block()
retval = target_run_algorithm(target, 0, NULL, 6, reg_params,
fm3.c:906fm3_chip_erase()
retval = target_run_algorithm(target, 0, NULL, 2, reg_params,
fm4.c:159fm4_flash_erase()
retval = target_run_algorithm(target,
fm4.c:296fm4_flash_write()
retval = target_run_algorithm(target,
kinetis.c:1085kinetis_disable_wdog_algo()
retval = target_run_algorithm(target, 0, NULL, 1, reg_params,
kinetis_ke.c:481kinetis_ke_stop_watchdog()
retval = target_run_algorithm(target, 0, NULL, 0, NULL,
lpc2000.c:811lpc2000_iap_call()
target_run_algorithm(target, 2, mem_params, 5, reg_params, iap_working_area->address, 0, 10000,
lpc2000.c:825lpc2000_iap_call()
target_run_algorithm(target, 2, mem_params, 5, reg_params, iap_working_area->address,
lpc2900.c:1260lpc2900_write()
retval = target_run_algorithm(target, 0, NULL, 5, reg_params,
lpcspifi.c:208lpcspifi_set_hw_mode()
retval = target_run_algorithm(target, 0, NULL, 2, reg_params,
lpcspifi.c:542lpcspifi_erase()
retval = target_run_algorithm(target, 0, NULL, 4, reg_params,
mips32.c:1269mips32_checksum_memory()
retval = target_run_algorithm(target, 0, NULL, 2, reg_params, crc_algorithm->address,
mips32.c:1339mips32_blank_check_memory()
retval = target_run_algorithm(target, 0, NULL, 3, reg_params, erase_check_algorithm->address,
msp432p4.c:220msp432p4_run_algo()
retval = target_run_algorithm(target, 0, NULL, 0, NULL,
msp432p4.c:495msp432p4_write()
retval = target_run_algorithm(target, 0, NULL, 0, NULL,
numicro.c:785numicro_writeblock()
retval = target_run_algorithm(target, 0, NULL, 3, reg_params,
pic32mm.c:539pic32mm_call_flash_loader()
int retval = target_run_algorithm(target,
pic32mx.c:543pic32mx_write_block()
retval = target_run_algorithm(target, 0, NULL, 3, reg_params,
psoc4.c:326psoc4_sysreq()
retval = target_run_algorithm(target, 0, NULL,
riscv.c:2057riscv_checksum_memory()
retval = target_run_algorithm(target, 0, NULL, 2, reg_params,
rp2040.c:129rp2040_call_rom_func()
int err = target_run_algorithm(
rs14100.c:168rs14100_init()
retval = target_run_algorithm(target, 0 , NULL, 0 , NULL,
rs14100.c:281rs14100_erase()
retval = target_run_algorithm(target, 0 , NULL, 2 , reg_params,
rsl10.c:375rsl10_ll_flash_erase()
retval = target_run_algorithm(
rsl10.c:472rsl10_ll_flash_write()
retval = target_run_algorithm(
rsl10.c:532rsl10_mass_erase()
retval = target_run_algorithm(
sh_qspi.c:567sh_qspi_write()
ret = target_run_algorithm(target, 0, NULL, 4, reg_params,
sh_qspi.c:635sh_qspi_read()
ret = target_run_algorithm(target, 0, NULL, 4, reg_params,
stm32f1x.c:608stm32x_write_block_riscv()
retval = target_run_algorithm(target,
stm32lx.c:535stm32lx_write_half_pages()
retval = target_run_algorithm(target, 0, NULL,
stm8.c:1757stm8_blank_check_memory()
int retval = target_run_algorithm(target, 2, mem_params, 2, reg_params,
stmqspi.c:1195stmqspi_blank_check()
retval = target_run_algorithm(target,
stmqspi.c:1334qspi_verify()
retval = target_run_algorithm(target,
str7x.c:515str7x_write_block()
retval = target_run_algorithm(target, 0, NULL, 6, reg_params,
str9x.c:413str9x_write_block()
retval = target_run_algorithm(target, 0, NULL, 4, reg_params,
xmc1xxx.c:129xmc1xxx_erase()
retval = target_run_algorithm(target,
xmc1xxx.c:204xmc1xxx_erase_check()
retval = target_run_algorithm(target,
xmc1xxx.c:341xmc1xxx_write()
retval = target_run_algorithm(target,

Call Tree