From 02c886bf8405bff6f6351fd43076bf57036d1026 Mon Sep 17 00:00:00 2001 From: bunnie Date: Wed, 13 Jul 2022 04:38:06 +0800 Subject: [PATCH] attempt to fix-up ECC error by clearing both ECC registers this doesn't seem to fix it tho, when we hit the error the chip just returns 0xFF's eternally. --- services/spinor/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/spinor/src/main.rs b/services/spinor/src/main.rs index ab77a52e7..dc5658087 100644 --- a/services/spinor/src/main.rs +++ b/services/spinor/src/main.rs @@ -249,6 +249,8 @@ mod implementation { // write 0 into the register to clear it spinor.csr.wfo(utra::spinor::WDATA_WDATA, 0); flash_wrcr2(&mut spinor.csr, 0x800); + spinor.csr.wfo(utra::spinor::WDATA_WDATA, 0); + flash_wrcr2(&mut spinor.csr, 0x0400_0800); xous::try_send_message(spinor.handler_conn, xous::Message::new_scalar(Opcode::EccError.to_usize().unwrap(),