From 5e1aef53617a34093b4ed3651da46ec51780be2e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 5 Feb 2021 18:18:56 +1100 Subject: [PATCH] HAL_ChibiOS: expand storage to 32k on boards with 32k FRAM --- libraries/AP_HAL_ChibiOS/hwdef/CUAV-Nora/hwdef.dat | 2 +- libraries/AP_HAL_ChibiOS/hwdef/CUAV-X7/hwdef.dat | 2 +- libraries/AP_HAL_ChibiOS/hwdef/CubeOrange/hwdef.dat | 2 +- libraries/AP_HAL_ChibiOS/hwdef/Durandal/hwdef.dat | 2 +- libraries/AP_HAL_ChibiOS/hwdef/mRoControlZeroF7/hwdef.dat | 2 +- libraries/AP_HAL_ChibiOS/hwdef/mRoNexus/hwdef.dat | 2 +- libraries/AP_HAL_ChibiOS/hwdef/mRoPixracerPro/hwdef.dat | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CUAV-Nora/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CUAV-Nora/hwdef.dat index 80bdd2a14c..4acaf187fb 100755 --- a/libraries/AP_HAL_ChibiOS/hwdef/CUAV-Nora/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CUAV-Nora/hwdef.dat @@ -274,7 +274,7 @@ define HAL_GPIO_LED_OFF 1 define HAL_HAVE_PIXRACER_LED # 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/CUAV-X7/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CUAV-X7/hwdef.dat index 003cdf5986..7d61eacb6f 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CUAV-X7/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CUAV-X7/hwdef.dat @@ -285,7 +285,7 @@ define HAL_GPIO_LED_OFF 1 define HAL_HAVE_PIXRACER_LED # 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/CubeOrange/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange/hwdef.dat index b2d6e72adf..44d48830d3 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CubeOrange/hwdef.dat @@ -23,7 +23,7 @@ env OPTIMIZE -O2 FLASH_RESERVE_START_KB 128 -define HAL_STORAGE_SIZE 16384 +define HAL_STORAGE_SIZE 32768 # order of I2C buses I2C_ORDER I2C2 I2C1 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Durandal/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Durandal/hwdef.dat index ae9d50dfd7..be0e23963a 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/Durandal/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/Durandal/hwdef.dat @@ -31,7 +31,7 @@ SERIAL_ORDER OTG1 USART2 USART3 USART1 UART4 USART6 UART7 OTG2 # default the 2nd interface to MAVLink2 until MissionPlanner updates drivers define HAL_OTG2_PROTOCOL SerialProtocol_MAVLink2 -define HAL_STORAGE_SIZE 16384 +define HAL_STORAGE_SIZE 32768 define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_CHIBIOS_FMUV5 define HAL_CHIBIOS_ARCH_FMUV5 1 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/mRoControlZeroF7/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/mRoControlZeroF7/hwdef.dat index 3440a6bcac..6268dec4fa 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/mRoControlZeroF7/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/mRoControlZeroF7/hwdef.dat @@ -27,7 +27,7 @@ define STORAGE_FLASH_PAGE 1 # ChibiOS system timer STM32_ST_USE_TIMER 5 -define HAL_STORAGE_SIZE 16384 +define HAL_STORAGE_SIZE 32768 # USB setup USB_STRING_MANUFACTURER "mRo" diff --git a/libraries/AP_HAL_ChibiOS/hwdef/mRoNexus/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/mRoNexus/hwdef.dat index d3a62b4590..f92b6f217f 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/mRoNexus/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/mRoNexus/hwdef.dat @@ -23,7 +23,7 @@ env OPTIMIZE -O2 FLASH_RESERVE_START_KB 128 # use FRAM for storage -define HAL_STORAGE_SIZE 16384 +define HAL_STORAGE_SIZE 32768 define HAL_WITH_RAMTRON 1 # USB setup diff --git a/libraries/AP_HAL_ChibiOS/hwdef/mRoPixracerPro/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/mRoPixracerPro/hwdef.dat index 96956346c1..deea05526c 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/mRoPixracerPro/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/mRoPixracerPro/hwdef.dat @@ -28,7 +28,7 @@ env OPTIMIZE -O2 FLASH_RESERVE_START_KB 128 # use FRAM for storage -define HAL_STORAGE_SIZE 16384 +define HAL_STORAGE_SIZE 32768 define HAL_WITH_RAMTRON 1 # USB setup