ohjeongwook / dumpflash

Low-level NAND Flash dump and parsing utility
288 stars 102 forks source link

Adding reset before readid #9

Closed eiselekd closed 4 years ago

eiselekd commented 7 years ago

Hi, adding a reset cmd before reading the ID seems to be needed by my setup:

diff --git a/FlashDevice.py b/FlashDevice.py
index cf94610..4637f4d 100644
--- a/FlashDevice.py
+++ b/FlashDevice.py
@@ -243,6 +243,8 @@ class NandIO:
                return self.Slow

        def GetID(self):
+               self.sendCmd(self.NAND_CMD_RESET)
+               time.sleep(0.1)
                self.sendCmd(self.NAND_CMD_READID)
                self.sendAddr(0,1)
                id=self.readFlashData(8)

// Greetings Konrad

wiperpaul commented 4 years ago

Thanks for adding, this issue helped me out a lot.

After adding this line I got the ID values I was expecting

ohjeongwook commented 4 years ago

Applied with https://github.com/ohjeongwook/DumpFlash/commit/4761dfc00822114092facb720287b1bf53f3f759