PX4 / PX4-Autopilot

PX4 Autopilot Software
https://px4.io
BSD 3-Clause "New" or "Revised" License
8.33k stars 13.44k forks source link

[Bug] Dronecan Firmware Updating is Broken on Main #23727

Open AlexKlimaj opened 2 weeks ago

AlexKlimaj commented 2 weeks ago

Describe the bug

Firmware updating on 1.15 works but is broken on main after the Dronecan submodule update. Nodes fail the update then the update restarts and fails again indefinitely.

Online nodes (Node ID, Health, Mode):
         71 CRIT       SW_UPD

uavcan: cycle time: 71419 events, 4965837us elapsed, 69.53us avg, min 10us max 72605us 488.892us rms
uavcan: cycle interval: 71419 events, 2893.50us avg, min 19us max 266795us 2696.179us rms
nsh> INFO  [uavcan:71:Boot] Es
ERROR [uavcan:71:Boot] Pf
INFO  [uavcan:71:Boot] Es
ERROR [uavcan:71:Boot] Pf
INFO  [uavcan:71:Boot] Es

To Reproduce

No response

Expected behavior

No response

Screenshot / Media

No response

Flight Log

No response

Software Version

No response

Flight controller

No response

Vehicle type

None

How are the different components wired up (including port information)

No response

Additional context

No response

julianoes commented 3 days ago

This is updating via the PX4 SD card? I wasn't aware of that method and always used the gui tool with a USB to CAN tool.

AlexKlimaj commented 3 days ago

The main way I've always been updating firmware over CAN has been from the PX4 SD card. Most customers use this method as well since not many people have USB to CAN adapters.

julianoes commented 3 days ago

Makes sense. I will have to test this and fix it.

DronecodeBot commented 2 days ago

This issue has been mentioned on Discussion Forum for PX4, Pixhawk, QGroundControl, MAVSDK, MAVLink. There might be relevant details there:

https://discuss.px4.io/t/px4-sync-q-a-oct-09-2024/41789/1