OpenOCD
stm32x_flash_bank::option_bytes
is only used within OpenOCD.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
CodeScope
Development Tools
OpenOCD
stm32x_flash_bank::option_bytes
stm32x_flash_bank::option_bytes field
Syntax
from
stm32f1x.c:108
struct
stm32x_options
option_bytes
;
References
Location
Referrer
Text
stm32f1x.c:108
struct
stm32x_options
option_bytes
;
stm32f2x.c:189
struct
stm32x_options
option_bytes
;
stm32f1x.c:230
stm32x_read_options()
stm32x_info
->
option_bytes
.
rdp
=
(
option_bytes
&
(
1
<
<
OPT_READOUT
)
)
?
0
:
stm32x_info
->
default_rdp
;
stm32f1x.c:231
stm32x_read_options()
stm32x_info
->
option_bytes
.
user
=
(
option_bytes
>
>
stm32x_info
->
option_offset
>
>
2
)
&
0xff
;
stm32f1x.c:232
stm32x_read_options()
stm32x_info
->
option_bytes
.
data
=
(
option_bytes
>
>
stm32x_info
->
user_data_offset
)
&
0xffff
;
stm32f1x.c:235
stm32x_read_options()
retval
=
target_read_u32
(
target
,
STM32_FLASH_WRPR_B0
,
&
stm32x_info
->
option_bytes
.
protection
)
;
stm32f1x.c:280
stm32x_erase_options()
stm32x_info
->
option_bytes
.
rdp
=
stm32x_info
->
default_rdp
;
stm32f1x.c:319
stm32x_write_options()
target_buffer_set_u16
(
target
,
opt_bytes
,
stm32x_info
->
option_bytes
.
rdp
)
;
stm32f1x.c:320
stm32x_write_options()
target_buffer_set_u16
(
target
,
opt_bytes
+
2
,
stm32x_info
->
option_bytes
.
user
)
;
stm32f1x.c:321
stm32x_write_options()
target_buffer_set_u16
(
target
,
opt_bytes
+
4
,
stm32x_info
->
option_bytes
.
data
&
0xff
)
;
stm32f1x.c:322
stm32x_write_options()
target_buffer_set_u16
(
target
,
opt_bytes
+
6
,
(
stm32x_info
->
option_bytes
.
data
>
>
8
)
&
0xff
)
;
stm32f1x.c:323
stm32x_write_options()
target_buffer_set_u16
(
target
,
opt_bytes
+
8
,
stm32x_info
->
option_bytes
.
protection
&
0xff
)
;
stm32f1x.c:324
stm32x_write_options()
target_buffer_set_u16
(
target
,
opt_bytes
+
10
,
(
stm32x_info
->
option_bytes
.
protection
>
>
8
)
&
0xff
)
;
stm32f1x.c:325
stm32x_write_options()
target_buffer_set_u16
(
target
,
opt_bytes
+
12
,
(
stm32x_info
->
option_bytes
.
protection
>
>
16
)
&
0xff
)
;
stm32f1x.c:326
stm32x_write_options()
target_buffer_set_u16
(
target
,
opt_bytes
+
14
,
(
stm32x_info
->
option_bytes
.
protection
>
>
24
)
&
0xff
)
;
stm32f1x.c:437
stm32x_protect()
stm32x_info
->
option_bytes
.
protection
&=
~
(
1
<
<
i
)
;
stm32f1x.c:439
stm32x_protect()
stm32x_info
->
option_bytes
.
protection
|=
(
1
<
<
i
)
;
stm32f1x.c:1355
stm32x_handle_lock_command()
stm32x_info
->
option_bytes
.
rdp
=
0
;
stm32f1x.c:1506
stm32x_handle_options_write_command()
optionbyte
=
stm32x_info
->
option_bytes
.
user
;
stm32f1x.c:1507
stm32x_handle_options_write_command()
useropt
=
stm32x_info
->
option_bytes
.
data
;
stm32f1x.c:1550
stm32x_handle_options_write_command()
stm32x_info
->
option_bytes
.
user
=
optionbyte
;
stm32f1x.c:1551
stm32x_handle_options_write_command()
stm32x_info
->
option_bytes
.
data
=
useropt
;
stm32f2x.c:395
stm32x_read_options()
stm32x_info
->
option_bytes
.
user_options
=
optiondata
&
0xfc
;
stm32f2x.c:396
stm32x_read_options()
stm32x_info
->
option_bytes
.
RDP
=
(
optiondata
>
>
8
)
&
0xff
;
stm32f2x.c:397
stm32x_read_options()
stm32x_info
->
option_bytes
.
protection
=
stm32f2x.c:402
stm32x_read_options()
stm32x_info
->
option_bytes
.
user_options
|=
(
optiondata
>
>
20
)
&
stm32f2x.c:414
stm32x_read_options()
stm32x_info
->
option_bytes
.
boot_addr
=
optiondata
;
stm32f2x.c:417
stm32x_read_options()
stm32x_info
->
option_bytes
.
protection
|=
(
optiondata
>
>
4
)
&
0x00fff000
;
stm32f2x.c:426
stm32x_read_options()
stm32x_info
->
option_bytes
.
optcr2_pcrop
=
optiondata
;
stm32f2x.c:428
stm32x_read_options()
(
stm32x_info
->
option_bytes
.
optcr2_pcrop
&
~
OPTCR2_PCROP_RDP
)
)
{
stm32f2x.c:432
stm32x_read_options()
stm32x_info
->
option_bytes
.
optcr2_pcrop
=
0x0
;
stm32f2x.c:435
stm32x_read_options()
if
(
stm32x_info
->
option_bytes
.
RDP
!=
0xAA
)
stm32f2x.c:454
stm32x_write_options()
optiondata
=
stm32x_info
->
option_bytes
.
user_options
&
0xfc
;
stm32f2x.c:455
stm32x_write_options()
optiondata
|=
stm32x_info
->
option_bytes
.
RDP
<
<
8
;
stm32f2x.c:456
stm32x_write_options()
optiondata
|=
(
stm32x_info
->
option_bytes
.
protection
&
stm32f2x.c:461
stm32x_write_options()
optiondata
|=
(
stm32x_info
->
option_bytes
.
user_options
&
stm32f2x.c:468
stm32x_write_options()
optiondata2
=
stm32x_info
->
option_bytes
.
boot_addr
;
stm32f2x.c:471
stm32x_write_options()
optiondata2
=
(
stm32x_info
->
option_bytes
.
protection
&
0x00fff000
)
<
<
4
;
stm32f2x.c:482
stm32x_write_options()
stm32x_info
->
option_bytes
.
optcr2_pcrop
)
;
stm32f2x.c:587
stm32x_protect_check()
~
(
stm32x_info
->
option_bytes
.
protection
>
>
i
)
&
1
;
stm32f2x.c:683
stm32x_protect()
stm32x_info
->
option_bytes
.
protection
&=
~
(
1
<
<
i
)
;
stm32f2x.c:685
stm32x_protect()
stm32x_info
->
option_bytes
.
protection
|=
(
1
<
<
i
)
;
stm32f2x.c:1451
stm32x_handle_lock_command()
stm32x_info
->
option_bytes
.
RDP
=
0
;
stm32f2x.c:1491
stm32x_handle_unlock_command()
stm32x_info
->
option_bytes
.
RDP
=
0xAA
;
stm32f2x.c:1493
stm32x_handle_unlock_command()
stm32x_info
->
option_bytes
.
optcr2_pcrop
=
OPTCR2_PCROP_RDP
|
(
~
1U
<
<
bank
->
num_sectors
)
;
stm32f2x.c:1591
stm32f2x_handle_options_read_command()
uint32_t
boot_addr
=
stm32x_info
->
option_bytes
.
boot_addr
;
stm32f2x.c:1595
stm32f2x_handle_options_read_command()
stm32x_info
->
option_bytes
.
user_options
,
stm32f2x.c:1599
stm32f2x_handle_options_read_command()
stm32x_info
->
option_bytes
.
optcr2_pcrop
)
;
stm32f2x.c:1603
stm32f2x_handle_options_read_command()
stm32x_info
->
option_bytes
.
user_options
)
;
stm32f2x.c:1607
stm32f2x_handle_options_read_command()
stm32x_info
->
option_bytes
.
user_options
)
;
stm32f2x.c:1639
stm32f2x_handle_options_write_command()
stm32x_info
->
option_bytes
.
boot_addr
=
boot_addr0
|
(
(
(
uint32_t
)
boot_addr1
)
<
<
16
)
;
stm32f2x.c:1652
stm32f2x_handle_options_write_command()
stm32x_info
->
option_bytes
.
user_options
=
user_options
;
stm32f2x.c:1698
stm32f2x_handle_optcr2_write_command()
stm32x_info
->
option_bytes
.
optcr2_pcrop
=
optcr2_pcrop
;
Data Use
Functions reading
stm32x_flash_bank::option_bytes
stm32x_flash_bank::option_bytes
stm32x_read_options()
stm32x_erase_options()
stm32x_write_options()
stm32x_protect()
stm32x_handle_lock_command()
stm32x_handle_options_write_command()
stm32x_read_options()
stm32x_write_options()
stm32x_protect_check()
stm32x_protect()
stm32x_handle_lock_command()
stm32x_handle_unlock_command()
stm32f2x_handle_options_read_command()
stm32f2x_handle_options_write_command()
stm32f2x_handle_optcr2_write_command()
all items filtered out
Type of
stm32x_flash_bank::option_bytes
stm32x_flash_bank::option_bytes
stm32x_options
all items filtered out