Give a different error when writing to flash or ram