stm32x_flash_bank::option_bytes is only used within OpenOCD.
 
Symbols
loading...
Files
loading...
CodeScopeDevelopment ToolsOpenOCDstm32x_flash_bank::option_bytes

stm32x_flash_bank::option_bytes field

Syntax

struct stm32x_options option_bytes;

References

LocationReferrerText
stm32f1x.c:108
struct stm32x_options option_bytes;
stm32f2x.c:189
struct stm32x_options option_bytes;
stm32f1x.c:230stm32x_read_options()
stm32x_info->option_bytes.rdp = (option_bytes & (1 << OPT_READOUT)) ? 0 : stm32x_info->default_rdp;
stm32f1x.c:231stm32x_read_options()
stm32x_info->option_bytes.user = (option_bytes >> stm32x_info->option_offset >> 2) & 0xff;
stm32f1x.c:232stm32x_read_options()
stm32x_info->option_bytes.data = (option_bytes >> stm32x_info->user_data_offset) & 0xffff;
stm32f1x.c:235stm32x_read_options()
retval = target_read_u32(target, STM32_FLASH_WRPR_B0, &stm32x_info->option_bytes.protection);
stm32f1x.c:280stm32x_erase_options()
stm32x_info->option_bytes.rdp = stm32x_info->default_rdp;
stm32f1x.c:319stm32x_write_options()
target_buffer_set_u16(target, opt_bytes, stm32x_info->option_bytes.rdp);
stm32f1x.c:320stm32x_write_options()
target_buffer_set_u16(target, opt_bytes + 2, stm32x_info->option_bytes.user);
stm32f1x.c:321stm32x_write_options()
target_buffer_set_u16(target, opt_bytes + 4, stm32x_info->option_bytes.data & 0xff);
stm32f1x.c:322stm32x_write_options()
target_buffer_set_u16(target, opt_bytes + 6, (stm32x_info->option_bytes.data >> 8) & 0xff);
stm32f1x.c:323stm32x_write_options()
target_buffer_set_u16(target, opt_bytes + 8, stm32x_info->option_bytes.protection & 0xff);
stm32f1x.c:324stm32x_write_options()
target_buffer_set_u16(target, opt_bytes + 10, (stm32x_info->option_bytes.protection >> 8) & 0xff);
stm32f1x.c:325stm32x_write_options()
target_buffer_set_u16(target, opt_bytes + 12, (stm32x_info->option_bytes.protection >> 16) & 0xff);
stm32f1x.c:326stm32x_write_options()
target_buffer_set_u16(target, opt_bytes + 14, (stm32x_info->option_bytes.protection >> 24) & 0xff);
stm32f1x.c:437stm32x_protect()
stm32x_info->option_bytes.protection &= ~(1 << i);
stm32f1x.c:439stm32x_protect()
stm32x_info->option_bytes.protection |= (1 << i);
stm32f1x.c:1355stm32x_handle_lock_command()
stm32x_info->option_bytes.rdp = 0;
stm32f1x.c:1506stm32x_handle_options_write_command()
optionbyte = stm32x_info->option_bytes.user;
stm32f1x.c:1507stm32x_handle_options_write_command()
useropt = stm32x_info->option_bytes.data;
stm32f1x.c:1550stm32x_handle_options_write_command()
stm32x_info->option_bytes.user = optionbyte;
stm32f1x.c:1551stm32x_handle_options_write_command()
stm32x_info->option_bytes.data = useropt;
stm32f2x.c:395stm32x_read_options()
stm32x_info->option_bytes.user_options = optiondata & 0xfc;
stm32f2x.c:396stm32x_read_options()
stm32x_info->option_bytes.RDP = (optiondata >> 8) & 0xff;
stm32f2x.c:397stm32x_read_options()
stm32x_info->option_bytes.protection =
stm32f2x.c:402stm32x_read_options()
stm32x_info->option_bytes.user_options |= (optiondata >> 20) &
stm32f2x.c:414stm32x_read_options()
stm32x_info->option_bytes.boot_addr = optiondata;
stm32f2x.c:417stm32x_read_options()
stm32x_info->option_bytes.protection |= (optiondata >> 4) & 0x00fff000;
stm32f2x.c:426stm32x_read_options()
stm32x_info->option_bytes.optcr2_pcrop = optiondata;
stm32f2x.c:428stm32x_read_options()
(stm32x_info->option_bytes.optcr2_pcrop & ~OPTCR2_PCROP_RDP)) {
stm32f2x.c:432stm32x_read_options()
stm32x_info->option_bytes.optcr2_pcrop = 0x0;
stm32f2x.c:435stm32x_read_options()
if (stm32x_info->option_bytes.RDP != 0xAA)
stm32f2x.c:454stm32x_write_options()
optiondata = stm32x_info->option_bytes.user_options & 0xfc;
stm32f2x.c:455stm32x_write_options()
optiondata |= stm32x_info->option_bytes.RDP << 8;
stm32f2x.c:456stm32x_write_options()
optiondata |= (stm32x_info->option_bytes.protection &
stm32f2x.c:461stm32x_write_options()
optiondata |= (stm32x_info->option_bytes.user_options &
stm32f2x.c:468stm32x_write_options()
optiondata2 = stm32x_info->option_bytes.boot_addr;
stm32f2x.c:471stm32x_write_options()
optiondata2 = (stm32x_info->option_bytes.protection & 0x00fff000) << 4;
stm32f2x.c:482stm32x_write_options()
stm32x_info->option_bytes.optcr2_pcrop);
stm32f2x.c:587stm32x_protect_check()
~(stm32x_info->option_bytes.protection >> i) & 1;
stm32f2x.c:683stm32x_protect()
stm32x_info->option_bytes.protection &= ~(1 << i);
stm32f2x.c:685stm32x_protect()
stm32x_info->option_bytes.protection |= (1 << i);
stm32f2x.c:1451stm32x_handle_lock_command()
stm32x_info->option_bytes.RDP = 0;
stm32f2x.c:1491stm32x_handle_unlock_command()
stm32x_info->option_bytes.RDP = 0xAA;
stm32f2x.c:1493stm32x_handle_unlock_command()
stm32x_info->option_bytes.optcr2_pcrop = OPTCR2_PCROP_RDP | (~1U << bank->num_sectors);
stm32f2x.c:1591stm32f2x_handle_options_read_command()
uint32_t boot_addr = stm32x_info->option_bytes.boot_addr;
stm32f2x.c:1595stm32f2x_handle_options_read_command()
stm32x_info->option_bytes.user_options,
stm32f2x.c:1599stm32f2x_handle_options_read_command()
stm32x_info->option_bytes.optcr2_pcrop);
stm32f2x.c:1603stm32f2x_handle_options_read_command()
stm32x_info->option_bytes.user_options);
stm32f2x.c:1607stm32f2x_handle_options_read_command()
stm32x_info->option_bytes.user_options);
stm32f2x.c:1639stm32f2x_handle_options_write_command()
stm32x_info->option_bytes.boot_addr = boot_addr0 | (((uint32_t) boot_addr1) << 16);
stm32f2x.c:1652stm32f2x_handle_options_write_command()
stm32x_info->option_bytes.user_options = user_options;
stm32f2x.c:1698stm32f2x_handle_optcr2_write_command()
stm32x_info->option_bytes.optcr2_pcrop = optcr2_pcrop;