OpenOCD
|
Go to the source code of this file.
Data Structures | |
struct | cc26xx_bank |
Macros | |
#define | FLASH_TIMEOUT 8000 |
Functions | |
static int | cc26xx_auto_probe (struct flash_bank *bank) |
static uint32_t | cc26xx_device_type (uint32_t icepick_id, uint32_t user_id) |
static int | cc26xx_erase (struct flash_bank *bank, unsigned int first, unsigned int last) |
static int | cc26xx_info (struct flash_bank *bank, struct command_invocation *cmd) |
static int | cc26xx_init (struct flash_bank *bank) |
static int | cc26xx_mass_erase (struct flash_bank *bank) |
static int | cc26xx_probe (struct flash_bank *bank) |
static int | cc26xx_quit (struct flash_bank *bank) |
static uint32_t | cc26xx_sector_length (uint32_t icepick_id) |
static int | cc26xx_wait_algo_done (struct flash_bank *bank, uint32_t params_addr) |
static int | cc26xx_write (struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count) |
FLASH_BANK_COMMAND_HANDLER (cc26xx_flash_bank_command) | |
Variables | |
static const uint8_t | cc26x0_algo [] |
static const uint8_t | cc26x2_algo [] |
const struct flash_driver | cc26xx_flash |
|
static |
Definition at line 490 of file cc26xx.c.
References bank, cc26xx_probe(), ERROR_OK, and cc26xx_bank::probed.
Referenced by cc26xx_init().
|
static |
Definition at line 49 of file cc26xx.c.
References CC13X0_ICEPICK_ID, CC13X0_TYPE, CC13X2_CC26X2_ICEPICK_ID, CC13X2_TYPE, CC26X0_ICEPICK_ID, CC26X0_TYPE, CC26X1_ICEPICK_ID, CC26X1_TYPE, CC26X2_TYPE, ICEPICK_ID_MASK, and USER_ID_CC13_MASK.
Referenced by cc26xx_probe().
|
static |
Definition at line 268 of file cc26xx.c.
References cc26xx_algo_params::address, bank, buf_set_u32(), CC26XX_BUFFER_FULL, CC26XX_CMD_ERASE_SECTORS, cc26xx_init(), cc26xx_mass_erase(), cc26xx_quit(), cc26xx_wait_algo_done(), cc26xx_algo_params::command, ERROR_OK, ERROR_TARGET_NOT_HALTED, cc26xx_algo_params::length, length, LOG_ERROR, cc26xx_bank::params_addr, cc26xx_bank::sector_length, target::state, cc26xx_algo_params::status, TARGET_HALTED, and target_write_buffer().
|
static |
|
static |
Definition at line 129 of file cc26xx.c.
References working_area::address, cc26xx_bank::algo_code, cc26xx_bank::algo_size, cc26xx_bank::algo_working_size, ARM_MODE_THREAD, ARMV7M_COMMON_MAGIC, cc26xx_bank::armv7m_info, bank, CC26XX_ALGO_BASE_ADDRESS, cc26xx_auto_probe(), armv7m_algorithm::common_magic, armv7m_algorithm::core_mode, ERROR_OK, ERROR_TARGET_RESOURCE_NOT_AVAILABLE, cc26xx_bank::family_name, LOG_ERROR, NULL, target_alloc_working_area(), target_free_working_area(), target_start_algorithm(), target_write_buffer(), and cc26xx_bank::working_area.
Referenced by cc26xx_erase(), cc26xx_mass_erase(), and cc26xx_write().
|
static |
Definition at line 208 of file cc26xx.c.
References cc26xx_algo_params::address, bank, buf_set_u32(), CC26XX_BUFFER_FULL, CC26XX_CMD_ERASE_ALL, cc26xx_init(), cc26xx_quit(), cc26xx_wait_algo_done(), cc26xx_algo_params::command, ERROR_OK, ERROR_TARGET_NOT_HALTED, cc26xx_algo_params::length, LOG_ERROR, cc26xx_bank::params_addr, target::state, cc26xx_algo_params::status, TARGET_HALTED, and target_write_buffer().
Referenced by cc26xx_erase().
|
static |
Definition at line 401 of file cc26xx.c.
References cc26xx_bank::algo_code, cc26xx_bank::algo_size, cc26xx_bank::algo_working_size, bank, cc26xx_bank::buffer_addr, CC13X0_ICEPICK_ID, CC13X2_CC26X2_ICEPICK_ID, cc26x0_algo, CC26X0_ALGO_BUFFER_0, CC26X0_ALGO_BUFFER_1, CC26X0_ALGO_PARAMS_0, CC26X0_ALGO_PARAMS_1, CC26X0_ICEPICK_ID, CC26X0_MAX_SECTORS, CC26X0_WORKING_SIZE, CC26X1_ICEPICK_ID, cc26x2_algo, CC26X2_ALGO_BUFFER_0, CC26X2_ALGO_BUFFER_1, CC26X2_ALGO_PARAMS_0, CC26X2_ALGO_PARAMS_1, CC26X2_MAX_SECTORS, CC26X2_WORKING_SIZE, cc26xx_device_type(), CC26XX_FLASH_BASE_ADDR, CC26XX_FLASH_SIZE_INFO, cc26xx_sector_length(), cc26xx_bank::device_type, ERROR_FAIL, ERROR_OK, FCFG1_ICEPICK_ID, FCFG1_USER_ID, cc26xx_bank::icepick_id, ICEPICK_ID_MASK, cc26xx_bank::params_addr, cc26xx_bank::probed, cc26xx_bank::sector_length, target_read_u32(), and cc26xx_bank::user_id.
Referenced by cc26xx_auto_probe().
|
static |
Definition at line 188 of file cc26xx.c.
References cc26xx_bank::armv7m_info, bank, FLASH_TIMEOUT, NULL, target_free_working_area(), target_halt(), target_wait_algorithm(), and cc26xx_bank::working_area.
Referenced by cc26xx_erase(), cc26xx_mass_erase(), and cc26xx_write().
|
static |
Definition at line 75 of file cc26xx.c.
References CC13X0_ICEPICK_ID, CC13X2_CC26X2_ICEPICK_ID, CC26X0_ICEPICK_ID, CC26X0_SECTOR_LENGTH, CC26X1_ICEPICK_ID, CC26X2_SECTOR_LENGTH, and ICEPICK_ID_MASK.
Referenced by cc26xx_probe().
|
static |
Definition at line 96 of file cc26xx.c.
References bank, CC26XX_BUFFER_EMPTY, CC26XX_BUFFER_FULL, CC26XX_STATUS_OFFSET, ERROR_FAIL, ERROR_OK, cc26xx_bank::family_name, FLASH_TIMEOUT, keep_alive(), LOG_ERROR, cc26xx_bank::params_addr, status, target_read_u32(), and timeval_ms().
Referenced by cc26xx_erase(), cc26xx_mass_erase(), and cc26xx_write().
|
static |
Definition at line 317 of file cc26xx.c.
References cc26xx_algo_params::address, bank, buf_set_u32(), buffer, cc26xx_bank::buffer_addr, CC26XX_BUFFER_FULL, CC26XX_CMD_PROGRAM, cc26xx_init(), cc26xx_quit(), cc26xx_wait_algo_done(), count, ERROR_OK, ERROR_TARGET_NOT_HALTED, keep_alive(), length, LOG_ERROR, offset, cc26xx_bank::params_addr, cc26xx_bank::sector_length, size, target::state, status, TARGET_HALTED, target_write_buffer(), and timeval_ms().
FLASH_BANK_COMMAND_HANDLER | ( | cc26xx_flash_bank_command | ) |
Definition at line 245 of file cc26xx.c.
References bank, CC26XX_NO_TYPE, CMD_ARGC, cc26xx_bank::device_type, ERROR_COMMAND_SYNTAX_ERROR, ERROR_FAIL, ERROR_OK, cc26xx_bank::family_name, and cc26xx_bank::sector_length.
|
static |
|
static |
const struct flash_driver cc26xx_flash |