Cannot upload code to Arduino Mega when connected to external power supply

Toggling the RST pin resets the Arduino just fine, under USB power or External power.

I guess i have to hook up the Oscilloscope to find out what is going on.

It's just interesting this reset-program is only there when on external power.

// Per.