crmaykish / at28c-eeprom-programmer-arduino Goto Github PK
View Code? Open in Web Editor NEWProgramming the AT28C64B or AT28C256 EEPROM chip with an Arduino Mega
License: MIT License
Programming the AT28C64B or AT28C256 EEPROM chip with an Arduino Mega
License: MIT License
Can you add a connection diagram so others can see how to wire up the shield?
Hello!
Those -l and -o options, are not optional!
File "/home/esalgado/Downloads/AT28C-EEPROM-Programmer-Arduino/at28c_programmer.py", line 84, in main str(addr - args.offset[0]) + " / " + str(len(contents))) TypeError: 'NoneType' object is not subscriptable
I needed to add the -l with the file size (-l 6374 ) and -o 0 for it to write data. It wrote the data perfectly.
Otherwise, excellent tool! I wanted to extend this to program AT29 chips, maybe it is as easy as adding some extra pins!! :)
ser = serial.Serial(args.device[0], 115200)
AttributeError: module 'serial' has no attribute 'Serial'
The code for the programmer for the Arduino contains a serious bug that may cause random EEPROM writes every time it starts communicating with the board. Even when reading from the EEPROM .
In a typical Mega Arduino board, every time the at28c_programmer.py command is run and communication begins, the Arduino is reset and the setup function is executed.
Unfortunatelly the initialization sequence of control signals begins with setting the OE, WE, CS lines as output, and only later are they set to a high state.
Execution of functions
pinMode(OUTPUT_ENABLE, OUTPUT);
pinMode(WRITE_ENABLE, OUTPUT);
pinMode(CHIP_ENABLE, OUTPUT);
causes the outputs of the Arduino to go LOW value for a while, which can cause random EEPROM writes.
On my chips, mostly random values appear in the first memory cells.
In order to prevent this situation, I changed the code to
pinMode(CHIP_ENABLE, OUTPUT);
digitalWrite(CHIP_ENABLE, HIGH);
pinMode(OUTPUT_ENABLE, OUTPUT);
digitalWrite(OUTPUT_ENABLE, HIGH);
pinMode(WRITE_ENABLE, OUTPUT);
digitalWrite(WRITE_ENABLE, HIGH);
It prevented accidental writes.
These writes occurred every time the Arduino was reset, such as when the power was turned on.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.