|For novel ideas about building embedded systems (both hardware and firmware), join the 40,000+ engineers who subscribe to The Embedded Muse, a free biweekly newsletter. The Muse has no hype and no vendor PR. Click here to subscribe.|
By Jack Ganssle
It's Only a Software Change
Back in the 70s, when co-development meant fending off dinosaurs as we punched out our programs on paper tape, I worked on a system that used 16 - count `em - sixteen 1702A EPROMs as the program store, for a breathtaking total of 4k of memory. It's hard to believe that a $20 chip requiring three power supplies held only 256 bytes of code, but the microprocessor industry was in its infancy then.
The ship sank a week into the voyage. Insurance paid the our company and the resulting delays bought us the time we needed to get the code right.
We were lucky.. But unfortunately, you can't count on such disasters as a scheduling mechanism.
Eventually the program worked correctly and we committed it to masked-ROM to reduce production costs. The stockroom had thousands of sets of chips. The smallest software change obsoleted all of those parts. Though management never understood that firmware changes, feature enhancements, and bug fixes were hugely expensive in engineering time, they were deathly afraid of tossing out so much inventory. For the only time in my career I was in a situation where no one ever said "hey, it's only a software change."
Today better technology - like Flash memory - has removed the inventory constraint to code changes. It's only a software change - we download new code in seconds, can deliver fixes and enhancements via the Internet, and can even return to the glory days of self-modifying code. We can ship early, before the system works, via UPS Ground, an analog to the old slow-boat-to-China, and email code that works as the system arrives in the customer's anxious hands.
I'd never advocate getting rid of reprogrammable memory devices. They do offer astounding benefits. But there's an underlying cost ignored by virtually all managers. It's too damn easy to figure a minor enhancement is "only a software change."
Engineering is generally a fixed expense in most organizations; the cost to develop and maintain a product is rarely amortized over the number of units sold. Using reprogrammable parts means there's no cost to making changes, or at least no cost that's traceable to the product. We developers understand that the very simplest of feature changes might require weeks or months of expensive engineering, but the product manager gets the upgrade apparently for free. Why not endlessly needle us with requests for mods?
I hear engineering managers complain bitterly about the cost of Flash memory; in some products it's nearly the largest cost driver in the system. A scarier costs, in my opinion, is that it reinforces the myth of "it's only a software change."
It's a fact that even a single-bit change to a program may require weeks of validation, integration, testing, and productization. Managers just don't seem to get this. Masked ROM gave them a cost they could understand; reprogrammable chips don't.
The sense is that software changes are free. That implies engineering is free. QED. Yet they're dumping engineers in droves, because we're expensive assets. Where's the logic in all of this?