Skip to content

Commit c939e2b

Browse files
author
Gerzain Mata
committed
Added support for WBA6XXX devices
1 parent 778e3d1 commit c939e2b

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

d

Lines changed: 1 addition & 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

stm32-data-gen/src/chips.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ static NOPELIST: RegexSet = RegexSet::new(&[
145145
"STM32N6.*",
146146
"STM32G41[14].*",
147147
"STM32G4.*xZ",
148-
"STM32WBA6.*",
149148
"STM32WB0.*",
150149
"STM32WL3.*",
151150
// Does not exist in ST website. No datasheet, no RM.

stm32-data-gen/src/interrupts.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ fn valid_signals(peri: &str) -> Vec<String> {
502502
("GTZC", &["GLOBAL", "ILA"]),
503503
("WWDG", &["GLOBAL", "RST"]),
504504
("USB_OTG_FS", &["GLOBAL", "EP1_OUT", "EP1_IN", "WKUP"]),
505-
("USB_OTG_HS", &["GLOBAL", "EP1_OUT", "EP1_IN", "WKUP"]),
505+
("USB_OTG_HS", &["GLOBAL", "EP1_OUT", "EP1_IN", "WKUP", "USB"]),
506506
("USB", &["LP", "HP", "WKUP"]),
507507
("GPU2D", &["ER"]),
508508
("SAI", &["A", "B"]),
@@ -525,7 +525,7 @@ static PICK_NVIC: RegexMap<&str> = RegexMap::new(&[
525525
("STM32WL5.*:cm4", "NVIC1"),
526526
("STM32WL5.*:cm0p", "NVIC2"),
527527
// Exception 2: TrustZone: NVIC1 is Secure mode, NVIC2 is NonSecure mode. For now, we pick the NonSecure one.
528-
("STM32(L5|U5|H5[2367]|WBA5[245]).*", "NVIC2"),
528+
("STM32(L5|U5|H5[2367]|WBA5[245]|WBA6[2345]).*", "NVIC2"),
529529
// Exception 3: NVICs are split for "bootloader" and "application", not sure what that means?
530530
("STM32H7[RS].*", "NVIC2"),
531531
// catch-all: Most chips have a single NVIC, named "NVIC"

stm32-data-gen/src/memory.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,8 @@ static MEMS: RegexMap<&[&[Mem]]> = RegexMap::new(&[
384384
// WBA
385385
("STM32WBA...E", &[mem!(BANK_1 { 0x08000000 512 }, SRAM { 0x20000000 96 }, OTP { 0x0bf90000 512 bytes })]),
386386
("STM32WBA...G", &[mem!(BANK_1 { 0x08000000 1024 }, SRAM { 0x20000000 128 }, OTP { 0x0bf90000 512 bytes })]),
387+
("STM32WBA6..G", &[mem!(BANK_1 { 0x08000000 512 }, BANK_2 { 0x08080000 512}, SRAM { 0x20000000 192 }, SRAM2 { 0x20070000 64 }, OTP { 0x0bfa0000 512 bytes })]),
388+
("STM32WBA6..I", &[mem!(BANK_1 { 0x08000000 1024 }, BANK_2 { 0x08100000 1024}, SRAM { 0x20000000 448 }, SRAM2 { 0x20070000 64 }, OTP { 0x0bfa0000 512 bytes })]),
387389
// WL
388390
("STM32WL[5E]..8", &[mem!(BANK_1 { 0x08000000 64 }, SRAM1 { 0x20000000 10 }, SRAM2 { 0x20002800 10 })]),
389391
("STM32WL[5E]..B", &[mem!(BANK_1 { 0x08000000 128 }, SRAM1 { 0x20000000 24 }, SRAM2 { 0x20006000 24 })]),

0 commit comments

Comments
 (0)