From 934532a7d2b013015455ccfeb6bb2845948626ce Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Thu, 9 Jan 2020 12:42:53 +0100 Subject: [PATCH] common: Add missing Write Enable command to Mx25L::program_page(). Without a write enable, the flash memory doesn't take our data. --- src/common/mx25l.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/mx25l.rs b/src/common/mx25l.rs index ecc42ba..56c2d44 100644 --- a/src/common/mx25l.rs +++ b/src/common/mx25l.rs @@ -115,6 +115,8 @@ impl Mx25l { return Ok(()); } + self.write_enable(); + self.with_selected(|| { spi::tx8(spi::SPI0, Command::PP as u8); -- 2.30.2