Page 1 of 1

at91sam9g25 PMECC: Timeout to calculate error location.

Posted: Fri Jun 14, 2019 3:54 pm
by klugja
We were hitting this error very frequently, so we patched:

drivers/mtd/nand/atmel_nand_ecc.h

We increased the timeout value:

-#define PMECC_MAX_TIMEOUT_MS 100
+#define PMECC_MAX_TIMEOUT_MS 120

We would see hundreds of these messages booting our device before the patch. Afterwards it was rare.

Should we increase it further? We are still running into this error in our testing. This error is happening on the order of once per minute when we are writing steadily to the flash using logger. (Some applications require persistent logs).

Is there any danger increasing the timeout value? Could it block all I/Os and shut down the NAND?