ardupilot icon indicating copy to clipboard operation
ardupilot copied to clipboard

Params: Warn when writing to full eeprom

Open goochpw opened this issue 13 years ago • 10 comments

It seems that some parameters are not saved to the APM 2.6 module. For example, mag_enabled will not save no matter how I change it... the various methods of modifying parameters. I think this bug has been around for at least several versions.

goochpw avatar Sep 26 '13 03:09 goochpw

copter or plane (or both)?

rmackay9 avatar Sep 26 '13 03:09 rmackay9

plane.

goochpw avatar Sep 26 '13 14:09 goochpw

Could someone see if this issue is still present a year later?

squilter avatar Sep 19 '14 19:09 squilter

I think this could be caused by one of a few things:

  1. FRAM bug that Tridge fixed recently. https://github.com/diydrones/ardupilot/commit/d24159204ec82b1d266da89f70c39c50b00c89c8
  2. User's eeprom has filled up (we don't provide any warning when this happen unfortunately). It could happen if the user had written a large number of parameter (perhaps from a .param file) at some point.
  3. an unknown bug in mission planner (in which case this issue would be moved to the MP issues list).

We don't have an issue to capture the 2nd possibility so I think we should assume it's that one and rename the subject.

rmackay9 avatar Sep 20 '14 00:09 rmackay9

Is this still a concern on Pixhawk hardware onwards? If not then we can go ahead and close it

WickedShell avatar Feb 09 '16 08:02 WickedShell

@WickedShell @rmackay9 @squilter it's working on APM 2.6 with EEPROM very good using methods of modifying parameters indeed.

@goochpw Thanks you for your participation. Good luck!

hiro2233 avatar Sep 08 '16 06:09 hiro2233

So I think we've recently had a case of this happening for someone on a Pixhawk when loading a lot of parameters from a file. So it's likely we still have this issue and should provide a warning to the user.

rmackay9 avatar Jan 28 '17 05:01 rmackay9

@rmackay9, i haven't ever heard of this recently. Is filling EEPROM still a potential issue?

Naterater avatar Jan 17 '19 23:01 Naterater

@Naterater, I think it is still an issue. It shows up as users being unable to save parameters but I still think there's no other warning.

rmackay9 avatar Jan 18 '19 01:01 rmackay9

I believe we will, in fact, get an error when parameter storage is full.

https://github.com/ardupilot/ardupilot/blob/master/libraries/AP_Param/AP_Param.cpp#L1123 - that message will be emitted if storage for parameters is full.

I artificially reduce the amount of storage space by modifying StorageManager and loaded a whole bunch of parameters:

image

So if we do have a parameter-saving problem, it's not this.

The issue subject is that we don't have a warning. We clearly do, so I'm closing this one as "fixed".

peterbarker avatar Jun 15 '20 05:06 peterbarker