Michael Oborne
4e9848ab3a
HAL_ChibiOS: fix sdcard param init
...
the write was failing because of a 0 byte write attempt, the response was -1 vs 0
this results in not using the sdcard backend for storage for all boots after the initial
4 years ago
Siddharth Purohit
d25908a1c9
AP_HAL_ChibiOS: keep a backup of storage for last 100 boots
5 years ago
Andrew Tridgell
e126b6d346
HAL_ChibiOS: fixed race condition in storage write
...
we could mark a line as clean when it should be dirty if we lose a
race condition between storage thread and writer
5 years ago
Andrew Tridgell
8dabd6cefc
HAL_ChibiOS: expect a long delay on flash page erase
...
this prevents the display of errors on flash page erase
5 years ago
murata
124d8c7fdf
AP_HAL_ChibiOS: Changing the timeout detection
5 years ago
Nick Exton
4cd39a4619
HAL_ChibiOS: improved selection of storage backend
5 years ago
Andrew Tridgell
27c114828b
HAL_ChibiOS: fixed bitmask error on storage erase
5 years ago
Andrew Tridgell
8fdbb88827
HAL_ChibiOS: implement erase() method on Storage in HAL_ChibiOS
5 years ago
Mirko Denecke
b84dcd483d
AP_HAL_ChibiOS: remove unnecessary tabs and whitespaces
5 years ago
Andrew Tridgell
b867ef35c0
HAL_ChibiOS: use AP_Filesystem API
6 years ago
Andrew Tridgell
7c726b2f42
HAL_ChibiOS: use hal.flash API
6 years ago
Andrew Tridgell
edd793c152
HAL_ChibiOS: fixed fallback to microSD for storage
...
this is used when FRAM fails on a board with microSD support. The
double init caused the validate() in the FATFS code to fail
6 years ago
Andrew Tridgell
f7b6f9d70b
HAL_ChibiOS: added retries to flash based storage
...
this prevents a single flash write error from causing parameter reset
6 years ago
Andrew Tridgell
5201fdf653
HAL_ChibiOS: adjust for changed flash API
6 years ago
Andrew Tridgell
1f2c24ef7b
HAL_ChibiOS: backup storage to microSD if possible
...
very useful for diagnostics.
This also fixes a bug on boards with flash storage, to not switch to
microSD storage if flash storage available
7 years ago
Andrew Tridgell
fff4b3b4a0
HAL_ChibiOS: fixed build on some F4 boards
7 years ago
Andrew Tridgell
63a9b903ba
HAL_ChibiOS: added fallback to microSD for param storage
...
useful for boards without flash sectors setup in bootloader for
storage, but can use microSD
7 years ago
Andrew Tridgell
b961e12456
HAL_ChibiOS: support having no flash storage option
7 years ago
Andrew Tridgell
306d35655e
HAL_ChibiOS: allow for bare board builds
...
this allows for a build with no UARTs, no SPI, no I2C, no PWM. Great
for initial board bringup with just USB
7 years ago
Andrew Tridgell
f14a847b97
HAL_ChibiOS: rename classes to remove 'Chibi'
...
it is redundent as all classes are in ChibiOS namespace, and makes the
code harder to read
7 years ago
Andrew Tridgell
8b6bab7b17
HAL_Chibios: added ChibiOS HAL
...
this is based on initial work by Sid, reset here for easier merging
7 years ago