LibrePilot Forum

Development => Firmware General => Topic started by: marksull on January 27, 2016, 10:46:26 am

Title: LP 15.09 Stack Error on REVO
Post by: marksull on January 27, 2016, 10:46:26 am
Hey Guys

I'm seeing Stack error on my REVO (genuine not clone) after upgrading to LP 15.09 and hence can never arm. This is what I've tried in my troubleshooting effort. Any suggestions welcome.

- Upgraded REVO from OP 15.02 to LP 15.09, including full erase.
- After completing the vehicle and transmitter wizard I noticed that after I saved anything, I would see a Stack alarm.
- Reboot, go to hardware tab, save without making any changes, Stack alarm would return.
- Reinstall firmware, erase again, complete wizards again, stack error remains.
- Undeleted my OP GCS 15.02, downgraded firmware, erased.
- Used LP 15.09 again, upgrade again, full erase, ran wizards, Stack alarm would return.
- Went back to OP GCS 15.02, downgraded firmware again, erased, ran wizards, no stack alarm and REVO happy (arms without issue)
- Downloaded OP GCS 15.05.02, upgraded firmware, erased, ran wizards, no stack alarm



Thoughts?

Title: Re: LP 15.09 Stack Error on REVO
Post by: f5soh on January 27, 2016, 01:44:52 pm
That strange.

Can you send your config file when you got the stack alarm ?
File > Export UAV settings

Or better: Help > Export UAV data ?
Title: Re: LP 15.09 Stack Error on REVO
Post by: marksull on January 28, 2016, 04:58:03 am
Attached are both files while the Revo is reporting Stack error. Before I started these steps the REVO was running 15.05.02 and would arm without error.

To recreate the problem I did:

1) Started LP 15.09 (Mac OSX 10.11.3)
2) Plugged in REVO
3) Started Vehicle Setup Wizard
4) Upgraded AND Erased all settings
5) Board was automatically identified as REVO
6) PWM
7) Multirotor
8) Quad X
9) Rapid ESC
10) OpenPilot Platinum
11) Calculate
12) Went through the ESC Calibration process
13) Calibrated all motors at the same time (although doing it 1by 1 makes no difference)
14) Generic Quad X
15) Save
16) Wait for the controller to reboot
17) Finish (don't do the Transmitter setup wizard, although doing it still presents with the same issue, so I am just saving some time)
18) Go to GCS Flight Data tab, note that all is Green except input (as we haven't done it yet)
19) Go to GCS Configuration tab, HW Settings and just click Save (no need to change anything)
20) Go to GCS Flight Data tab, note the Stack error

As a further test:

21) Power off quad, and power up
22) Go to GCS Flight Data tab, note that all is Green except input (as we haven't done it yet)
23) Go to GCS Configuration tab, HW Settings and just click Save (no need to change anything)
24) Go to GCS Flight Data tab, note the Stack error
Title: Re: LP 15.09 Stack Error on REVO
Post by: f5soh on January 28, 2016, 07:52:13 am
Thanks for the detailled report :)

I can't reproduce the alarm but the System stack goes very low. In your case 8 bytes remaining !
Value for memory size was not updated since some time.

Try the firmware attached and all should be fine, you can update the firmware manually using the "rescue" method.
Title: Re: LP 15.09 Stack Error on REVO
Post by: marksull on January 28, 2016, 10:54:32 am
Thank you, that has resolved the issue. No more stack error.

For my own interest, what issue was fixed in the firmware that resolves my problem?

Appreciate your time.

Cheers!
Title: Re: LP 15.09 Stack Error on REVO
Post by: f5soh on January 28, 2016, 03:00:52 pm
Increased memory size allocated to System module same as RevoNano.
From 1024 to 1536bytes.

You can check the TaskInfo > TaskRemaining values in UavoBrowser
Title: Re: LP 15.09 Stack Error on REVO
Post by: marksull on January 28, 2016, 03:55:37 pm
Fantastic. Thanks for the info and the quick turn around. Appreciate your time.
Title: Re: LP 15.09 Stack Error on REVO
Post by: TheOtherCliff on February 04, 2016, 11:19:28 pm
@f5soh (@marksull)

If you can't recreate the issue from the uav file, it makes me wonder if the user should erase settings and import the file like you did, maybe the issue would go away.  Maybe it is a corrupt/full/slow settings flash storage issue.
Title: Re: LP 15.09 Stack Error on REVO
Post by: aa8mc on February 12, 2016, 02:05:25 am
Hey guys, just a heads up I reproduce this exact same issue in my F450. 

