You still need to handle this exception of course, but writing a catch block to handle a detected error is much simpler than writing code to detect all possible errors.
当然还需要处理这个异常,但编写一个catch块来处理检测到的错误比起编写代码来检测所有可能的错误来说要简单得多。
You can detect the presence of back blocks from a failed flash operation (such as an Erase) or an invalid Write operation (discovered through an invalid Error Correction Code, or ECC).
如果flash操作(例如Erase)失败,或者Write 操作无效(通过无效的错误校正代码发现,Error Correction Code,ECC),那么说明出现了坏块。
You can detect the presence of back blocks from a failed flash operation (such as an Erase) or an invalid Write operation (discovered through an invalid Error Correction Code, or ECC).
如果flash操作(例如Erase)失败,或者Write 操作无效(通过无效的错误校正代码发现,Error Correction Code,ECC),那么说明出现了坏块。
应用推荐