Skip to content

Commit 83dda90

Browse files
author
Gerzain Mata
committed
Added changes to FLASH registers
1 parent 6b78455 commit 83dda90

File tree

1 file changed

+109
-24
lines changed

1 file changed

+109
-24
lines changed

data/registers/flash_wba.yaml

Lines changed: 109 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@ block/FLASH:
1414
- name: OPTKEYR
1515
description: option key register
1616
byte_offset: 16
17-
- name: PDKEYR
18-
description: power-down key register
17+
- name: PDKEY1R
18+
description: Flash Bank 1 power-down key register
1919
byte_offset: 24
20+
- name: PDKEY2R
21+
description: Flash Bank 2 power-down key register
22+
byte_offset: 28
2023
- name: NSSR
2124
description: status register
2225
byte_offset: 32
@@ -73,14 +76,30 @@ block/FLASH:
7376
description: secure watermark register 2
7477
byte_offset: 84
7578
fieldset: SECWMR2
76-
- name: WRPAR
77-
description: WRP area A address register
79+
- name: WRP1AR
80+
description: Flash WRP bank 1 area A address register
7881
byte_offset: 88
79-
fieldset: WRPAR
80-
- name: WRPBR
81-
description: WRP area B address register
82+
fieldset: WRP1AR
83+
- name: WRP1BR
84+
description: Flash WRP bank 1 area B address register
8285
byte_offset: 92
83-
fieldset: WRPBR
86+
fieldset: WRP1BR
87+
- name: SECWM2R1
88+
description: Flash bank 2 secure watermark register 1
89+
byte_offset: 96
90+
fieldset: SECWM2R1
91+
- name: SECWM2R2
92+
description: Flash bank 2 secure watermark register 2
93+
byte_offset: 100
94+
fieldset: SECWM2R2
95+
- name: WRP2AR
96+
description: Flash WRP bank 2 area A address register
97+
byte_offset: 104
98+
fieldset: WRP2AR
99+
- name: WRP2BR
100+
description: Flash WRP bank 2 area B address register
101+
byte_offset: 108
102+
fieldset: WRP2BR
84103
- name: OEM1KEYR1
85104
description: OEM1 key register 1
86105
byte_offset: 112
@@ -93,28 +112,42 @@ block/FLASH:
93112
- name: OEM2KEYR2
94113
description: OEM2 key register 2
95114
byte_offset: 124
96-
- name: SECBBR
97-
description: secure block based register 1
115+
- name: SECBB1R
116+
description: Flash bank 1 secure block based register 1
98117
array:
99118
len: 4
100119
stride: 4
101120
byte_offset: 128
102121
fieldset: BBR
122+
- name: SECBB2R
123+
description: Flash bank 2 secure block based register 1
124+
array:
125+
len: 4
126+
stride: 4
127+
byte_offset: 160
128+
fieldset: BBR
103129
- name: SECHDPCR
104130
description: secure HDP control register
105131
byte_offset: 192
106132
fieldset: SECHDPCR
107-
- name: PRIFCFGR
133+
- name: PRIVCFGR
108134
description: privilege configuration register
109135
byte_offset: 196
110-
fieldset: PRIFCFGR
111-
- name: PRIVBBR
112-
description: privilege block based register 1
136+
fieldset: PRIVCFGR
137+
- name: PRIVBB1R
138+
description: Flash bank 1 privilege block based register 1
113139
array:
114140
len: 4
115141
stride: 4
116142
byte_offset: 208
117143
fieldset: BBR
144+
- name: PRIVBB2R
145+
description: Flash bank 2 privilege block based register 1
146+
array:
147+
len: 4
148+
stride: 4
149+
byte_offset: 240
150+
fieldset: BBR
118151
fieldset/ACR:
119152
description: access control register
120153
fields:
@@ -131,7 +164,7 @@ fieldset/ACR:
131164
bit_offset: 11
132165
bit_size: 1
133166
- name: PDREQ
134-
description: "power-down mode request\r This bit requests to enter power-down mode. When enters power-down mode, this bit is cleared by hardware and the PDKEYR is locked.\r This bit is write-protected with PDKEYR. \r Access to the bit can be secured by PWR LPMSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with SPRIV or when non-secure with NSPRIV."
167+
description: "power-down mode request\r This bit requests to enter power-down mode. When enters power-down mode, this bit is cleared by hardware and the PDKEY2R is locked.\r This bit is write-protected with PDKEY2R. \r Access to the bit can be secured by PWR LPMSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with SPRIV or when non-secure with NSPRIV."
135168
bit_offset: 12
136169
bit_size: 1
137170
- name: SLEEP_PD
@@ -378,7 +411,7 @@ fieldset/OPTR:
378411
description: Global TrustZone security enable
379412
bit_offset: 31
380413
bit_size: 1
381-
fieldset/PRIFCFGR:
414+
fieldset/PRIVCFGR:
382415
description: privilege configuration register
383416
fields:
384417
- name: SPRIV
@@ -522,36 +555,88 @@ fieldset/SECWMR2:
522555
description: Secure Hide protection area enable
523556
bit_offset: 31
524557
bit_size: 1
525-
fieldset/WRPAR:
526-
description: WRP area A address register
558+
fieldset/WRP1AR:
559+
description: WRP bank 1 area A address register
527560
fields:
528-
- name: WRPA_PSTRT
561+
- name: WRP1A_PSTRT
529562
description: "WPR area A start page\r This field contains the first page of the WPR area A.\r Note that bit 6 is reserved on STM32WBAxEx devices."
530563
bit_offset: 0
531564
bit_size: 7
532-
- name: WRPA_PEND
565+
- name: WRP1A_PEND
533566
description: "WPR area A end page\r This field contains the last page of the WPR area A.\r Note that bit 22 is reserved on STM32WBAxEx devices."
534567
bit_offset: 16
535568
bit_size: 7
536569
- name: UNLOCK
537570
description: WPR area A unlock
538571
bit_offset: 31
539572
bit_size: 1
540-
fieldset/WRPBR:
541-
description: WRP area B address register
573+
fieldset/WRP1BR:
574+
description: WRP bank 1 area B address register
542575
fields:
543-
- name: WRPB_PSTRT
576+
- name: WRP1B_PSTRT
544577
description: "WRP area B start page\r This field contains the first page of the WRP area B.\r Note that bit 6 is reserved on STM32WBAxEx devices."
545578
bit_offset: 0
546579
bit_size: 7
547-
- name: WRPB_PEND
580+
- name: WRP1B_PEND
548581
description: "WRP area B end page\r This field contains the last page of the WRP area B.\r Note that bit 22 is reserved on STM32WBAxEx devices."
549582
bit_offset: 16
550583
bit_size: 7
551584
- name: UNLOCK
552585
description: WPR area B unlock
553586
bit_offset: 31
554587
bit_size: 1
588+
fieldset/SECWM2R1:
589+
description: Flash bank 2 secure watermark register 1
590+
fields:
591+
- name: SECWM2_PSTRT
592+
description: "WRP area B start page\r This field contains the first page of the secure area in bank 2."
593+
bit_offset: 0
594+
bit_size: 7
595+
- name: SECWM2_PEND
596+
description: "End page of secure area\r This field contains the last page of the secure area in bank 2."
597+
bit_offset: 16
598+
bit_size: 7
599+
fieldset/SECWM2R2:
600+
description: Flash bank 2 secure watermark register 2
601+
fields:
602+
- name: HDP2_PEND
603+
description: "Bank 2 end page of secure hide protection area\r This field contains the last page of the secure HDP area in bank 2."
604+
bit_offset: 16
605+
bit_size: 7
606+
- name: HDP2EN
607+
description: "Bank 2 secure Hide protection area enable"
608+
bit_offset: 31
609+
bit_size: 1
610+
fieldset/WRP2AR:
611+
description: WRP bank 2 area A address register
612+
fields:
613+
- name: WRP2A_PSTRT
614+
description: "WRP bank 2 area A start page\r This field contains the first page of the WRP bank 2 area A."
615+
bit_offset: 0
616+
bit_size: 7
617+
- name: WRP2A_PEND
618+
description: "WRP bank 2 area A end page\r This field contains the last page of the WRP bank 2 area A."
619+
bit_offset: 16
620+
bit_size: 7
621+
- name: UNLOCK
622+
description: WPR bank 2 area A unlock
623+
bit_offset: 31
624+
bit_size: 1
625+
fieldset/WRP2BR:
626+
description: WRP bank 2 area B address register
627+
fields:
628+
- name: WRP2B_PSTRT
629+
description: "WRP bank 2 area B start page\r This field contains the first page of the WRP bank 2 area B."
630+
bit_offset: 0
631+
bit_size: 7
632+
- name: WRP2B_PEND
633+
description: "WRP bank 2 area B end page\r This field contains the last page of the WRP bank 2 area B."
634+
bit_offset: 16
635+
bit_size: 7
636+
- name: UNLOCK
637+
description: WPR bank 2 area B unlock
638+
bit_offset: 31
639+
bit_size: 1
555640
enum/BOR_LEV:
556641
bit_size: 3
557642
variants:

0 commit comments

Comments
 (0)