Andrew Tridgell
8792adb6f0
AP_FlashStorage: implement erase() method
5 years ago
Peter Barker
076768e550
AP_FlashStorage: use https:// scheme for ardupilot URLs
5 years ago
Peter Barker
f5635a557a
AP_FlashStorage: correct format-string warnings
5 years ago
Andrew Tridgell
53fe84e88a
AP_FlashStorage: fix for F3 MCUs
5 years ago
Andrew Tridgell
40431100a9
AP_Flashstorage: fixed init bug on F1
...
we can't mark available just before we mark in use on F1
5 years ago
Andrew Tridgell
01472aa795
AP_FlashStorage: added support for STM32F1xx
6 years ago
Andrew Tridgell
d2c9db3f1f
AP_FlashStorage: fixed build error with -O0
6 years ago
Andrew Tridgell
6e1e89bb70
AP_FlashStorage: fixed a corruption bug
...
many thanks to @sh83 for tracking down this bug. When write_all() is
called with non-zero offset in init it ends up calling write with an
invalid offset, triggering a full reset
This fixes issue #10874
6 years ago
Andrew Tridgell
91e5f56242
AP_FlashStorage: fixed a race condition
...
fixes #7670
thanks to night-ghost for the bug report
6 years ago
Peter Barker
2ed8118cda
AP_FlashStorage: adjust example so it does not exit
6 years ago
Andrew Tridgell
985a319c42
AP_FlashStorage: fixed build of example on small memory boards
7 years ago
Andrew Tridgell
14cf54b2f0
AP_FlashStorage: fixed build warning
7 years ago
Andrew Tridgell
1513246040
AP_FlashStorage: fixed two bugs found by night-ghost
...
this fixes two issues found by night-ghost. The first occurs if a 16
bit flash write is not atomic and only the first byte is written. Then
we could end up declaring the data invalid on reboot and erasing.
The second is a race in switching sectors. If power off occurs at the
wrong time we would trigger en erase on reboot.
7 years ago
Andrew Tridgell
3b5f66fd9f
AP_FlashStorage: fixed size of flash storage
7 years ago
Andrew Tridgell
0bfbc4bf72
AP_FlashStorage: added re_initialise() API
7 years ago
Andrew Tridgell
bfd137e36a
AP_FlashStorage: added erase_ok callback
...
this allows for simpler operation when application wants to allow
erase while disarmed.
8 years ago
Andrew Tridgell
0e00c3cf9b
AP_FlashStorage: reduced sector size for example
...
allows it to fit in SRAM on PX4
8 years ago
Andrew Tridgell
fc21e0f16f
AP_FlashStorage: a flash storage driver
...
this will allow for a storage backend using flash sectors in a log
structure
8 years ago