bprom v0.3.2 − Read and write (E)EPROMs with Boehm u−prom and u−prom 2001 |
bprom [options] ... |
bprom is used to read or write EPROMs or EEPROMs
with the u−prom and u−prom 2001 programmers by
the German brand Dr. Rainer Boehm GmbH & Co. KG. |
The following options are provided by bprom using the standard GNU command line syntax: |
−h, −−help |
Print a summary of command line options and exit. |
−V, −−version |
Print the current version and exit. |
−v, −−verbose |
Be verbose, show progress bar. |
Interface: |
−p, −−programmer=model |
possible values are uprom and uprom2001 |
−s, −−serial−port=dev |
The first serial port on linux systems is /dev/ttyS0, when using an USB-serial-adapter it might be /dev/ttyUSB0 or /dev/tty.usbserial |
−B, −−baud−rate=bps |
possible values are 38400 (default for u−PROM 2001), 19200, 9600 (default for u−PROM), 2400, 1200 and 300 |
−−no−handshake |
No hardware handshake with RTS/CTS, not recommended |
Actions: |
−r filename, −−read |
Read chip and write data to file |
−w filename, −−write |
Write chip with data from file |
−b, −−blank |
Perform blank test |
−c, −−compare |
Compare data from master socket with copy socket |
−e, −−erase |
Erase EEPROM |
Arguments and options: |
−M, −−master−socket |
Use master socket instead of copy socket |
−a, −−auto |
Try to autodetect chip (MAY DESTROY CHIP!!!) |
−t, −−type=STRING |
Type of the EPROM, e.g. 2732A. This option is only available for the uprom so far with the following types: 2716, 2816, 2732, 2732A, 2764, 27128, 27256 and 2532. If your programmer is a uprom2001, use the −m option. |
−m, −−mode=STRING |
with uprom: FAST (default) or STD programming mode |
−−size=LONG |
Number of bytes to be written or read |
The only modes the u-PROM knows are FAST (which is
used as default) and STD. When using the standard
mode, each byte gets programmed with a 50 ms programming
pulse, except the 27256 who uses a 1 ms pulse. Please notice
that you mustn’t apply a pulse of 50 ms to a 2816, use
the fast mode instead. |
In order to enable the programmer to do something useful with the chip, he must know it’s size, type, programming mode, programming voltage and so on. All these values are encoded in one single byte, the mode byte that is defined with the −m option. Best thing is to autodetect the mode with the −a option, since the programmer uses the best settings advised by the chip’s manufaturer, if he know’s the chip. BE CAREFUL WITH AUTODETECT!!! Since autodetect works with a voltage of 12V at A9, a chip may be DESTROYED if he doesn’t support it. Most chips <8K don’t, some 8K do, and most >8 do. If the chip doesn’t support autodetect, or if the chip supports autodetect but the programmer doesn’r know it, you’re on your own: you have to manually select the mode byte from the following table: The following abbreviations are used: STD Standard programming algorhythm |
2K chips −m 0: STD, 50 ms, Vpp=25V, e.g. 2716 |
−m 1: IP, 1 ms, Vpp=25V |
4K chips |
−m 7: STD, 50 ms, Vpp=25V, e.g. 2732 |
8K chips |
−m 14: STD, 50 ms, Vpp=21V, e.g. old
2764 |
16K chips |
−m 21: IP, 1 ms, Vpp=21V |
32K chips |
−m 28: IP, 1 ms, Vpp=21V |
64K chips |
−m 35: IP, 1 ms, Vpp=12.5V, e.g. 27C512 |
128K chips |
−m 42: IP, 1 ms, Vpp=12.5V, e.g. 27C1001 |
256K chips |
−m 49: HS, 0.1 ms, Vpp=12.5V, e.g.
27C2001 |
512K chips |
−m 56: HS, 0.1 ms, Vpp=12.5V, e.g.
27C4001 |
bprom -p uprom -v -t 2716 -r
backup.rom bprom -p uprom -s /dev/ttyS0 -B 2400
-v -t 2732 -M -r paranoid.rom bprom -p uprom -v -t 2716
-m STD -w chargen.rom bprom -p uprom -v -t 2716
-m FAST -w chargen.rom bprom -p uprom -v -t 27256 -bw
myprog.rom bprom -p uprom -b -t 2764 bprom -p uprom -v -t 2816 -e
-b |
bprom -v -r backup.rom -m 0 bprom -s /dev/ttyS1 -B 9600 -v
-m 9 -M -r paranoid.rom bprom -m 0 -vw chargen.rom bprom -abw myprog.rom bprom -b -m 20 bprom -b -d -m20 bprom -cv -m0 bprom -ev -m16 |
bprom can also be used in batch files. It provides the following return codes: 0 no errors |
If you find a bug, fix a bug or enhance bprom, please let me know and write to: nils.eilers@gmx.de If you use a USB-serial-adapter and bprom hangs, abort bprom with Ctrl-C, pull the adapter out of the USB-port, plug it again and restart bprom. This error occurs after reading EPROMs, but you can write EPROMs without having to plug the adapter. |
srecord <http://srecord.sourceforge.net> is a bunch of tools for work with EPROMs, very useful for converting formats like intel hex to binary, splitting EPROMs etc. |
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
Nils Eilers <nils.eilers@gmx.de> |