Merge pull request #4578 from lucimobility/bugfix/xspi-alternate-bytes

STM32 XSPI: Disable alternate bytes if not requested
This commit is contained in:
Dario Nieuwenhuis 2025-08-22 19:48:03 +00:00 committed by GitHub
commit ef673c6ca3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- fix: Fix vrefbuf building with log feature
- fix: Fix performing a hash after performing a hmac
- chore: Updated stm32-metapac and stm32-data dependencies
- fix: Fix XSPI not disabling alternate bytes when they were previously enabled
## 0.3.0 - 2025-08-12

View File

@ -429,6 +429,11 @@ impl<'d, T: Instance, M: PeriMode> Xspi<'d, T, M> {
w.set_abdtr(command.abdtr);
w.set_absize(CcrAbsize::from_bits(command.absize.into()));
})
} else {
T::REGS.ccr().modify(|w| {
// disable alternate bytes
w.set_abmode(CcrAbmode::B_0X0);
})
}
// Configure dummy cycles