NAZE32+latest baseflight frozes on PC and in the air

timecop
Posts: 1880
Joined: Fri Sep 02, 2011 4:48 pm

Re: NAZE32+latest baseflight frozes on PC and in the air

Post by timecop »

Roeland54 wrote:feature gps enabled (but no gps connected)


so why the fuck are you wasting everyone's time?
No gps = why is feature GPS enabled?

scrat
Posts: 925
Joined: Mon Oct 15, 2012 9:47 am
Location: Slovenia

Re: NAZE32+latest baseflight frozes on PC and in the air

Post by scrat »

I think some months ago I have a problem when board was connected to computer only with USB - so GPS doesn't work if board connected only with usb and feature GPS was enabled...looptime was freezing every 5 seconds - but if board is connected with usb and quadcopter powered up with battery too there is no freezing. But now I do not have this problem if board is connected only with usb.

timecop
Posts: 1880
Joined: Fri Sep 02, 2011 4:48 pm

Re: NAZE32+latest baseflight frozes on PC and in the air

Post by timecop »

Yes, since USB doesn't power RX+other stuff on "external" 5V rail.
And old GPS code would try to initialize ublox and/or autobaud and that would take time because transmission was setup with delay() in it instead of switching task like it is now. Anyway, all this has been fixed ages ago - if people are flying ~current firmware none of this should be happening.

scrat
Posts: 925
Joined: Mon Oct 15, 2012 9:47 am
Location: Slovenia

Re: NAZE32+latest baseflight frozes on PC and in the air

Post by scrat »

Agree and true!

lightbridge
Posts: 3
Joined: Sun May 18, 2014 8:21 pm

Re: NAZE32+latest baseflight frozes on PC and in the air

Post by lightbridge »

Hello,
Same thing for me with the full version of the naze32...
I've tested almost everything with no succes.
I use a futaba r2008sb linked in traditional mode...
A friend has the naze32 accro and the same rx with the same firmware and it does the job...
I'll follow this thread closely to see if you guys find the solution :)
And if ever i find it, (who knows :D ) i'll let you know !
Fred

lightbridge
Posts: 3
Joined: Sun May 18, 2014 8:21 pm

Re: NAZE32+latest baseflight frozes on PC and in the air

Post by lightbridge »

Ok, I've flashed the board with the 2.2 firmware and it works fine but Baseflight doesn't deal with this version.
I'm forced to use multiwiiWinGui...
Anyway, It works :)

timecop
Posts: 1880
Joined: Fri Sep 02, 2011 4:48 pm

Re: NAZE32+latest baseflight frozes on PC and in the air

Post by timecop »

So, with a post by a guy with DJI username, we've now narrowed it down that it only happens on retarded receivers that aren't PPM.

timecop
Posts: 1880
Joined: Fri Sep 02, 2011 4:48 pm

Re: NAZE32+latest baseflight frozes on PC and in the air

Post by timecop »

Confirmed with PWM receiver - PWM interrupt reshuffling introduced some race condition in I2C driver. Will debug and see what's up.
Should not affect PPM receivers.
For now, go back to some older build, something from early April should be OK.

timecop
Posts: 1880
Joined: Fri Sep 02, 2011 4:48 pm

Re: NAZE32+latest baseflight frozes on PC and in the air

Post by timecop »

"fixed" (more like worked around) in current online -hex.
Please update.

lightbridge
Posts: 3
Joined: Sun May 18, 2014 8:21 pm

Re: NAZE32+latest baseflight frozes on PC and in the air

Post by lightbridge »

Hi timecop, Lightbridge doesn't stand for dji this time It's a Dobson style telescope :)))
Many thanks :)))
Fred

hkubota
Posts: 35
Joined: Wed Sep 05, 2012 2:48 pm

Re: NAZE32+latest baseflight frozes on PC and in the air

Post by hkubota »

timecop wrote:Confirmed with PWM receiver - PWM interrupt reshuffling introduced some race condition in I2C driver. Will debug and see what's up.
Should not affect PPM receivers.
For now, go back to some older build, something from early April should be OK.


Thanks a lot for confirming the likely root cause. Debugging race conditions in interrupts...that's stuff I'm glad someone else does :D

Phantom_Najd
Posts: 3
Joined: Sat May 24, 2014 9:45 pm

Re: NAZE32+latest baseflight frozes on PC and in the air

Post by Phantom_Najd »

timecop wrote:Confirmed with PWM receiver - PWM interrupt reshuffling introduced some race condition in I2C driver. Will debug and see what's up.
Should not affect PPM receivers.
For now, go back to some older build, something from early April should be OK.


Hey timecop,

I bought two controllers form you recently (Order Number: 4934 placed on May 11) and they both keep freezing once I connect my flight battery. I use Futaba radio and normal (non S-Bus) Orange receiver. Could the receiver be the cause of the problem? I have read this thread last night and tried the two .hex files and the current (April 19) online FW and the problem still persists. I am using these controllers on my tricopter. Any advice?

