-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ZeroDivisionError: integer division or modulo by zero #6
Comments
This mean initialization failed. Can you confirm your hardware is working correctly? |
Hmm, I double / triple checked the wiring and all is good there. The orientation of the chip is correct in the socket. I checked if I had inadvertently fried the chip but it was still functional when placed back on its board. I do believe the FTDI board is recognized by the pyftdi library and cannot see why it would not be able to as lsusb displays the FTDI device. It seems that the issue is that it cannot read anything from the chip for some reason. When readFlashData() is called on line 239 it returns a list of eight zeroes. Is there anything I needed to do beyond wiring up the socket / FTDI board, installing the dependencies for your program, and running the script? I've tried another NAND chip from the same model device and it also resulted in the same error. I am doing this inside a VM -- but since the Linux VM can see the FTDI board I think that could not be the issue. |
I was using unsupported NAND chips apparently. I ended up trying four overall, two newer 16GB chips (One Toshiba and one unmarked), one 8GB chip (Micron) that came out 4-5 years ago, and an absolute ancient 128MB chip (ST Micro) that would rarely recognize with my computer. It worked with the 128MB chip. Any idea why some chips do not work? I'm assuming some kind of new feature in the technology? |
Can you give me the chip model and names? I can look it up to see what might be the reason. |
Same issue with All command run as All packages has been install via pip inside virtualenv:
I try fix import:
And import looks ok. dmesg after FTDI connected:
Then i run
And dmesg after
lsusb before and after
But again and again run
|
Hello,
I have hooked up the FTDI breakout board and oriented the TSOP-48 NAND flash chip correctly in the socket. But I get this error when running the script? I am using python 2.7.6, pyftdi-0.9.1, pyusb 1.0.0, and libusb-1.0-0.dev. Am I missing a dependency or a specific version?
The text was updated successfully, but these errors were encountered: