Skip to content

Commit a7406b6

Browse files
authored
Merge pull request #682 from eZioPan/w25q32-example-patch
update example to match w25q datasheet
2 parents 858163f + 8ee1234 commit a7406b6

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1111

1212
- complete and rework Dma Stream API [#666]
1313
- SPI bidi takes 2 pins [#526]
14+
- `Fast Read Quad I/O (EBh)` in `qspi-w25q` example now matches W25QXX datasheet. [#682]
1415

1516
### Fixed
1617

@@ -25,6 +26,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2526
[#666]: https://github.com/stm32-rs/stm32f4xx-hal/pull/666
2627
[#677]: https://github.com/stm32-rs/stm32f4xx-hal/pull/677
2728
[#678]: https://github.com/stm32-rs/stm32f4xx-hal/pull/678
29+
[#682]: https://github.com/stm32-rs/stm32f4xx-hal/pull/682
2830

2931
## [v0.17.1] - 2023-07-24
3032

examples/qspi-w25q.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ where
123123
QspiReadCommand::new(data, QspiMode::QuadChannel)
124124
.instruction(0xEB, QspiMode::SingleChannel)
125125
.address(address, QspiMode::QuadChannel)
126-
.dummy_cycles(6),
126+
// the M0-M7 bits will be send by alternate_bytes, and the value should be 0xFX
127+
.alternate_bytes(&[0xFF], QspiMode::QuadChannel)
128+
.dummy_cycles(4),
127129
)?;
128130

129131
Ok(())
@@ -135,7 +137,9 @@ where
135137
.instruction(0xEB, QspiMode::SingleChannel)
136138
.address_mode(QspiMode::QuadChannel)
137139
.data_mode(QspiMode::QuadChannel)
138-
.dummy_cycles(6),
140+
// the M0-M7 bits will be send by alternate_bytes, and the value should be 0xFX
141+
.alternate_bytes(&[0xFF], QspiMode::QuadChannel)
142+
.dummy_cycles(4),
139143
)
140144
}
141145
}

0 commit comments

Comments
 (0)