Sean, as you have changed the valvetronic motor with a known good one I assume you have a donor car to swap bits from? Not the best form of diagnostics I know, but have you tried a known good valvetronic ECU on it? No coding required just the stops to learn and very quick to swap over.