write a nand_recovery() that can run into SAM-BA