OpenOCD
|
Go to the source code of this file.
Macros | |
#define | ADUC702X_FLASH 0xfffff800 |
#define | ADUC702X_FLASH_FEEADR (4*4) |
#define | ADUC702X_FLASH_FEECON (2*4) |
#define | ADUC702X_FLASH_FEEDAT (3*4) |
#define | ADUC702X_FLASH_FEEHIDE (7*4) |
#define | ADUC702X_FLASH_FEEMOD (1*4) |
#define | ADUC702X_FLASH_FEEPRO (6*4) |
#define | ADUC702X_FLASH_FEESIGN (5*4) |
#define | ADUC702X_FLASH_FEESTA (0*4) |
Functions | |
static int | aduc702x_build_sector_list (struct flash_bank *bank) |
static int | aduc702x_check_flash_completion (struct target *target, unsigned int timeout_ms) |
static int | aduc702x_erase (struct flash_bank *bank, unsigned int first, unsigned int last) |
static int | aduc702x_probe (struct flash_bank *bank) |
static int | aduc702x_set_write_enable (struct target *target, int enable) |
static int | aduc702x_write (struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count) |
static int | aduc702x_write_block (struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count) |
static int | aduc702x_write_single (struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count) |
FLASH_BANK_COMMAND_HANDLER (aduc702x_flash_bank_command) | |
Variables | |
const struct flash_driver | aduc702x_flash |
#define ADUC702X_FLASH 0xfffff800 |
Definition at line 23 of file aduc702x.c.
#define ADUC702X_FLASH_FEEADR (4*4) |
Definition at line 28 of file aduc702x.c.
#define ADUC702X_FLASH_FEECON (2*4) |
Definition at line 26 of file aduc702x.c.
#define ADUC702X_FLASH_FEEDAT (3*4) |
Definition at line 27 of file aduc702x.c.
#define ADUC702X_FLASH_FEEHIDE (7*4) |
Definition at line 31 of file aduc702x.c.
#define ADUC702X_FLASH_FEEMOD (1*4) |
Definition at line 25 of file aduc702x.c.
#define ADUC702X_FLASH_FEEPRO (6*4) |
Definition at line 30 of file aduc702x.c.
#define ADUC702X_FLASH_FEESIGN (5*4) |
Definition at line 29 of file aduc702x.c.
#define ADUC702X_FLASH_FEESTA (0*4) |
Definition at line 24 of file aduc702x.c.
|
static |
Definition at line 45 of file aduc702x.c.
References bank, ERROR_OK, and offset.
Referenced by FLASH_BANK_COMMAND_HANDLER().
|
static |
Definition at line 347 of file aduc702x.c.
References ADUC702X_FLASH, ADUC702X_FLASH_FEESTA, alive_sleep(), ERROR_FAIL, ERROR_OK, target_read_u8(), and timeval_ms().
Referenced by aduc702x_erase(), and aduc702x_write_single().
|
static |
Definition at line 65 of file aduc702x.c.
References aduc702x_check_flash_completion(), ADUC702X_FLASH, ADUC702X_FLASH_FEEADR, ADUC702X_FLASH_FEECON, ADUC702X_FLASH_FEEDAT, aduc702x_set_write_enable(), bank, count, ERROR_FLASH_OPERATION_FAILED, ERROR_FLASH_SECTOR_NOT_ERASED, ERROR_OK, LOG_DEBUG, LOG_ERROR, target_write_u16(), and target_write_u8().
|
static |
Definition at line 327 of file aduc702x.c.
References ERROR_OK.
|
static |
Definition at line 334 of file aduc702x.c.
References ADUC702X_FLASH, ADUC702X_FLASH_FEEMOD, ERROR_OK, and target_write_u16().
Referenced by aduc702x_erase(), and aduc702x_write_single().
|
static |
Definition at line 304 of file aduc702x.c.
References aduc702x_write_block(), aduc702x_write_single(), bank, buffer, count, ERROR_FLASH_OPERATION_FAILED, ERROR_OK, ERROR_TARGET_RESOURCE_NOT_AVAILABLE, LOG_ERROR, LOG_WARNING, and offset.
|
static |
Definition at line 121 of file aduc702x.c.
References working_area::address, ARM_COMMON_MAGIC, ARM_MODE_SVC, ARM_STATE_ARM, ARRAY_SIZE, bank, buf_get_u32(), buf_set_u32(), buffer, arm_algorithm::common_magic, arm_algorithm::core_mode, arm_algorithm::core_state, count, destroy_reg_param(), ERROR_FAIL, ERROR_OK, ERROR_TARGET_RESOURCE_NOT_AVAILABLE, init_reg_param(), LOG_ERROR, LOG_WARNING, NULL, offset, PARAM_IN, PARAM_OUT, source, target_alloc_working_area(), target_alloc_working_area_try(), target_buffer_set_u32_array(), target_free_working_area(), target_run_algorithm(), and target_write_buffer().
Referenced by aduc702x_write().
|
static |
Definition at line 262 of file aduc702x.c.
References aduc702x_check_flash_completion(), ADUC702X_FLASH, ADUC702X_FLASH_FEEADR, ADUC702X_FLASH_FEECON, ADUC702X_FLASH_FEEDAT, aduc702x_set_write_enable(), bank, buffer, count, ERROR_FLASH_OPERATION_FAILED, ERROR_OK, LOG_DEBUG, LOG_ERROR, offset, target_read_u8(), target_write_u16(), and target_write_u8().
Referenced by aduc702x_write().
FLASH_BANK_COMMAND_HANDLER | ( | aduc702x_flash_bank_command | ) |
Definition at line 35 of file aduc702x.c.
References aduc702x_build_sector_list(), bank, and ERROR_OK.
const struct flash_driver aduc702x_flash |
Definition at line 347 of file aduc702x.c.