From cf22caa7ef617bd45322e155cec1695fe40ca8ed Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 30 Nov 2020 10:16:05 +1100 Subject: [PATCH] HAL_ChibiOS: raise stack limits in f303 peripherals --- libraries/AP_HAL_ChibiOS/hwdef/f103-periph/hwdef.dat | 4 ++-- libraries/AP_HAL_ChibiOS/hwdef/f303-MatekGPS/hwdef.dat | 10 +++++----- libraries/AP_HAL_ChibiOS/hwdef/f303-periph/hwdef.dat | 10 +++++----- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/f103-periph/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/f103-periph/hwdef.dat index 49c0e02c87..b1255fce97 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/f103-periph/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/f103-periph/hwdef.dat @@ -105,8 +105,8 @@ define HAL_UART_MIN_TX_SIZE 128 define HAL_UART_MIN_RX_SIZE 128 define HAL_UART_STACK_SIZE 256 -define STORAGE_THD_WA_SIZE 256 -define IO_THD_WA_SIZE 256 +define STORAGE_THD_WA_SIZE 300 +define IO_THD_WA_SIZE 300 define HAL_NO_GCS define HAL_NO_LOGGING diff --git a/libraries/AP_HAL_ChibiOS/hwdef/f303-MatekGPS/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/f303-MatekGPS/hwdef.dat index 3760fb153d..2f3b8e9f39 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/f303-MatekGPS/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/f303-MatekGPS/hwdef.dat @@ -58,7 +58,7 @@ define DMA_RESERVE_SIZE 0 define PERIPH_FW TRUE # MAIN_STACK is stack of initial thread -MAIN_STACK 0x200 +MAIN_STACK 0x300 # PROCESS_STACK controls stack for main thread PROCESS_STACK 0x800 @@ -76,10 +76,10 @@ define STM32_I2C_USE_I2C1 TRUE define HAL_UART_MIN_TX_SIZE 256 define HAL_UART_MIN_RX_SIZE 128 -define HAL_UART_STACK_SIZE 256 +define HAL_UART_STACK_SIZE 512 -define STORAGE_THD_WA_SIZE 256 -define IO_THD_WA_SIZE 256 +define STORAGE_THD_WA_SIZE 512 +define IO_THD_WA_SIZE 512 define HAL_NO_GCS define HAL_NO_LOGGING @@ -94,7 +94,7 @@ I2C_ORDER I2C1 define HAL_I2C_CLEAR_ON_TIMEOUT 0 -define HAL_DEVICE_THREAD_STACK 256 +define HAL_DEVICE_THREAD_STACK 512 define AP_PARAM_MAX_EMBEDDED_PARAM 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/f303-periph/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/f303-periph/hwdef.dat index 9746ff2257..444b52fdf9 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/f303-periph/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/f303-periph/hwdef.dat @@ -78,7 +78,7 @@ define DMA_RESERVE_SIZE 0 define PERIPH_FW TRUE # MAIN_STACK is stack of initial thread and of ISRs -MAIN_STACK 0x200 +MAIN_STACK 0x300 # PROCESS_STACK controls stack for main thread PROCESS_STACK 0x800 @@ -100,10 +100,10 @@ define STM32_I2C_USE_I2C1 TRUE define HAL_UART_MIN_TX_SIZE 256 define HAL_UART_MIN_RX_SIZE 128 -define HAL_UART_STACK_SIZE 256 +define HAL_UART_STACK_SIZE 0x300 -define STORAGE_THD_WA_SIZE 256 -define IO_THD_WA_SIZE 256 +define STORAGE_THD_WA_SIZE 512 +define IO_THD_WA_SIZE 512 define HAL_NO_GCS define HAL_NO_LOGGING @@ -118,7 +118,7 @@ I2C_ORDER I2C1 define HAL_I2C_CLEAR_ON_TIMEOUT 0 -define HAL_DEVICE_THREAD_STACK 256 +define HAL_DEVICE_THREAD_STACK 0x200 define AP_PARAM_MAX_EMBEDDED_PARAM 0