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.
This commit is contained in:
bunnie 2022-07-13 04:38:06 +08:00
parent e26e6e6bd0
commit 02c886bf84

View file

@ -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(),