OpenOCD
|
Go to the source code of this file.
Data Structures | |
struct | bluenrgx_flash_bank |
struct | flash_ctrl_priv_data |
Macros | |
#define | BLUENRG2_JTAG_REG (flash_priv_data_2.jtag_idcode_reg) |
#define | BLUENRGLP_JTAG_REG (flash_priv_data_lp.jtag_idcode_reg) |
#define | DIE_ID_REG(bluenrgx_info) (bluenrgx_info->flash_ptr->die_id_reg) |
#define | FLASH_PAGE_SIZE(bluenrgx_info) (bluenrgx_info->flash_ptr->flash_page_size) |
#define | FLASH_SIZE_REG_MASK (0xFFFF) |
#define | JTAG_IDCODE_REG(bluenrgx_info) (bluenrgx_info->flash_ptr->jtag_idcode_reg) |
Functions | |
static int | bluenrgx_auto_probe (struct flash_bank *bank) |
static int | bluenrgx_erase (struct flash_bank *bank, unsigned int first, unsigned int last) |
static uint32_t | bluenrgx_get_flash_reg (struct flash_bank *bank, uint32_t reg_offset) |
static int | bluenrgx_get_info (struct flash_bank *bank, struct command_invocation *cmd) |
static int | bluenrgx_probe (struct flash_bank *bank) |
static int | bluenrgx_read_flash_reg (struct flash_bank *bank, uint32_t reg_offset, uint32_t *value) |
static int | bluenrgx_write (struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count) |
static int | bluenrgx_write_flash_reg (struct flash_bank *bank, uint32_t reg_offset, uint32_t value) |
FLASH_BANK_COMMAND_HANDLER (bluenrgx_flash_bank_command) | |
Variables | |
const struct flash_driver | bluenrgx_flash |
static const struct flash_ctrl_priv_data * | flash_ctrl [] |
static const struct flash_ctrl_priv_data | flash_priv_data_1 |
static const struct flash_ctrl_priv_data | flash_priv_data_2 |
static const struct flash_ctrl_priv_data | flash_priv_data_lp |
static const struct flash_ctrl_priv_data | flash_priv_data_lps |
#define BLUENRG2_JTAG_REG (flash_priv_data_2.jtag_idcode_reg) |
Definition at line 20 of file bluenrg-x.c.
#define BLUENRGLP_JTAG_REG (flash_priv_data_lp.jtag_idcode_reg) |
Definition at line 21 of file bluenrg-x.c.
#define DIE_ID_REG | ( | bluenrgx_info | ) | (bluenrgx_info->flash_ptr->die_id_reg) |
Definition at line 23 of file bluenrg-x.c.
#define FLASH_PAGE_SIZE | ( | bluenrgx_info | ) | (bluenrgx_info->flash_ptr->flash_page_size) |
Definition at line 25 of file bluenrg-x.c.
#define FLASH_SIZE_REG_MASK (0xFFFF) |
Definition at line 27 of file bluenrg-x.c.
#define JTAG_IDCODE_REG | ( | bluenrgx_info | ) | (bluenrgx_info->flash_ptr->jtag_idcode_reg) |
Definition at line 24 of file bluenrg-x.c.
|
static |
Definition at line 433 of file bluenrg-x.c.
References bank, bluenrgx_probe(), ERROR_OK, and bluenrgx_flash_bank::probed.
|
static |
Definition at line 133 of file bluenrg-x.c.
References bank, bluenrgx_read_flash_reg(), bluenrgx_write_flash_reg(), ERROR_FAIL, ERROR_FLASH_BANK_NOT_PROBED, ERROR_OK, ERROR_TARGET_NOT_HALTED, FLASH_CMD_ERASE_PAGE, FLASH_CMD_MASSERASE, FLASH_INT_CMDDONE, FLASH_PAGE_SIZE, FLASH_REG_ADDRESS, FLASH_REG_COMMAND, FLASH_REG_IRQRAW, LOG_DEBUG, LOG_ERROR, mass_erase(), bluenrgx_flash_bank::probed, TARGET_HALTED, and target_write_u32().
|
inlinestatic |
Definition at line 117 of file bluenrg-x.c.
References bank, bluenrgx_flash_bank::flash_ptr, and flash_ctrl_priv_data::flash_regs_base.
Referenced by bluenrgx_read_flash_reg(), and bluenrgx_write_flash_reg().
|
static |
Definition at line 444 of file bluenrg-x.c.
|
static |
Definition at line 381 of file bluenrg-x.c.
References ARRAY_SIZE, bank, BLUENRG2_JTAG_REG, BLUENRGLP_JTAG_REG, bluenrgx_read_flash_reg(), bluenrgx_flash_bank::die_id, DIE_ID_REG, ERROR_OK, flash_ctrl_priv_data::flash_base, flash_ctrl, FLASH_PAGE_SIZE, flash_priv_data_1, flash_priv_data_lp, flash_priv_data_lps, bluenrgx_flash_bank::flash_ptr, FLASH_SIZE_REG, FLASH_SIZE_REG_MASK, FLASH_WORD_LEN, flash_ctrl_priv_data::jtag_idcode, bluenrgx_flash_bank::probed, and target_read_u32().
Referenced by bluenrgx_auto_probe().
|
inlinestatic |
Definition at line 123 of file bluenrg-x.c.
References bank, bluenrgx_get_flash_reg(), and target_read_u32().
Referenced by bluenrgx_erase(), and bluenrgx_probe().
|
static |
Definition at line 232 of file bluenrg-x.c.
References working_area::address, ARM_MODE_THREAD, ARMV7M_COMMON_MAGIC, bank, buf_get_u32(), buf_set_u32(), buffer, armv7m_algorithm::common_magic, armv7m_algorithm::core_mode, count, destroy_mem_param(), destroy_reg_param(), ERROR_FLASH_BANK_NOT_PROBED, ERROR_FLASH_DST_OUT_OF_BANK, ERROR_FLASH_OPERATION_FAILED, ERROR_OK, ERROR_TARGET_NOT_HALTED, ERROR_TARGET_RESOURCE_NOT_AVAILABLE, bluenrgx_flash_bank::flash_ptr, flash_ctrl_priv_data::flash_regs_base, init_mem_param(), init_reg_param(), LOG_DEBUG, LOG_ERROR, LOG_WARNING, offset, PARAM_IN_OUT, PARAM_OUT, bluenrgx_flash_bank::probed, source, TARGET_ADDR_FMT, target_alloc_working_area(), target_free_working_area(), TARGET_HALTED, target_read_u32(), target_run_flash_async_algorithm(), and target_write_buffer().
|
inlinestatic |
Definition at line 128 of file bluenrg-x.c.
References bank, bluenrgx_get_flash_reg(), and target_write_u32().
Referenced by bluenrgx_erase().
FLASH_BANK_COMMAND_HANDLER | ( | bluenrgx_flash_bank_command | ) |
Definition at line 92 of file bluenrg-x.c.
References bank, CMD_ARGC, ERROR_COMMAND_SYNTAX_ERROR, ERROR_FAIL, ERROR_OK, LOG_ERROR, and bluenrgx_flash_bank::probed.
const struct flash_driver bluenrgx_flash |
Definition at line 444 of file bluenrg-x.c.
|
static |
Definition at line 85 of file bluenrg-x.c.
Referenced by bluenrgx_probe().
|
static |
Definition at line 1 of file bluenrg-x.c.
Referenced by bluenrgx_probe().
|
static |
Definition at line 1 of file bluenrg-x.c.
|
static |
Definition at line 1 of file bluenrg-x.c.
Referenced by bluenrgx_probe().
|
static |
Definition at line 1 of file bluenrg-x.c.
Referenced by bluenrgx_probe().