SITL Link 1 down right after startup

Hi, I’ve been trying to add my own mode to ArduPlane. I managed to get it compiled somehow, but when I tried to run a simulation on SITL, the link goes down after a few seconds before I get to do anything meaningful.

Here’s the image of the compiling process:


and the MavProxy Console:

Thanks in advance for any kind of help