aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Lannen <[email protected]>2025-05-01 13:25:54 -0600
committerKevin Lannen <[email protected]>2025-08-22 09:27:24 -0600
commit9db5a173d093e402b9cc10640c9619950849c57d (patch)
tree9f9e7a086fd60217a36cc2529b5df1d14ca9c50d
parentd65a5078f26f860881b2f4a0db84e0d8f3160624 (diff)
STM32 XSPI: Disable alternate bytes if not requested
If a previous command used alternate bytes and the next command does not have them the alternate bytes need to be turned off
-rw-r--r--embassy-stm32/CHANGELOG.md1
-rw-r--r--embassy-stm32/src/xspi/mod.rs5
2 files changed, 6 insertions, 0 deletions
diff --git a/embassy-stm32/CHANGELOG.md b/embassy-stm32/CHANGELOG.md
index 301c20055..9cd4d5951 100644
--- a/embassy-stm32/CHANGELOG.md
+++ b/embassy-stm32/CHANGELOG.md
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
13- fix: Fix vrefbuf building with log feature 13- fix: Fix vrefbuf building with log feature
14- fix: Fix performing a hash after performing a hmac 14- fix: Fix performing a hash after performing a hmac
15- chore: Updated stm32-metapac and stm32-data dependencies 15- chore: Updated stm32-metapac and stm32-data dependencies
16- fix: Fix XSPI not disabling alternate bytes when they were previously enabled
16 17
17## 0.3.0 - 2025-08-12 18## 0.3.0 - 2025-08-12
18 19
diff --git a/embassy-stm32/src/xspi/mod.rs b/embassy-stm32/src/xspi/mod.rs
index 44c10b961..60ccf3c97 100644
--- a/embassy-stm32/src/xspi/mod.rs
+++ b/embassy-stm32/src/xspi/mod.rs
@@ -429,6 +429,11 @@ impl<'d, T: Instance, M: PeriMode> Xspi<'d, T, M> {
429 w.set_abdtr(command.abdtr); 429 w.set_abdtr(command.abdtr);
430 w.set_absize(CcrAbsize::from_bits(command.absize.into())); 430 w.set_absize(CcrAbsize::from_bits(command.absize.into()));
431 }) 431 })
432 } else {
433 T::REGS.ccr().modify(|w| {
434 // disable alternate bytes
435 w.set_abmode(CcrAbmode::B_0X0);
436 })
432 } 437 }
433 438
434 // Configure dummy cycles 439 // Configure dummy cycles