Um. Just a bit more about
@davdua referred to.
The self-driving computer has flash RAM in it. In many respects, this acts like a hard drive; i.e., when the power goes out, it keeps on storing things until the power comes back on. Same basic technology (but much faster) than ye typical USB stick, and similar to the drives in modern PCs.
The bit that not everybody gets: A flash memory cell has a more-or-less fixed number of erase/write cycles built into it; just an artifact of the technology. These range from 10,000 to a million write cycles, depending. After which they don't run so good no more.
So, the solution for this is something called "wear leveling". It's a kind of double-indirection game: The outside system thinks it's looking at a contiguous, linear bunch of sectors. Inside this hardware, though, are a bunch of sectors that can, under the hood if you will, can be swapped for sectors that aren't so worn.
This scheme works pretty well, but it works best if one is vaguely continuously writing and erasing $RANDOM sectors all over and if the flash RAM isn't 100% full of data.
The Tesla problem on their HW3 (I think) CPU boards was that the flash RAM in question was ridiculously full with the actual operating program; and a good chunk of what was left was being used for
debugging logs. Which is fine when one is developing code and looking for things that might be going wrong; but if the little free flash RAM that one has left is being continually written with new data, over and over and over, one tends to wear out the sectors where the logs are going and there's relatively little spare sectors to swap in. So writes would fail, read/modify/write would fail, and Bad Would Happen.
Once alerted, Tesla changed their software to not write the logs so much. But in the meantime, the flash RAMs would fail, and Tesla's solution was to replace the entire board, $3000 or so down the tubes.
Thus sprung up a cottage industry: the flash RAM is a chip with, apparently, the leads sticking out to either side. So enterprising people would desolder the chip off the board, put it into a programmer that could read the contents, then swap out the first chip for a brand-spanking new blank one, write the data into the new chip, solder it onto the board, verify that the board booted, and send it back to the original owner. For a heck of a lot less than $3000.
My memory is a little fuzzy on it all, but that cottage industry may still exist.
But if your car's under warranty, then you don't have to pay for the swap anyway.