OpenOCD
nor/imp.h File Reference
Include dependency graph for nor/imp.h:

Go to the source code of this file.

Functions

void flash_bank_add (struct flash_bank *bank)
 Adds a new NOR bank to the global list of banks. More...
 
struct flash_bankflash_bank_list (void)
 
int flash_driver_erase (struct flash_bank *bank, unsigned int first, unsigned int last)
 
int flash_driver_protect (struct flash_bank *bank, int set, unsigned int first, unsigned int last)
 
int flash_driver_read (struct flash_bank *bank, uint8_t *buffer, uint32_t offset, uint32_t count)
 
int flash_driver_verify (struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count)
 
int flash_driver_write (struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count)
 
int flash_write_unlock_verify (struct target *target, struct image *image, uint32_t *written, bool erase, bool unlock, bool write, bool verify)
 

Function Documentation

◆ flash_bank_add()

void flash_bank_add ( struct flash_bank bank)

Adds a new NOR bank to the global list of banks.

Parameters
bankThe bank that should be added.

Definition at line 164 of file flash/nor/core.c.

References bank, flash_banks, and flash_bank::next.

Referenced by COMMAND_HANDLER(), kinetis_create_missing_banks(), and msp432_probe().

◆ flash_bank_list()

struct flash_bank* flash_bank_list ( void  )
Returns
The first bank in the global list.

Definition at line 183 of file flash/nor/core.c.

References flash_banks.

Referenced by COMMAND_HANDLER(), FLASH_BANK_COMMAND_HANDLER(), flash_init_drivers(), flash_set_dirty(), jim_flash_list(), kinetis_get_chip(), nrf5_get_chip(), and rsl10_get_chip().

◆ flash_driver_erase()

int flash_driver_erase ( struct flash_bank bank,
unsigned int  first,
unsigned int  last 
)

Definition at line 29 of file flash/nor/core.c.

References bank, ERROR_OK, and LOG_ERROR.

Referenced by COMMAND_HANDLER(), and flash_erase_address_range().

◆ flash_driver_protect()

int flash_driver_protect ( struct flash_bank bank,
int  set,
unsigned int  first,
unsigned int  last 
)

◆ flash_driver_read()

int flash_driver_read ( struct flash_bank bank,
uint8_t *  buffer,
uint32_t  offset,
uint32_t  count 
)

Definition at line 102 of file flash/nor/core.c.

References bank, buffer, count, ERROR_OK, LOG_DEBUG, LOG_ERROR, offset, and TARGET_ADDR_FMT.

Referenced by COMMAND_HANDLER().

◆ flash_driver_verify()

int flash_driver_verify ( struct flash_bank bank,
const uint8_t *  buffer,
uint32_t  offset,
uint32_t  count 
)

◆ flash_driver_write()

int flash_driver_write ( struct flash_bank bank,
const uint8_t *  buffer,
uint32_t  offset,
uint32_t  count 
)

Definition at line 85 of file flash/nor/core.c.

References bank, buffer, count, ERROR_OK, LOG_ERROR, offset, and TARGET_ADDR_FMT.

Referenced by COMMAND_HANDLER(), and flash_write_unlock_verify().

◆ flash_write_unlock_verify()