> The 'driver' for flash attached as memory is var = ((var type )(0xsome64bitaddress);
It's a nice idea, but the driver for flash needs to do much more than this. For example, blocks need to be erased before they can be re-written, and since they have a limited lifecycle blocks must also be copied around and remapped.