flash_exec_command_handlers is only used within OpenOCD.
 
Symbols
loading...
Files
loading...
CodeScopeDevelopment ToolsOpenOCDflash_exec_command_handlers

flash_exec_command_handlers variable

Syntax

static const struct command_registration flash_exec_command_handlers[] = { { .name = "probe", .handler = handle_flash_probe_command, .mode = COMMAND_EXEC, .usage = "bank_id", .help = "Identify a flash bank.", }, { .name = "info", .handler = handle_flash_info_command, .mode = COMMAND_EXEC, .usage = "bank_id ['sectors']", .help = "Print information about a flash bank.", }, { .name = "erase_check", .handler = handle_flash_erase_check_command, .mode = COMMAND_EXEC, .usage = "bank_id", .help = "Check erase state of all blocks in a " "flash bank.", }, { .name = "erase_sector", .handler = handle_flash_erase_command, .mode = COMMAND_EXEC, .usage = "bank_id first_sector_num (last_sector_num|'last')", .help = "Erase a range of sectors in a flash bank.", }, { .name = "erase_address", .handler = handle_flash_erase_address_command, .mode = COMMAND_EXEC, .usage = "['pad'] ['unlock'] address length", .help = "Erase flash sectors starting at address and " "continuing for length bytes. If 'pad' is specified, " "data outside that range may also be erased: the start " "address may be decreased, and length increased, so " "that all of the first and last sectors are erased. " "If 'unlock' is specified, then the flash is unprotected " "before erasing.", }, { .name = "filld", .handler = handle_flash_fill_command, .mode = COMMAND_EXEC, .usage = "address value n", .help = "Fill n double-words with 64-bit value, starting at " "word address. (No autoerase.)", }, { .name = "fillw", .handler = handle_flash_fill_command, .mode = COMMAND_EXEC, .usage = "address value n", .help = "Fill n words with 32-bit value, starting at " "word address. (No autoerase.)", }, { .name = "fillh", .handler = handle_flash_fill_command, .mode = COMMAND_EXEC, .usage = "address value n", .help = "Fill n halfwords with 16-bit value, starting at " "word address. (No autoerase.)", }, { .name = "fillb", .handler = handle_flash_fill_command, .mode = COMMAND_EXEC, .usage = "address value n", .help = "Fill n bytes with 8-bit value, starting at " "word address. (No autoerase.)", }, { .name = "mdb", .handler = handle_flash_md_command, .mode = COMMAND_EXEC, .usage = "address [count]", .help = "Display bytes from flash.", }, { .name = "mdh", .handler = handle_flash_md_command, .mode = COMMAND_EXEC, .usage = "address [count]", .help = "Display half-words from flash.", }, { .name = "mdw", .handler = handle_flash_md_command, .mode = COMMAND_EXEC, .usage = "address [count]", .help = "Display words from flash.", }, { .name = "write_bank", .handler = handle_flash_write_bank_command, .mode = COMMAND_EXEC, .usage = "bank_id filename [offset]", .help = "Write binary data from file to flash bank. Allow optional " "offset from beginning of the bank (defaults to zero).", }, { .name = "write_image", .handler = handle_flash_write_image_command, .mode = COMMAND_EXEC, .usage = "[erase] [unlock] filename [offset [file_type]]", .help = "Write an image to flash. Optionally first unprotect " "and/or erase the region to be used. Allow optional " "offset from beginning of bank (defaults to zero)", }, { .name = "verify_image", .handler = handle_flash_verify_image_command, .mode = COMMAND_EXEC, .usage = "filename [offset [file_type]]", .help = "Verify an image against flash. Allow optional " "offset from beginning of bank (defaults to zero)", }, { .name = "read_bank", .handler = handle_flash_read_bank_command, .mode = COMMAND_EXEC, .usage = "bank_id filename [offset [length]]", .help = "Read binary data from flash bank to file. Allow optional " "offset from beginning of the bank (defaults to zero).", }, { .name = "verify_bank", .handler = handle_flash_verify_bank_command, .mode = COMMAND_EXEC, .usage = "bank_id filename [offset]", .help = "Compare the contents of a file with the contents of the " "flash bank. Allow optional offset from beginning of the bank " "(defaults to zero).", }, { .name = "protect", .handler = handle_flash_protect_command, .mode = COMMAND_EXEC, .usage = "bank_id first_block [last_block|'last'] " "('on'|'off')", .help = "Turn protection on or off for a range of protection " "blocks or sectors in a given flash bank. " "See 'flash info' output for a list of blocks.", }, { .name = "padded_value", .handler = handle_flash_padded_value_command, .mode = COMMAND_EXEC, .usage = "bank_id value", .help = "Set default flash padded value", }, COMMAND_REGISTRATION_DONE };

References

LocationReferrerText
tcl.c:1076
static const struct command_registration flash_exec_command_handlers[] = {
tcl.c:1240flash_init_drivers()
return register_commands(cmd_ctx, "flash", flash_exec_command_handlers);

Data Use

Functions reading flash_exec_command_handlers
flash_exec_command_handlers
all items filtered out
Type of flash_exec_command_handlers
flash_exec_command_handlers
all items filtered out