Skip to content

Commit 24299d6

Browse files
authored
Merge pull request #623 from leftger/feat/support-wba6xxx
Feat/support wba6xxx
2 parents 0fc030a + 979075a commit 24299d6

File tree

8 files changed

+780
-88
lines changed

8 files changed

+780
-88
lines changed

d

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44
cd $(dirname $0)
55

66
CMD=$1
7-
REV=1659e761beb29d3949bd1ec72039c3ce5f6bdf6c
7+
REV=db4473fae6a41fcad7f5c824dcaadba3a6e060e9
88
shift
99

1010
case "$CMD" in
@@ -152,6 +152,10 @@ case "$CMD" in
152152
--- build --release --manifest-path build/stm32-metapac/Cargo.toml --target thumbv7em-none-eabi --features pac,metadata,stm32wba50ke \
153153
--- build --release --manifest-path build/stm32-metapac/Cargo.toml --target thumbv7em-none-eabi --features pac,metadata,stm32wba52cg \
154154
--- build --release --manifest-path build/stm32-metapac/Cargo.toml --target thumbv7em-none-eabi --features pac,metadata,stm32wba55ug \
155+
--- build --release --manifest-path build/stm32-metapac/Cargo.toml --target thumbv7em-none-eabi --features pac,metadata,stm32wba62mg \
156+
--- build --release --manifest-path build/stm32-metapac/Cargo.toml --target thumbv7em-none-eabi --features pac,metadata,stm32wba63cg \
157+
--- build --release --manifest-path build/stm32-metapac/Cargo.toml --target thumbv7em-none-eabi --features pac,metadata,stm32wba64ci \
158+
--- build --release --manifest-path build/stm32-metapac/Cargo.toml --target thumbv7em-none-eabi --features pac,metadata,stm32wba65ri \
155159
--- build --release --manifest-path build/stm32-metapac/Cargo.toml --target thumbv7em-none-eabi --features pac,metadata,stm32wl54jc-cm4 \
156160
--- build --release --manifest-path build/stm32-metapac/Cargo.toml --target thumbv7em-none-eabi --features pac,metadata,stm32wl54jc-cm0p \
157161
--- build --release --manifest-path build/stm32-metapac/Cargo.toml --target thumbv7em-none-eabi --features pac,metadata,stm32wl55jc-cm4 \

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
@@ -500,6 +533,28 @@ fieldset/SECSR:
500533
description: "Secure wait data to write\r This bit indicates that the memory write buffer has been written by a secure or non-secure operation. It is set when the first data is stored in the buffer and cleared when the write is performed in the memory."
501534
bit_offset: 17
502535
bit_size: 1
536+
fieldset/SECWM2R1:
537+
description: Flash bank 2 secure watermark register 1
538+
fields:
539+
- name: SECWM2_PSTRT
540+
description: "WRP area B start page\r This field contains the first page of the secure area in bank 2."
541+
bit_offset: 0
542+
bit_size: 7
543+
- name: SECWM2_PEND
544+
description: "End page of secure area\r This field contains the last page of the secure area in bank 2."
545+
bit_offset: 16
546+
bit_size: 7
547+
fieldset/SECWM2R2:
548+
description: Flash bank 2 secure watermark register 2
549+
fields:
550+
- name: HDP2_PEND
551+
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."
552+
bit_offset: 16
553+
bit_size: 7
554+
- name: HDP2EN
555+
description: Bank 2 secure Hide protection area enable
556+
bit_offset: 31
557+
bit_size: 1
503558
fieldset/SECWMR1:
504559
description: secure watermark register 1
505560
fields:
@@ -522,36 +577,66 @@ fieldset/SECWMR2:
522577
description: Secure Hide protection area enable
523578
bit_offset: 31
524579
bit_size: 1
525-
fieldset/WRPAR:
526-
description: WRP area A address register
580+
fieldset/WRP1AR:
581+
description: WRP bank 1 area A address register
527582
fields:
528-
- name: WRPA_PSTRT
583+
- name: WRP1A_PSTRT
529584
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."
530585
bit_offset: 0
531586
bit_size: 7
532-
- name: WRPA_PEND
587+
- name: WRP1A_PEND
533588
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."
534589
bit_offset: 16
535590
bit_size: 7
536591
- name: UNLOCK
537592
description: WPR area A unlock
538593
bit_offset: 31
539594
bit_size: 1
540-
fieldset/WRPBR:
541-
description: WRP area B address register
595+
fieldset/WRP1BR:
596+
description: WRP bank 1 area B address register
542597
fields:
543-
- name: WRPB_PSTRT
598+
- name: WRP1B_PSTRT
544599
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."
545600
bit_offset: 0
546601
bit_size: 7
547-
- name: WRPB_PEND
602+
- name: WRP1B_PEND
548603
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."
549604
bit_offset: 16
550605
bit_size: 7
551606
- name: UNLOCK
552607
description: WPR area B unlock
553608
bit_offset: 31
554609
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)