From c27b9f3b1e0ff70fe1b8ea2550a2db7af80df722 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Fri, 27 May 2022 15:43:19 -0400 Subject: [PATCH] boards: reduce SPI DMA buffers on older STM32F4 boards - on common IMUs like the mpu6000, mpu9250, icm20602, etc each FIFO sample is only 12 bytes so this is still more than large enough for the worst case transfer --- boards/airmind/mindpx-v2/nuttx-config/nsh/defconfig | 2 +- boards/diatone/mamba-f405-mk2/nuttx-config/nsh/defconfig | 2 +- boards/mro/x21/nuttx-config/nsh/defconfig | 2 +- boards/omnibus/f4sd/nuttx-config/nsh/defconfig | 2 +- boards/px4/fmu-v2/nuttx-config/nsh/defconfig | 4 ++-- boards/px4/fmu-v3/nuttx-config/nsh/defconfig | 4 ++-- boards/px4/fmu-v4/nuttx-config/nsh/defconfig | 2 +- boards/px4/fmu-v4pro/nuttx-config/nsh/defconfig | 2 +- boards/uvify/core/nuttx-config/nsh/defconfig | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/boards/airmind/mindpx-v2/nuttx-config/nsh/defconfig b/boards/airmind/mindpx-v2/nuttx-config/nsh/defconfig index 4802f6fe06..723780630c 100644 --- a/boards/airmind/mindpx-v2/nuttx-config/nsh/defconfig +++ b/boards/airmind/mindpx-v2/nuttx-config/nsh/defconfig @@ -174,7 +174,7 @@ CONFIG_STM32_SPI1=y CONFIG_STM32_SPI2=y CONFIG_STM32_SPI4=y CONFIG_STM32_SPI4_DMA=y -CONFIG_STM32_SPI4_DMA_BUFFER=1024 +CONFIG_STM32_SPI4_DMA_BUFFER=512 CONFIG_STM32_SPI_DMA=y CONFIG_STM32_SPI_DMATHRESHOLD=8 CONFIG_STM32_TIM10=y diff --git a/boards/diatone/mamba-f405-mk2/nuttx-config/nsh/defconfig b/boards/diatone/mamba-f405-mk2/nuttx-config/nsh/defconfig index 44dcb67cb9..f8c456d7a5 100644 --- a/boards/diatone/mamba-f405-mk2/nuttx-config/nsh/defconfig +++ b/boards/diatone/mamba-f405-mk2/nuttx-config/nsh/defconfig @@ -158,7 +158,7 @@ CONFIG_STM32_SERIALBRK_BSDCOMPAT=y CONFIG_STM32_SERIAL_DISABLE_REORDERING=y CONFIG_STM32_SPI1=y CONFIG_STM32_SPI1_DMA=y -CONFIG_STM32_SPI1_DMA_BUFFER=1024 +CONFIG_STM32_SPI1_DMA_BUFFER=512 CONFIG_STM32_SPI2=y CONFIG_STM32_SPI2_DMA=y CONFIG_STM32_SPI3=y diff --git a/boards/mro/x21/nuttx-config/nsh/defconfig b/boards/mro/x21/nuttx-config/nsh/defconfig index e09d3dbb50..b261c0d930 100644 --- a/boards/mro/x21/nuttx-config/nsh/defconfig +++ b/boards/mro/x21/nuttx-config/nsh/defconfig @@ -172,7 +172,7 @@ CONFIG_STM32_SERIALBRK_BSDCOMPAT=y CONFIG_STM32_SERIAL_DISABLE_REORDERING=y CONFIG_STM32_SPI1=y CONFIG_STM32_SPI1_DMA=y -CONFIG_STM32_SPI1_DMA_BUFFER=1024 +CONFIG_STM32_SPI1_DMA_BUFFER=512 CONFIG_STM32_SPI2=y CONFIG_STM32_SPI_DMA=y CONFIG_STM32_SPI_DMATHRESHOLD=8 diff --git a/boards/omnibus/f4sd/nuttx-config/nsh/defconfig b/boards/omnibus/f4sd/nuttx-config/nsh/defconfig index 2b87fb28bf..f1d8ea87cc 100644 --- a/boards/omnibus/f4sd/nuttx-config/nsh/defconfig +++ b/boards/omnibus/f4sd/nuttx-config/nsh/defconfig @@ -153,7 +153,7 @@ CONFIG_STM32_SERIALBRK_BSDCOMPAT=y CONFIG_STM32_SERIAL_DISABLE_REORDERING=y CONFIG_STM32_SPI1=y CONFIG_STM32_SPI1_DMA=y -CONFIG_STM32_SPI1_DMA_BUFFER=1024 +CONFIG_STM32_SPI1_DMA_BUFFER=512 CONFIG_STM32_SPI2=y CONFIG_STM32_SPI2_DMA=y CONFIG_STM32_SPI3=y diff --git a/boards/px4/fmu-v2/nuttx-config/nsh/defconfig b/boards/px4/fmu-v2/nuttx-config/nsh/defconfig index b3144a3820..4ef948f6ed 100644 --- a/boards/px4/fmu-v2/nuttx-config/nsh/defconfig +++ b/boards/px4/fmu-v2/nuttx-config/nsh/defconfig @@ -175,11 +175,11 @@ CONFIG_STM32_SERIALBRK_BSDCOMPAT=y CONFIG_STM32_SERIAL_DISABLE_REORDERING=y CONFIG_STM32_SPI1=y CONFIG_STM32_SPI1_DMA=y -CONFIG_STM32_SPI1_DMA_BUFFER=1024 +CONFIG_STM32_SPI1_DMA_BUFFER=512 CONFIG_STM32_SPI2=y CONFIG_STM32_SPI4=y CONFIG_STM32_SPI4_DMA=y -CONFIG_STM32_SPI4_DMA_BUFFER=1024 +CONFIG_STM32_SPI4_DMA_BUFFER=512 CONFIG_STM32_SPI_DMA=y CONFIG_STM32_SPI_DMATHRESHOLD=32 CONFIG_STM32_TIM10=y diff --git a/boards/px4/fmu-v3/nuttx-config/nsh/defconfig b/boards/px4/fmu-v3/nuttx-config/nsh/defconfig index fb85646a8d..c6b23b89cd 100644 --- a/boards/px4/fmu-v3/nuttx-config/nsh/defconfig +++ b/boards/px4/fmu-v3/nuttx-config/nsh/defconfig @@ -172,11 +172,11 @@ CONFIG_STM32_SERIALBRK_BSDCOMPAT=y CONFIG_STM32_SERIAL_DISABLE_REORDERING=y CONFIG_STM32_SPI1=y CONFIG_STM32_SPI1_DMA=y -CONFIG_STM32_SPI1_DMA_BUFFER=1024 +CONFIG_STM32_SPI1_DMA_BUFFER=512 CONFIG_STM32_SPI2=y CONFIG_STM32_SPI4=y CONFIG_STM32_SPI4_DMA=y -CONFIG_STM32_SPI4_DMA_BUFFER=1024 +CONFIG_STM32_SPI4_DMA_BUFFER=512 CONFIG_STM32_SPI_DMA=y CONFIG_STM32_SPI_DMATHRESHOLD=32 CONFIG_STM32_TIM10=y diff --git a/boards/px4/fmu-v4/nuttx-config/nsh/defconfig b/boards/px4/fmu-v4/nuttx-config/nsh/defconfig index 83df59eb0d..2068eb68ce 100644 --- a/boards/px4/fmu-v4/nuttx-config/nsh/defconfig +++ b/boards/px4/fmu-v4/nuttx-config/nsh/defconfig @@ -171,7 +171,7 @@ CONFIG_STM32_SERIALBRK_BSDCOMPAT=y CONFIG_STM32_SERIAL_DISABLE_REORDERING=y CONFIG_STM32_SPI1=y CONFIG_STM32_SPI1_DMA=y -CONFIG_STM32_SPI1_DMA_BUFFER=1024 +CONFIG_STM32_SPI1_DMA_BUFFER=512 CONFIG_STM32_SPI2=y CONFIG_STM32_SPI4=y CONFIG_STM32_SPI_DMA=y diff --git a/boards/px4/fmu-v4pro/nuttx-config/nsh/defconfig b/boards/px4/fmu-v4pro/nuttx-config/nsh/defconfig index 05ee2ec9bb..b5c01d193f 100644 --- a/boards/px4/fmu-v4pro/nuttx-config/nsh/defconfig +++ b/boards/px4/fmu-v4pro/nuttx-config/nsh/defconfig @@ -177,7 +177,7 @@ CONFIG_STM32_SERIALBRK_BSDCOMPAT=y CONFIG_STM32_SERIAL_DISABLE_REORDERING=y CONFIG_STM32_SPI1=y CONFIG_STM32_SPI1_DMA=y -CONFIG_STM32_SPI1_DMA_BUFFER=1024 +CONFIG_STM32_SPI1_DMA_BUFFER=512 CONFIG_STM32_SPI2=y CONFIG_STM32_SPI5=y CONFIG_STM32_SPI6=y diff --git a/boards/uvify/core/nuttx-config/nsh/defconfig b/boards/uvify/core/nuttx-config/nsh/defconfig index dc6761f43c..161d0ec464 100644 --- a/boards/uvify/core/nuttx-config/nsh/defconfig +++ b/boards/uvify/core/nuttx-config/nsh/defconfig @@ -171,7 +171,7 @@ CONFIG_STM32_SERIALBRK_BSDCOMPAT=y CONFIG_STM32_SERIAL_DISABLE_REORDERING=y CONFIG_STM32_SPI1=y CONFIG_STM32_SPI1_DMA=y -CONFIG_STM32_SPI1_DMA_BUFFER=1024 +CONFIG_STM32_SPI1_DMA_BUFFER=512 CONFIG_STM32_SPI2=y CONFIG_STM32_SPI_DMA=y CONFIG_STM32_SPI_DMATHRESHOLD=8