Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added retries to FRAM init and read #13581

Merged
merged 4 commits into from Mar 14, 2020
Merged

Conversation

tridge
Copy link
Contributor

@tridge tridge commented Feb 16, 2020

This is an attempt to fix an intermittent issue reported where parameters are lost with FRAM based boards under certain power conditions.
It does 3 things:

  • adds a retry to init and read in AP_RAMTRON, delaying 10ms each time to give a chance for power to settle
  • disables fallback to microSD for boards with FRAM
  • disables fallback to flash storage for fmuv3 based boards

The fallbacks are being disabled as they could be causing a board to change between different storage systems on different boots

@mirkix
Copy link
Member

mirkix commented Mar 3, 2020

@tridge We had some trouble with a CubeOrange with ADSB Carrier Board with lost parameter (default) on ArduPlane 4.0.4. After applying this PR on top of ArduPlane 4.0.4, the problems seems to be gone.

nexton-winjeel added a commit to Winjeel/ardupilot that referenced this pull request Mar 6, 2020
This adds equivalent functionality that was originally added in:
ArduPilot#13581
nexton-winjeel added a commit to Winjeel/ardupilot that referenced this pull request Mar 6, 2020
This adds equivalent functionality that was originally added in:
ArduPilot#13581
nexton-winjeel added a commit to Winjeel/ardupilot that referenced this pull request Mar 6, 2020
This adds functionality similar to what was originally added in:
ArduPilot#13581
@tridge
Copy link
Contributor Author

tridge commented Mar 11, 2020

this now incorporates many of the changes from @sypaq-nexton from #13621. It adds the retries and crc checks, as well as fixing fujitsu device support

nexton-winjeel and others added 4 commits March 11, 2020 15:34
- added retries on all operations
- detect errors with a CRC
- fixed detection of fujitsu devices
this saves on flash and prevents confusing results when fram fails
@nexton-winjeel
Copy link
Contributor

@tridge: I've confirmed this works on our custom hardware with a Fujitsu FRAM chip (MB85RS128TY).

@tridge tridge merged commit 5a4b648 into ArduPilot:master Mar 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants