psoc6_erase() is only used within OpenOCD.
 
Symbols
loading...
Files
loading...

psoc6_erase() function

Performs Erase operation. Function will try to use biggest erase block possible to speedup the operation.

Syntax

static int psoc6_erase(struct flash_bank *bank,     unsigned int first,     unsigned int last);

Arguments

bank

current flash bank

first

first sector to erase

last

last sector to erase

Return value

ERROR_OK in case of success, ERROR_XXX code otherwise

References

LocationReferrerText
psoc6.c:700
static int psoc6_erase(struct flash_bank *bank, unsigned int first,
psoc6.c:871psoc6_handle_mass_erase_command()
hr = psoc6_erase(bank, 0, bank->num_sectors - 1);
psoc6.c:1069
.erase = psoc6_erase,

Call Tree

Data read by psoc6_erase()
Data written by psoc6_erase()
psoc6_erase()::target
psoc6_erase()::psoc6_info
psoc6_erase()::sector_size
psoc6_erase()::hr
psoc6_erase()::wa
psoc6_erase()::rows_in_sector
all items filtered out
psoc6_erase()
psoc6_erase()::hr
all items filtered out
Implementations
psoc6_erase()
all items filtered out
Type of psoc6_erase()
psoc6_erase()
uint32_t
all items filtered out