@leonardo-Andrade-0 For the case where you are using only GPS and MAG the parameters need to reflect that. SYS_HAS_GPS = 1, SYS_HAS_MAG = 1, EKF2_MAG_TYPE = 0.
@constantines Unfortunately, the PX4 Mavlink module is only running on the applications processor (Linux) and not on the DSP side. Mavlink would have to be added to the DSP PX4 build.