-
Notifications
You must be signed in to change notification settings - Fork 34
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
python script doesn't work #21
Comments
Did you run |
Yes, I installed the smbus. The error is from converting to python 3 It should'nt have been converted. I managed to read the firmware but wasn't able to flash a new one. I guess I'll have to try another method, maybe with windows. |
Thanks, you are right. I fixed the import statement and the readme. Some EEPROMs are write-protected. The erase and write commands seemingly succeed and the chip does not respond with an error, but they actually do nothing. When you read the EEPROM again, it will be the same data as before. Some EEPROMs have a pin for write-protection. You can try to lift it off and connect it with either GND or supply voltage (check the datasheet what is required to turn off the write-protection). |
I think that I don't have the right firmware for my board because when I try to flash back the firmware I extarcted, it works fine. |
Yes, if you flash back the same firmware you read, the CRC is correct because nothing was changed in the EEPROM. If you erase the first sector and a following write fails, your board cannot boot. However, in your case, it still seems to work. This is another proof that nothing was actually changed in the EEPROM. Can you post a picture of your EEPROM? We can check if it has a pin connected for write-protection. |
In the file rtd266x.py, there is in line 2 :
from rtd266x.smbus import SMBus
But there is no file smbus.py in the directory rtd266x
The text was updated successfully, but these errors were encountered: