From bbd32844d1dfe7a8347bae1285fce542754ea2b3 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 17 Mar 2021 16:55:45 +1100 Subject: [PATCH] HAL_ChibiOS: switch more boards to 32k FRAM this enables the parameter backup/restore on those boards, as well as more waypoints This is in response to a report that CUAVv5 boards can suffer from the parameter reset issue --- libraries/AP_HAL_ChibiOS/hwdef/CubeYellow/hwdef.dat | 2 +- libraries/AP_HAL_ChibiOS/hwdef/fmuv5/hwdef.dat | 2 +- libraries/AP_HAL_ChibiOS/hwdef/mRoControlZeroClassic/hwdef.dat | 2 +- libraries/AP_HAL_ChibiOS/hwdef/mRoControlZeroF7/hwdef.dat | 2 +- libraries/AP_HAL_ChibiOS/hwdef/mRoControlZeroOEMH7/hwdef.dat | 2 +- libraries/AP_HAL_ChibiOS/hwdef/mRoX21-777/hwdef.dat | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CubeYellow/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CubeYellow/hwdef.dat index 620979816e..bd4d7923cb 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CubeYellow/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CubeYellow/hwdef.dat @@ -429,7 +429,7 @@ define HAL_BOARD_TERRAIN_DIRECTORY "/APM/TERRAIN" # we need to tell HAL_ChibiOS/Storage.cpp how much storage is # available (in bytes) -define HAL_STORAGE_SIZE 16384 +define HAL_STORAGE_SIZE 32768 # allow to have have a dedicated safety switch pin define HAL_HAVE_SAFETY_SWITCH 1 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/fmuv5/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/fmuv5/hwdef.dat index a19d1fbae0..1f78818b79 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/fmuv5/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/fmuv5/hwdef.dat @@ -290,7 +290,7 @@ define HAL_GPIO_LED_ON 0 # enable RAMTROM parameter storage -define HAL_STORAGE_SIZE 16384 +define HAL_STORAGE_SIZE 32768 define HAL_WITH_RAMTRON 1 # allow to have have a dedicated safety switch pin diff --git a/libraries/AP_HAL_ChibiOS/hwdef/mRoControlZeroClassic/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/mRoControlZeroClassic/hwdef.dat index 21182fd9e7..d58e186ac8 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/mRoControlZeroClassic/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/mRoControlZeroClassic/hwdef.dat @@ -33,7 +33,7 @@ env OPTIMIZE -O2 FLASH_RESERVE_START_KB 128 # use FRAM for storage -define HAL_STORAGE_SIZE 16384 +define HAL_STORAGE_SIZE 32768 # Enable RAMTROM parameter storage. define HAL_WITH_RAMTRON 1 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/mRoControlZeroF7/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/mRoControlZeroF7/hwdef.dat index e04828eb24..cabbf3eb17 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/mRoControlZeroF7/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/mRoControlZeroF7/hwdef.dat @@ -39,7 +39,7 @@ env OPTIMIZE -O2 FLASH_RESERVE_START_KB 96 # use FRAM for storage -define HAL_STORAGE_SIZE 16384 +define HAL_STORAGE_SIZE 32768 define HAL_WITH_RAMTRON 1 # fallback storage in case FRAM is not populated diff --git a/libraries/AP_HAL_ChibiOS/hwdef/mRoControlZeroOEMH7/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/mRoControlZeroOEMH7/hwdef.dat index 6bc0702e71..d051aba85f 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/mRoControlZeroOEMH7/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/mRoControlZeroOEMH7/hwdef.dat @@ -32,7 +32,7 @@ env OPTIMIZE -O2 # start on 2th sector (1st sector for bootloader) FLASH_RESERVE_START_KB 128 -define HAL_STORAGE_SIZE 16384 +define HAL_STORAGE_SIZE 32768 # USB setup USB_STRING_MANUFACTURER "mRo" diff --git a/libraries/AP_HAL_ChibiOS/hwdef/mRoX21-777/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/mRoX21-777/hwdef.dat index a8030b4b69..680d054a50 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/mRoX21-777/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/mRoX21-777/hwdef.dat @@ -392,7 +392,7 @@ define HAL_BOARD_TERRAIN_DIRECTORY "/APM/TERRAIN" # we need to tell HAL_ChibiOS/Storage.cpp how much storage is # available (in bytes) -define HAL_STORAGE_SIZE 16384 +define HAL_STORAGE_SIZE 32768 # allow to have have a dedicated safety switch pin define HAL_HAVE_SAFETY_SWITCH 1