OpenOCD
|
Go to the source code of this file.
Macros | |
#define | DEFAULT_ALGORITHM_TIMEOUT_MS 40000 /* ms */ |
#define DEFAULT_ALGORITHM_TIMEOUT_MS 40000 /* ms */ |
Definition at line 17 of file esp_algorithm.c.
int esp_algorithm_exec_func_image_va | ( | struct target * | target, |
struct esp_algorithm_run_data * | run, | ||
uint32_t | num_args, | ||
va_list | ap | ||
) |
Definition at line 518 of file esp_algorithm.c.
References ERROR_FAIL, esp_algorithm_run_image(), esp_algorithm_run_data::image, esp_algorithm_image::image, image::start_address, and image::start_address_set.
Referenced by esp_algorithm_run_func_image_va().
int esp_algorithm_exec_onboard_func_va | ( | struct target * | target, |
struct esp_algorithm_run_data * | run, | ||
uint32_t | num_args, | ||
va_list | ap | ||
) |
Definition at line 589 of file esp_algorithm.c.
References esp_algorithm_run_debug_stub().
Referenced by esp_algorithm_run_onboard_func_va().
int esp_algorithm_load_func_image | ( | struct target * | target, |
struct esp_algorithm_run_data * | run | ||
) |
Definition at line 299 of file esp_algorithm.c.
References working_area::address, ALIGN_UP, target::backup_working_area, imagesection::base_address, image::base_address, image::base_address_set, esp_algorithm_image::bss_size, esp_algorithm_stub::code, esp_algorithm_stub::data, esp_algorithm_image::dram_org, duration_elapsed(), duration_measure(), duration_start(), esp_algorithm_stub::entry, ERROR_FAIL, ERROR_OK, ERROR_TARGET_RESOURCE_NOT_AVAILABLE, esp_algorithm_unload_func_image(), ESP_IMAGE_ELF_PHF_EXEC, imagesection::flags, esp_algorithm_run_data::hw, esp_algorithm_run_data::image, esp_algorithm_image::image, esp_algorithm_image::iram_len, esp_algorithm_image::iram_org, load_section_from_image(), LOG_DEBUG, LOG_ERROR, NULL, image::num_sections, esp_algorithm_stub::padding, esp_algorithm_image::reverse, reverse_binary(), image::sections, imagesection::size, esp_algorithm_stub::stack, esp_algorithm_stub::stack_addr, esp_algorithm_run_data::stack_size, image::start_address, esp_algorithm_run_data::stub, esp_algorithm_hw::stub_tramp_get, TARGET_ADDR_FMT, target_alloc_working_area(), target_write_buffer(), esp_algorithm_stub::tramp, esp_algorithm_stub::tramp_addr, and esp_algorithm_stub::tramp_mapped_addr.
Referenced by esp_algorithm_run_func_image_va().
int esp_algorithm_load_onboard_func | ( | struct target * | target, |
target_addr_t | func_addr, | ||
struct esp_algorithm_run_data * | run | ||
) |
Definition at line 529 of file esp_algorithm.c.
References duration_elapsed(), duration_measure(), duration_start(), esp_algorithm_stub::entry, ERROR_FAIL, ERROR_OK, ERROR_TARGET_RESOURCE_NOT_AVAILABLE, esp_algorithm_unload_onboard_func(), esp_algorithm_run_data::hw, LOG_DEBUG, LOG_ERROR, NULL, esp_algorithm_run_data::on_board, esp_algorithm_stub::stack_addr, esp_algorithm_run_data::stack_size, esp_algorithm_run_data::stub, esp_algorithm_hw::stub_tramp_get, target_write_buffer(), esp_algorithm_stub::tramp_addr, and esp_algorithm_stub::tramp_mapped_addr.
Referenced by esp_algorithm_run_onboard_func_va().
|
static |
Definition at line 19 of file esp_algorithm.c.
References ERROR_FAIL, ERROR_OK, esp_algorithm_stub::log_buff_addr, esp_algorithm_stub::log_buff_size, LOG_ERROR, LOG_OUTPUT, target_read_memory(), and target_read_u32().
Referenced by esp_algorithm_run_image().
|
static |
Definition at line 153 of file esp_algorithm.c.
References esp_algorithm_stub::ainfo, esp_algorithm_hw::algo_cleanup, esp_algorithm_hw::algo_init, esp_algorithm_mem_args::count, esp_algorithm_reg_args::count, DEFAULT_ALGORITHM_TIMEOUT_MS, ERROR_FAIL, ERROR_OK, esp_algorithm_user_arg_get_uint(), esp_algorithm_run_data::hw, LOG_DEBUG, LOG_ERROR, esp_algorithm_run_data::mem_args, esp_algorithm_mem_args::params, esp_algorithm_reg_args::params, esp_algorithm_run_data::reg_args, esp_algorithm_run_data::ret_code, esp_algorithm_stub::stack_addr, esp_algorithm_run_data::stack_size, esp_algorithm_run_data::stub, TARGET_ADDR_FMT, target_start_algorithm(), target_wait_algorithm(), esp_algorithm_run_data::timeout_ms, and esp_algorithm_stub::tramp_mapped_addr.
Referenced by esp_algorithm_exec_onboard_func_va().
|
static |
Definition at line 45 of file esp_algorithm.c.
References mem_param::address, working_area::address, esp_algorithm_stub::ainfo, esp_algorithm_hw::algo_cleanup, esp_algorithm_hw::algo_init, alive_sleep(), esp_algorithm_mem_args::count, esp_algorithm_reg_args::count, DEFAULT_ALGORITHM_TIMEOUT_MS, ERROR_FAIL, ERROR_OK, ERROR_TARGET_RESOURCE_NOT_AVAILABLE, esp_algorithm_read_stub_logs(), esp_algorithm_user_arg_get_uint(), esp_algorithm_user_arg_set_uint(), working_area::free, esp_algorithm_run_data::hw, LOG_DEBUG, LOG_ERROR, esp_algorithm_run_data::mem_args, NULL, esp_algorithm_mem_args::params, esp_algorithm_reg_args::params, esp_algorithm_run_data::reg_args, esp_algorithm_run_data::ret_code, mem_param::size, esp_algorithm_stub::stack_addr, esp_algorithm_run_data::stack_size, esp_algorithm_run_data::stub, TARGET_ADDR_FMT, target_alloc_working_area(), target_free_working_area(), target_start_algorithm(), target_wait_algorithm(), esp_algorithm_run_data::timeout_ms, esp_algorithm_stub::tramp_mapped_addr, esp_algorithm_run_data::usr_func, esp_algorithm_run_data::usr_func_arg, esp_algorithm_run_data::usr_func_done, and esp_algorithm_run_data::usr_func_init.
Referenced by esp_algorithm_exec_func_image_va().
int esp_algorithm_unload_func_image | ( | struct target * | target, |
struct esp_algorithm_run_data * | run | ||
) |
Definition at line 502 of file esp_algorithm.c.
References esp_algorithm_stub::code, esp_algorithm_stub::data, ERROR_FAIL, ERROR_OK, NULL, esp_algorithm_stub::padding, esp_algorithm_stub::stack, esp_algorithm_run_data::stub, target_free_all_working_areas(), and esp_algorithm_stub::tramp.
Referenced by esp_algorithm_load_func_image(), and esp_algorithm_run_func_image_va().
int esp_algorithm_unload_onboard_func | ( | struct target * | target, |
struct esp_algorithm_run_data * | run | ||
) |
Definition at line 584 of file esp_algorithm.c.
References ERROR_OK.
Referenced by esp_algorithm_load_onboard_func(), and esp_algorithm_run_onboard_func_va().
|
static |
Definition at line 227 of file esp_algorithm.c.
References ALIGN_UP, imagesection::base_address, esp_algorithm_image::dram_org, ERROR_FAIL, ERROR_OK, esp_algorithm_run_data::image, esp_algorithm_image::image, image_read_section(), LOG_ERROR, reverse_binary(), image::sections, size, imagesection::size, and target_write_buffer().
Referenced by esp_algorithm_load_func_image().
|
static |
Definition at line 204 of file esp_algorithm.c.
References ALIGN_UP, length, and offset.
Referenced by esp_algorithm_load_func_image(), and load_section_from_image().