inav icon indicating copy to clipboard operation
inav copied to clipboard

1.5.1 - Board stops responding to MSP when GPS is used

Open digitalentity opened this issue 9 years ago • 11 comments

F4 based boar, connected to PC via MSP.

When GPS is not connected everything works perfectly. As soon a GPS is connected and starts sending out data board stops responding to MSP after a while. LEDs keep blinking so seemingly board is alive, although I'm not sure it is flyable.

digitalentity avatar Jan 07 '17 02:01 digitalentity

Correction - this is unrelated to MSP - board just freezes faster.

digitalentity avatar Jan 07 '17 02:01 digitalentity

Board even stops responding to SerialRX - can't ARM it. Looks like the serial system is messed up somehow.

digitalentity avatar Jan 07 '17 02:01 digitalentity

Hm... the bug is very sporadic - sometimes the board works fine, sometimes hangs up after a few seconds. I wonder what causes the bug.

digitalentity avatar Jan 07 '17 03:01 digitalentity

Is this specific to F4?

jflyper avatar Jan 07 '17 10:01 jflyper

I have a strong feeling that this is a hardware issue. I've been flying this board today for half an hour without any issues. Also had it sitting connected to PC for quite a while without issue.

digitalentity avatar Jan 07 '17 10:01 digitalentity

Are you using softserial ports? I had freezes like the one you describe when I had two softserial working on MSP simultaneously (one to a MW_OSD and the other one to a Bluetooth serial interface connected to a PC running the GUI). After few seconds of polling statuses the board (SPRacingF3 evo) froze. Happened costantly every time.

rb1205 avatar Jan 09 '17 08:01 rb1205

I also had this issue a couple of version back on a NAZE32 Rev6 Full version; it would happen if I sit idle once the GPS got a fix; sometime before if is just sits there it would just freeze and not respond I was afraid to fly it feeling that it would freeze while in the air but it seemed that once it was armed the freezing would not take place. I two also think it has something to do with the combination of (GPS + MW_OSD). I was worried and I did not want to take chance so I replace it FC with a SPRacing (Clone I am sure it is) with the built in OSD. If the person above me with the SPRacing F3evo is having the issue the difference is that they are using the (GPS + a external MW_OSD similar to what I was using with my Naze32); maybe the external MW_OSD on soft serial is causing the issue?

tonyintn avatar Jan 09 '17 14:01 tonyintn

Maybe it's related - SPRACINGF3 board in airplane. MSP and OSD (MW-OSD) ar on the same port, UART1. Works fine on USB-only (so GPS and other stuff is not powered on). Works fine on battery-only (so UART1 is used for OSD data) (both cases - ~25min on desk, not flying - but working fine)) Freezes in few seconds with USB+battery connected (MSP over USB + GPS connected). So far, 8 in 8 tries ;-) Can't say if that happens in older versions - just swapped from CC3D controller and flashed new version. Freezes completely - no inputs from RX, OSD is not updating, no servo movement/stabilisation.

ABLomas avatar Jan 10 '17 23:01 ABLomas

MSP is not a bus, you can connect at most one running device at a time, and it's expected that stuff goes bad when you have more tha one device sending data to the same port at once, I don't really thing is related to the bug discussed.

rb1205 avatar Jan 11 '17 08:01 rb1205

I believe I'm experiencing this issue. My hardware: http://www.readytoflyquads.com/flip-32-f4-omnibus-v2-pro Link to status, bootlog, and dump: https://paste.ee/p/oxbMt Link to build info: https://paste.ee/p/jsayv

wcalvert avatar Jan 30 '17 01:01 wcalvert

My 2 F4 boards were running MSP and GPS yesterday for an hour each. Different UARTs. No problems detected, I'm closing it since it does not seems to be software related

DzikuVx avatar Jan 31 '17 15:01 DzikuVx