mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
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:
parent
e26e6e6bd0
commit
02c886bf84
1 changed files with 2 additions and 0 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue