Today I was finally ready to program the D2716D EPROM for the GB3TC repeater using the GB3US firmware (or more accurately my modded version of the firmware).
I never expected to be able to get the EPROM programmer (Advanced Research Technology ART EPP-2) working correctly under Linux but it was surprisingly straightforward.
ART EPP EPROM programmer
USB Serial device
9 pin serial to 25 pin serial adapter
PC power cable (kettle lead)
ppdos.exe from http://download.artbv.nl/programmers/epp2/ppdos.exe
ffcdos.exe from http://download.artbv.eu/programmers/epp2/ffcdos.exe
To configure DOSBox so it can use the USB serial device we need to change a line in ~/.dosbox/dosbox-*.conf (where * is the version number):
serial1=directserial comport=1 realport:ttyUSB0
You also need to allow any user to access the serial port, open a terminal window and type the following:
sudo chmod a+rw /dev/ttyUSB0
Do not close the terminal window.
In the DOSBox window type in:
mount c ~
which will allow you to access your home folder within DOSBox.
Change directory to wherever you downloaded ppdos.exe and ffcdos.exe earlier.
Both files are self extracting. To make life a little easier make a directory to keep the extracted files together:
This will extract the files.
ppdos is the EPROM programming software and ffcdos is the file converter to turn a binary file into a file suitable for programming to the EPROM.
We now have the programming software (PROMPROG.EXE) and the conversion software (FFC.EXE).
For now we will assume the EPROM binary file you wish to program is called EPROM.BIN and is in your ~ directory.
FFC C:\EPROM.BIN EPROM.S1FThis will create a new file EPROM.S1F in the current directory (C:\EPROG).
Time to program the EPROM :)
We need to know a few things before we start:
The EPROM manufacturer (NEC)
The EPROM size (2KBytes, 8 bits)
The EPROM type (D2716D – 2716)
The 2716 is not known by the programming software, but there is a similar EPROM available – the 2732.
Insert the EPROM into the programmer. One end of the EPROM has a notch, this indicates pin one.
To insert the EPROM, lift the handle up and rotate the EPROM so the end with the notch is towards the end with the handle and the flat end is to the right hand side. The flat end goes into the last set of pins
The first thing we need to do is verify that this is a working EPROM. We can do that by reading the EPROM contents directly into the software:
As we can see the buffer is full of FF bytes. This is what is expected from a blank EPROM.
Compare that to the next image which contains a previously programmed EPROM:
We now know that the EPROM is inserted correctly, can be read and is blank, ready for programming. Time to program the EPROM.
To program the EPROM we first have to clear the existing buffer, load the EPROM.S1F file we created earlier and finally program it.
When it completes, you can verify the EPROM
We have now verified the EPROM is programmed correctly. Take the EPROM out of the programmer by lifting the handle vertically and then lifting the EPROM straight up. It will be loose and will easily come out of the ZIF holder.
As the EPROM is UV erasable it may be a very good idea to cover the window with a sticky label, and write the contents of the EPROM on the label.