check the code for when you have a manual ECU in. The manual cars come with a different Idle Air Control Valve (2 wires vs. 3 wires) i think. So this makes sense your ECU is freaking out cus it doesnt have an auto transmission to control and your buddies ECU is freaking out cus it doesnt have the right IACV to control.