@f5soh have you committed the FW change to the next branch.  I am working on building it to I can try out the I2C mag as you recommended on another thread.  Haven't done the upgrade yet still working on building my dev environment but I'm wondering if this has been resolved.
Title: Re: LP 15.09 Stack Error on REVO
Post by: f5soh on February 12, 2016, 07:13:52 am
Just now, merged to next :)
Title: Re: LP 15.09 Stack Error on REVO
Post by: aa8mc on February 15, 2016, 08:16:54 pm
Awesome, I'll pull, rebuild and report back!
Title: Re: LP 15.09 Stack Error on REVO
Post by: cutemachines on April 12, 2016, 01:29:33 am
Hi guys, looks like I have found the same issue like @marksul. The Stack Error appear on REVO with fw 15.09 only.

I tried to pull the most up-to-date next, rebuild and reflash. Revo works okay - no Stack Errors at all. But the problem appear when I try to reflash my OpLink Mini (Coordinator) with the latest, rebuilt fw for that board. Looks like - that after the reflash and reconnecting my OpLink - the OpLink button is missing from the Configuration tab. The latest pull (next) affects only OpLink - my Revo works without any issues.

Trying to fix the connectivity issue (between Revo and OpLink) I can apply one of the following scenarios:
1. Downgrade both boards to 15.09 - then the radio link works fine (binding and telemetry transmission ok), but I quickly get Stack Error on REVO, or
2. Downgrade OpLink to 15.09 and Revo to 15.09 (dirty) - build made by @f5soh. In this scenario I'm losing radio link (between Revo and OpLink) because or fw version mixup. Binding procedure cannot be completed because OpLink (coordinator in this case) doesn't see my Revo.

Hope all of this make sense. Base on the information I gathered I can exclude hardware malfunction, or configuration mixup. This mean I need a error-free, compatible firmware files for both boards. Can you guys help me with fw rebuild so all firmwares will be compatible and without Stack Error?

Cheers, Fil
Title: Re: LP 15.09 Stack Error on REVO
Post by: f5soh on April 12, 2016, 10:56:45 am
Quote
In this scenario I'm losing radio link (between Revo and OpLink) because or fw version mixup.

Hi,

The firmware do not have issues if you use it with other Oplink 15.09 firmware.
UAVO are the same.

If you want to build something you can compile the next branch:
https://librepilot.atlassian.net/wiki/display/LPDOC/Windows+Building+and+Packaging

Title: Re: LP 15.09 Stack Error on REVO
Post by: cutemachines on April 12, 2016, 03:12:02 pm
@f5soh, thanks for coming back. I understand what did you say, my problem is related to the "next" build. I built firmware files for Revo i OpLink - version "Next", reflashed the boards and I can still recognise the boards, they work okay until I try to configure OpLink. After the reflash and reconnecting my OpLink/Revo - the OpLink button is missing from the Configuration tab (see the attachement).

I'm using GCS Mac version 15.09. I tried to build GCS from the "next" branch but I found some errors along the way and gave up. Would be great if you could build the Mac version of the GCS for me. Do you think that the missing OpLink button is related to the fact that my GCS in 15.09 and the FWs are Next?

Maybe you could introduce like a weekly builds (full package, GCS and firmware files) - it's been awhile since you released 15.09.

Thanks, Fil
Title: Re: LP 15.09 Stack Error on REVO
Post by: f5soh on April 12, 2016, 04:36:44 pm
Ah...
You simply cannot use "next" firmware with 15.09 GCS.

