The safe option would be to get the ECU of the donor car, but I don't see how you couldn't mate the motor to a new ECU.
Service guys swap ECUs or flash them for various reasons all the time, but I'm unsure of the procedure to help with that. You can always look at the service manual for the Q50 located at:
Http://www.nicoclub.com/fsm