Prearm: Logging failed only with MAVLink

I am trying to stream log data over MAVLink. However, if I set LOG_BACKEND_TYPE to 2 or 3, I get a Prearm: Logging Failed error. No Arm/Prearm logging error occurs when this parameter is set to 1(File). What could be the possible causes for this issue?

Firmware version: Copter-4.3.4 (CubeOrange)

I have tried a bunch of things like setting LOG_BITMASK, log buffer size, etc. but to no avail.

1 Like

Facing the same issue.

Getting ‘PreArm: Logging failed’ while trying to Arm by setting LOG_BACKEND_TYPE with 2(only stream log data over MAVLink) or 3(log in file and also stream over MAVLink), but found that board is logging after doing Force Arm.

Tried with Plane-4.3.4 and ArduPlane-4.0.9 Versions, CubeOrange.

Any solution to make this work without PreArm error is appreciated. Thanks in advance.

@tridge @rmackay9

Regards,
Monesh.

Have you tried to reformat the SD card or tired a different SD card? I had this issue as well and it was due to a poor SD card so I replaced it and it worked. But start first with a fresh format and see if that will help before just replacing.

1 Like

Thanks for the reply.

Actually its logging in SD card even after PreArm error of logging failed when I tried ‘force arm’ to check the issue, so there is no issue from SD card side. But the logging failed error is popping up only when I enables streaming over MAVLink.

If I disable the stream over MAVLink option and only kept file logging there is no PreArm error.