Azzam

User avatar
treym
Posts: 258
Joined: Sat Jul 21, 2012 12:28 am

Re: NAZE32+latest baseflight frozes on PC and in the air

Post by treym »

do the board freeze with all those 3 firmware ?

Phantom_Najd
Posts: 3
Joined: Sat May 24, 2014 9:45 pm

Re: NAZE32+latest baseflight frozes on PC and in the air

Post by Phantom_Najd »

Yeah they both do. They work flawlessly on baseflight until I connect the flight battery then they work for a minute or less before they freeze. I am trying the .hex FW from 6 April as we speak now (the one posted by hkubota on page 1 of this thread) and so far the freezing had gone! Will keep testing on the ground.

Azzam

Phantom_Najd
Posts: 3
Joined: Sat May 24, 2014 9:45 pm

Re: NAZE32+latest baseflight frozes on PC and in the air

Post by Phantom_Najd »

Phantom_Najd wrote:Yeah they both do. They work flawlessly on baseflight until I connect the flight battery then they work for a minute or less before they freeze. I am trying the .hex FW from 6 April as we speak now (the one posted by hkubota on page 1 of this thread) and so far the freezing had gone! Will keep testing on the ground.

Azzam


Just a quick update for those interested... The freezing is completely gone with the 6 April FW .hex file. Thanks hkubota for sharing the file with us.

Azzam

spredana
Posts: 3
Joined: Thu May 29, 2014 3:54 am

Re: NAZE32+latest baseflight frozes on PC and in the air

Post by spredana »

problem solved now, thanks guys

timecop
Posts: 1880
Joined: Fri Sep 02, 2011 4:48 pm

Re: NAZE32+latest baseflight frozes on PC and in the air

Post by timecop »

Let's put this one to rest - all people who HAD trouble (pwm rx, lockup, etc) - try out attached fw, make sure 'version' in cli reports todays date for build date, and try to repeat lockup - usually just arming and throttling up a bit and letting it sit maybe while wiggling sticks or model - should be enough to trigger the issue if it's there.

however i'm fairly certain it has been resolved, as I had several reports from people i directly contacted about this issue that it was working.
Attachments
baseflight.zip
current prebuilt firmware (latest source, not same as online built firmware)
(67.85 KiB) Downloaded 216 times

Naze_Moto
Posts: 14
Joined: Mon May 05, 2014 5:13 pm

Re: NAZE32+latest baseflight frozes on PC and in the air

Post by Naze_Moto »

Aha, good to see this, and no replies saying it hasn't fixed the issue. I haven't been flying in months, but for external reasons.
I will update to this hex when I get back to the bench, and thoroughly bench test the rig, to verify its all good now.

Thanks for finding the issue, TC,I work with software developers, so I understand its hard to convince an error happening if evidence is hard to come by.

timecop
Posts: 1880
Joined: Fri Sep 02, 2011 4:48 pm

Re: NAZE32+latest baseflight frozes on PC and in the air

Post by timecop »

No problem. It was eventual narrowing down to futaba / pwm users that helped figure this one out. And yeah, from what I know this has been fixed for good.

tom12345
Posts: 4
Joined: Sat Jul 05, 2014 5:18 am

Re: NAZE32+latest baseflight frozes on PC and in the air

Post by tom12345 »

any ideas on this wild ride....this happens about every 7-8 battery's

https://www.youtube.com/watch?v=VfFSo59wK6E

scrat
Posts: 925
Joined: Mon Oct 15, 2012 9:47 am
Location: Slovenia

Re: NAZE32+latest baseflight frozes on PC and in the air

Post by scrat »

Do you have the latest FW on your FC? And are you using PWM or PPM connection to the board?

tom12345
Posts: 4
Joined: Sat Jul 05, 2014 5:18 am

Re: NAZE32+latest baseflight frozes on PC and in the air

Post by tom12345 »

this is version dated "jun 1 2014 / 22:14:50 " I had previous one as well and it would do the same thing. this is ppm connection to ezuhf lite 4ch receiver directly from naze...naze powers receiver

timecop
Posts: 1880
Joined: Fri Sep 02, 2011 4:48 pm

Re: NAZE32+latest baseflight frozes on PC and in the air

Post by timecop »

so, it has nothing to do with naze hardware then?

tom12345
Posts: 4
Joined: Sat Jul 05, 2014 5:18 am

Re: NAZE32+latest baseflight frozes on PC and in the air

Post by tom12345 »

timecop wrote:so, it has nothing to do with naze hardware then?


I had a previous version of firmware on the same board and it did the same issue...I am asking if this looks like a flight controller issue or something else. it's is hard to tell. i was flying straight and level the first time this happened and it just abruptly flipped over 180 degrees to the side exactly stayed there for a second and flipped back before it hit the ground I punched the throttle and save it..

it's in the first part of this vid...

https://www.youtube.com/watch?v=Y0wr7yIxcno


Post Reply