Sorry i don't use Osx. Linux all time and windows in VM for builds.
Title: Re: LP 15.09 Stack Error on REVO
Post by: hwh on April 12, 2016, 04:54:32 pm
Another forum user posted a link to an OS-X next build a few weeks ago in thread https://forum.librepilot.org/index.php?topic=869.msg7934#msg7934   At least one user downloaded it and said it worked.
Title: Re: LP 15.09 Stack Error on REVO
Post by: cutemachines on April 13, 2016, 04:55:05 pm
@f5soh thanks for confirmation that my thinking was correct. And @hwh thanks for the link - OSX next build works very well! I hope to see next official release soon:)
Title: Re: LP 15.09 Stack Error on REVO
Post by: Ptscherpofel on June 26, 2016, 03:31:52 pm
I also had the stack error with a revo and 15.09
the fw by f5soh seams to fix this
but since some time has past , I was just wondering if this still the best solution to this problem?
Title: Re: LP 15.09 Stack Error on REVO
Post by: f5soh on June 26, 2016, 06:59:31 pm
Still the right solution if you experienced low system memory with Revo.
Title: Re: LP 15.09 Stack Error on REVO
Post by: smfelton on June 27, 2016, 08:50:32 pm
Getting this constantly with 15.09, but not having any issues with 'next'.
Shane
Title: Re: LP 15.09 Stack Error on REVO
Post by: f5soh on June 27, 2016, 09:10:48 pm
Looks normal, the "fix" is already in next
Title: Re: LP 15.09 Stack Error on REVO
Post by: edimitchel on July 20, 2016, 11:55:14 am
Hello everyone,

I build a skywalker plane (the 1680 v6-wingspan version) with the Revolution controller card (with OPlink module) in order to make an autonomous flight assisted by GPS. I have the required GPS that work well (ten satellites found).

I got the same problem about stack overflow error : please, what do you clearly suggest to do (in simple English terms please, I'm french) ?

I've the basic framework, so I don't upload the bootloader of Revolution, may be that the problem ?

Thank you a lot for your past answers about this exception, I didn't found others helpful answers on the web !
Title: Re: LP 15.09 Stack Error on REVO
Post by: f5soh on July 20, 2016, 01:15:02 pm
Download firmware here from a previous post :
https://forum.librepilot.org/index.php?topic=708.msg5170#msg5170

Manually update the firmware:
- Disconnect board
- Hit Rescue
- Connect board
- Open firmware downloaded and flash it.
Title: Re: LP 15.09 Stack Error on REVO
Post by: edimitchel on July 20, 2016, 07:36:17 pm
I don't see link or file..

I try to download the firmware for librepilot.org (https://librepilot.atlassian.net/wiki/display/LPDOC/Downloads) : I did what you said ; the version is good (15.09) but issue still appears..
Title: Re: LP 15.09 Stack Error on REVO
Post by: f5soh on July 20, 2016, 07:39:43 pm
You don't see the attached firmware file here ?
https://forum.librepilot.org/index.php?topic=708.msg5170#msg5170

This file need to be used with 15.09 GCS and fix the stack error.

(https://forum.librepilot.org/index.php?action=dlattach;topic=708.0;attach=3686)
Title: Re: LP 15.09 Stack Error on REVO
Post by: edimitchel on July 20, 2016, 07:40:33 pm
NOPE !
Title: Re: LP 15.09 Stack Error on REVO
Post by: f5soh on July 20, 2016, 07:42:41 pm
Weird... file attached should be only hidden while disconnected.

Try this link:
https://forum.librepilot.org/index.php?action=dlattach;topic=708.0;attach=1332
Title: Re: LP 15.09 Stack Error on REVO
Post by: edimitchel on July 20, 2016, 09:25:29 pm
Thank you a lot, it's good !

My Skywalker can fly now !

One last question : the last LibrePilot firmware allows GPS Assist ?
Title: Re: LP 15.09 Stack Error on REVO
Post by: f5soh on July 20, 2016, 11:41:53 pm
GPS Assist should be used with multirotors i think
Title: Re: LP 15.09 Stack Error on REVO
Post by: edimitchel on July 21, 2016, 03:25:12 pm
Your fixed wing that I saw on your YouTube channel was assisted by GPS, isn't ?
Title: Re: LP 15.09 Stack Error on REVO
Post by: f5soh on July 21, 2016, 03:35:09 pm
yes, automatic flight using PathPlan/PathFollower.

But nothing related to GPSAssist that refers to an option you can add to Attitude/Rattitude stabilization:
https://librepilot.atlassian.net/wiki/display/LPDOC/Gps+assist
Title: Re: LP 15.09 Stack Error on REVO
Post by: rotomoto on July 25, 2016, 11:06:01 am
I get this every time after saving changes in settings.
It started after enabling Battery Voltage monitoring.
Looks like system memory is the reason.
Seem to be no other problem and error is gone after restart.

Title: Re: LP 15.09 Stack Error on REVO
Post by: JimFulton on August 31, 2016, 04:09:30 pm
I was having the same STACK alarm that marksull was having. I downloaded your “dirty” version, flashed my REVO board and my STACK alarm went away.  :)
Thanks four help.

-Jim