Plus ROM Flash Tool 1.7 is done
Plus ROM Flash Tool 1.7 is finished and up for download. It's the tool that reflashes the ROM-inator in a Mac Plus or 512K right on the machine, no programmer and no chip puller. The tool is Steve Chamberlin's. I made some small fixes to it, with his help.

How it got here
It's been six years since I took over the original ROM-inator from Steve. I've kept selling it as ROM-inator Resurrections the whole time, with a few small board changes along the way, but I never touched the Flash Tool. It worked, mostly.
Then I spent most of this year on the SE ROM-inator. That meant porting the Flash Tool to the SE, and the SE version kept crashing in ways that taught me a lot about how the original works. Once the SE tool was stable, the obvious next step was to take those fixes back to the Plus.
What's different

It supports the flash chips we plan to use in future kits, alongside the SST39SF040 and Am29F040. All the chip IDs 1.6 accepted are still there.
There's a new Happy Mac Face option. Pick a 20-byte face file and it goes straight to the right place in ROM. No more typing 400FD2 into Custom Address. Steve's original face collection comes as full ROM Code files, so I've included the same faces as 20-byte files.
Anything that rewrites the main ROM is now written last. When it's done, the screen tells you to switch the Mac off and on. This was the big one. The Mac runs from that part of the ROM, so rewriting it under the running system can crash halfway through. And on the Plus a software restart just hangs on a black screen, so the power switch really is the clean way out.
It won't touch the ROM disk or its driver while you're booted from the ROM disk. Boot from a floppy or hard disk first. The startup sound can still be changed either way.
Startup sounds are padded or trimmed to 15,540 bytes, which is what the ROM actually plays, with a short fade so there's no click. Before, a short sound was followed by whatever was left in the sound area. On a fresh ROM that's zeros, and you got a thump at the end. The thump is gone. A little noise is still there, and that part is the hardware.
More checks against picking the wrong file: WAV and AIFF are refused for the startup sound, MacBinary-wrapped files are refused, ROM disk images have to be whole 512-byte blocks, and a full ROM image can't go to a custom address.
If the two chips report different IDs, the error message says so.
New desktop icon: the startup Happy Mac wearing the ROM-inator's sunglasses.
Two old bugs
While I was in there I found two small bugs in the original code. The check that waits for an AMD-type chip to start erasing was written as (*p) & 0x0808 == 0x0808. In C, == binds tighter than &, so that line was really testing (*p) & 1. It happened to work most of the time, which is probably why nobody noticed. The other one: the Entire ROM loop read one block past the end of the flash. Both are fixed.
Still runs on a 512K
1.6 runs on a 512K Mac, and I didn't want to lose that. The SE version holds a big chunk of the ROM in RAM while it works, and that would never fit in 512K. So the Plus version changes the write order instead and still uses only the one 128K buffer from 1.6. It still doesn't run on a 128K, there just isn't enough memory.
I've tested every update area on a real Mac Plus and everything went through. My 512K has a DOVE SCSI card in it right now, so the ROM-inator is out of that machine and I haven't tried it there yet. I will.
It works with any ROM-inator
The original ROM-inator is open source. If you built yours from the files on GitHub or bought one from another seller, this tool works the same. The full source is in the download too, as a THINK C 5.0 project.
Downloads

SCSI disk image with the tool and all the ROM files on it: MEGA
StuffIt archive with the same files: MEGA
Assembly instructions, redone to match the current board, with a new chapter on the Flash Tool: PDF
ROM-inator Resurrections kit: product page
Thanks to Steve for the tool and for letting me poke at it, and to JDW, whose build video is still the best way to learn how to put the kit together.




Comments