diff --git a/embassy-stm32/Cargo.toml b/embassy-stm32/Cargo.toml
index 40b7559fd..d06d8af03 100644
--- a/embassy-stm32/Cargo.toml
+++ b/embassy-stm32/Cargo.toml
@@ -72,7 +72,7 @@ rand_core = "0.6.3"
 sdio-host = "0.5.0"
 critical-section = "1.1"
 #stm32-metapac = { version = "15" }
-stm32-metapac = { git = "https://github.com/embassy-rs/stm32-data-generated", tag = "stm32-data-59b1f65bd109c3ef35782e6c44062208d0ef3d0e" }
+stm32-metapac = { git = "https://github.com/embassy-rs/stm32-data-generated", tag = "stm32-data-cdd0f8e7cb79cbd126e2480f1b747fb01c901910" }
 
 vcell = "0.1.3"
 nb = "1.0.0"
@@ -97,7 +97,7 @@ proc-macro2 = "1.0.36"
 quote = "1.0.15"
 
 #stm32-metapac = { version = "15", default-features = false, features = ["metadata"]}
-stm32-metapac = { git = "https://github.com/embassy-rs/stm32-data-generated", tag = "stm32-data-59b1f65bd109c3ef35782e6c44062208d0ef3d0e", default-features = false, features = ["metadata"] }
+stm32-metapac = { git = "https://github.com/embassy-rs/stm32-data-generated", tag = "stm32-data-cdd0f8e7cb79cbd126e2480f1b747fb01c901910", default-features = false, features = ["metadata"] }
 
 [features]
 default = ["rt"]
diff --git a/tests/stm32/build.rs b/tests/stm32/build.rs
index 675115568..722671bf1 100644
--- a/tests/stm32/build.rs
+++ b/tests/stm32/build.rs
@@ -10,14 +10,10 @@ fn main() -> Result<(), Box<dyn Error>> {
 
     if cfg!(any(
         // too little RAM to run from RAM.
-        feature = "stm32f103c8",
-        feature = "stm32c031c6",
-        feature = "stm32wb55rg",
-        feature = "stm32l073rz",
-        feature = "stm32h503rb",
-        // wrong ram size in stm32-data
-        feature = "stm32wl55jc",
-        feature = "stm32u5a5zj",
+        feature = "stm32f103c8", // 20 kb
+        feature = "stm32c031c6", // 6 kb
+        feature = "stm32l073rz", // 20 kb
+        feature = "stm32h503rb", // 32 kb
         // no VTOR, so interrupts can't work when running from RAM
         feature = "stm32f091rc",
     )) {