Here's what I want you do do when you get the ECU and TPS back.
-Insert a small wire, or strip the insulation back so you can measure E2 while it's plugged into the TPS
-With the ECU and TPS installed, turn the key to on.
-Measure the voltage between E2 at the TPS, and the battery negative. You SHOULD have 0v. If you're getting anything else, like 0.5v or something, then you have a problem with your grounds.
-Measure the voltage between VCC and the battery ground too (with the ECU on, and TPS connected. It should read very close to 5V.
If either if these signals are off, then you are effectively scaling the signal that the TPS is sending the ECU. If this scaled signal falls too low, your ECU throws a code.
Then, measure the voltage between E1 and the battery ground, then E2 and the battery ground at the ECU, while the ECU is plugged in, and on.
What I believe is happening is that somewhere, something is pulling your ground (or 0v to keep figgy happy) up a little bit, maybe to 0.5v or something. If the TPS was originally sending the ECU a 500mv signal, now all of the sudden the ground that the ECU is referencing at is at 400mv, the ECU thinks the TPS is actually sending a 100mv signal, and throws a code.
does this make sense to you at all?