we're gonna need a circuit diagram, a text description might not be enough.
I might be misinterpreting what you are saying, but I have a theory anyways: power could be going through the TX line, just enough to power up the ATmega alone, but once it's in your circuit board, there's too many other components also drawing the same power and the ATmega does not have enough anymore to actually run code.