You need to read out the contents of flash to a hex file in Flash Magic, then program that hex file into the other device.
Note - you need to program into the same part number. Also if the device is locked then you won't be able to read the flash.
Andy