OpenOCD
esp_algorithm.c File Reference
Include dependency graph for esp_algorithm.c:

Go to the source code of this file.

Macros

#define DEFAULT_ALGORITHM_TIMEOUT_MS   40000 /* ms */
 

Functions

int esp_algorithm_exec_func_image_va (struct target *target, struct esp_algorithm_run_data *run, uint32_t num_args, va_list ap)
 
int esp_algorithm_exec_onboard_func_va (struct target *target, struct esp_algorithm_run_data *run, uint32_t num_args, va_list ap)
 
int esp_algorithm_load_func_image (struct target *target, struct esp_algorithm_run_data *run)
 
int esp_algorithm_load_onboard_func (struct target *target, target_addr_t func_addr, struct esp_algorithm_run_data *run)
 
static int esp_algorithm_read_stub_logs (struct target *target, struct esp_algorithm_stub *stub)
 
static int esp_algorithm_run_debug_stub (struct target *target, struct esp_algorithm_run_data *run, uint32_t num_args, va_list ap)
 
static int esp_algorithm_run_image (struct target *target, struct esp_algorithm_run_data *run, uint32_t num_args, va_list ap)
 
int esp_algorithm_unload_func_image (struct target *target, struct esp_algorithm_run_data *run)
 
int esp_algorithm_unload_onboard_func (struct target *target, struct esp_algorithm_run_data *run)
 
static int load_section_from_image (struct target *target, struct esp_algorithm_run_data *run, int section_num, bool reverse)
 
static void reverse_binary (const uint8_t *src, uint8_t *dest, size_t length)
 

Macro Definition Documentation

◆ DEFAULT_ALGORITHM_TIMEOUT_MS

#define DEFAULT_ALGORITHM_TIMEOUT_MS   40000 /* ms */

Definition at line 17 of file esp_algorithm.c.

Function Documentation

◆ esp_algorithm_exec_func_image_va()

int esp_algorithm_exec_func_image_va ( struct target target,
struct esp_algorithm_run_data run,
uint32_t  num_args,
va_list  ap 
)

◆ esp_algorithm_exec_onboard_func_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().

◆ esp_algorithm_load_func_image()

◆ esp_algorithm_load_onboard_func()

◆ esp_algorithm_read_stub_logs()

static int esp_algorithm_read_stub_logs ( struct target target,
struct esp_algorithm_stub stub 
)
static

◆ esp_algorithm_run_debug_stub()

◆ esp_algorithm_run_image()

◆ esp_algorithm_unload_func_image()

◆ esp_algorithm_unload_onboard_func()

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().

◆ load_section_from_image()

◆ reverse_binary()

static void reverse_binary ( const uint8_t *  src,
uint8_t *  dest,
size_t  length 
)
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().