PX4 / PX4-Autopilot

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

fmu-v4_cannode stuck in boot loop #14547

Closed JacobCrabill closed 4 years ago

JacobCrabill commented 4 years ago

Sometime recently the cannode build target for the Pixracer (fmu-v4) was broken. It will boot, but upon connecting a Zubax Babel board to the CAN port, the Babel will show that the cannode gets stuck in an infinite reboot loop. It will briefly show up as initializing, then power off and disappear from the UAVCAN GUI, show up again as initializing, etc.

This commit still works: pull/14444/d14fc944

But as of last Friday at least (and I tried yesterday as well) master does not work.

@dakejahl

dakejahl commented 4 years ago

Can you describe your test setup? I just tested this on a Pixracer with a GPS attached and everything works as expected.

JacobCrabill commented 4 years ago

Hmm. Using commit 2b82b471? I'll give that another try.

dakejahl commented 4 years ago

Yup whatever the latest commit is

JacobCrabill commented 4 years ago

Still doesn't work for me; I just get this in the UAVCAN GUI when connected to a Babel: image

It stays in the "INITIALIZATION" mode for a second or two then goes away. And now after a few minutes, it's no longer rebooting itself at all is doesn't appear on the CAN bus at all.

Using an mRobotics Pixracer; brand-new purchase from last week.

JacobCrabill commented 4 years ago

Oh, interesting. I removed the micro-USB cable, replug the CAN cable, and now it works 🤔

JacobCrabill commented 4 years ago

Somewhere the handling of USB power on this must have changed. All of my prior testing has been with just leaving the USB cord plugged in.

At any rate, it's looking good now! image

dakejahl commented 4 years ago

Do you have a FTDI to hook into the console? The USB cable being plugged in should make no difference, I've got mine plugged in with a USB as well.

JacobCrabill commented 4 years ago

I do; which connector/pins expose the console on the Pixracer?

dakejahl commented 4 years ago

It's part of the pixhawk debug port https://dev.px4.io/v1.9.0/en/debug/system_console.html

JacobCrabill commented 4 years ago

Ah, I see it. I have a DroneCode Probe; I'll give that a try later when I have time.

JacobCrabill commented 4 years ago

Well I rebased @dakejahl's airspeed branch on top of master (actually this branch here: https://github.com/volans-i/Firmware/tree/pr-uavcan-airspeed) and it all works now 🤷‍♂️ image