mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-22 14:19:57 +08:00
When no output is configured for DShot, init fails and the destructor calls up_dshot_arm(false) before up_dshot_init() ever ran. Since the FlexIO driver rework up_dshot_arm() writes SHIFTSIEN and TIMIEN unconditionally, but FlexIO1 is still clock gated at that point and an access to a gated i.MX RT peripheral stalls the bus: the app dies about 12 s after boot with no fault, before the USB autostart. Seen on the RT1064 (MR-VMU-TROPIC); RT1176 boards init DShot successfully first. Return early when the channel mask is empty.