You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/06/06 15:05:39 UTC

[incubator-nuttx] branch master updated (ddf2704 -> a254023)

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git.


    from ddf2704  stm32h7:Kconfig limit STM32H7_SPIn_COMMTYPE range to valid values
     new b191714  stm32h7 boards:Emit the the D3 power domain section for locating BDMA data
     new a254023  stm32h7:SPI Locate SPI6 DMA buffers in sram4

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 arch/arm/src/stm32h7/stm32_spi.c                            | 8 +++++---
 boards/arm/stm32h7/nucleo-h743zi/scripts/flash.ld           | 6 ++++++
 boards/arm/stm32h7/nucleo-h743zi/scripts/kernel.space.ld    | 6 ++++++
 boards/arm/stm32h7/stm32h747i-disco/scripts/flash.ld        | 6 ++++++
 boards/arm/stm32h7/stm32h747i-disco/scripts/kernel.space.ld | 7 +++++++
 5 files changed, 30 insertions(+), 3 deletions(-)


[incubator-nuttx] 02/02: stm32h7:SPI Locate SPI6 DMA buffers in sram4

Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit a254023e74cbfa0ff97bb836497f93835a22ffbf
Author: David Sidrane <Da...@NscDg.com>
AuthorDate: Fri Jun 5 12:03:26 2020 -0700

    stm32h7:SPI Locate SPI6 DMA buffers in sram4
---
 arch/arm/src/stm32h7/stm32_spi.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/arch/arm/src/stm32h7/stm32_spi.c b/arch/arm/src/stm32h7/stm32_spi.c
index b7ae80a..268f220 100644
--- a/arch/arm/src/stm32h7/stm32_spi.c
+++ b/arch/arm/src/stm32h7/stm32_spi.c
@@ -57,6 +57,7 @@
 
 #include <nuttx/irq.h>
 #include <nuttx/arch.h>
+#include <nuttx/compiler.h>
 #include <nuttx/semaphore.h>
 #include <nuttx/spi/spi.h>
 #include <nuttx/power/pm.h>
@@ -709,10 +710,11 @@ static const struct spi_ops_s g_sp6iops =
 };
 
 #if defined(SPI6_DMABUFSIZE_ADJUSTED)
-static uint8_t g_spi6_txbuf[SPI6_DMABUFSIZE_ADJUSTED] SPI6_DMABUFSIZE_ALGN;
-static uint8_t g_spi6_rxbuf[SPI6_DMABUFSIZE_ADJUSTED] SPI6_DMABUFSIZE_ALGN;
+static uint8_t g_spi6_txbuf[SPI6_DMABUFSIZE_ADJUSTED] SPI6_DMABUFSIZE_ALGN
+                                                      locate_data(".sram4");
+static uint8_t g_spi6_rxbuf[SPI6_DMABUFSIZE_ADJUSTED] SPI6_DMABUFSIZE_ALGN
+                                                      locate_data(".sram4");
 #endif
-
 static struct stm32_spidev_s g_spi6dev =
 {
   .spidev   =


[incubator-nuttx] 01/02: stm32h7 boards:Emit the the D3 power domain section for locating BDMA data

Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit b19171420fab0757b203a8cd13bf31d2ae13766b
Author: David Sidrane <Da...@NscDg.com>
AuthorDate: Fri Jun 5 05:00:52 2020 -0700

    stm32h7 boards:Emit the the D3 power domain section for locating BDMA data
---
 boards/arm/stm32h7/nucleo-h743zi/scripts/flash.ld           | 6 ++++++
 boards/arm/stm32h7/nucleo-h743zi/scripts/kernel.space.ld    | 6 ++++++
 boards/arm/stm32h7/stm32h747i-disco/scripts/flash.ld        | 6 ++++++
 boards/arm/stm32h7/stm32h747i-disco/scripts/kernel.space.ld | 7 +++++++
 4 files changed, 25 insertions(+)

diff --git a/boards/arm/stm32h7/nucleo-h743zi/scripts/flash.ld b/boards/arm/stm32h7/nucleo-h743zi/scripts/flash.ld
index 937b4c5..bd4a053 100644
--- a/boards/arm/stm32h7/nucleo-h743zi/scripts/flash.ld
+++ b/boards/arm/stm32h7/nucleo-h743zi/scripts/flash.ld
@@ -185,6 +185,12 @@ SECTIONS
         _ebss = ABSOLUTE(.);
     } > sram
 
+    /* Emit the the D3 power domain section for locating BDMA data */
+
+    .sram4 :
+    {
+    } > sram4
+
     /* Stabs debugging sections. */
 
     .stab 0 : { *(.stab) }
diff --git a/boards/arm/stm32h7/nucleo-h743zi/scripts/kernel.space.ld b/boards/arm/stm32h7/nucleo-h743zi/scripts/kernel.space.ld
index 9068e59..b29dd54 100644
--- a/boards/arm/stm32h7/nucleo-h743zi/scripts/kernel.space.ld
+++ b/boards/arm/stm32h7/nucleo-h743zi/scripts/kernel.space.ld
@@ -94,6 +94,12 @@ SECTIONS
         _ebss = ABSOLUTE(.);
     } > ksram
 
+    /* Emit the the D3 power domain section for locating BDMA data */
+
+    .sram4 :
+    {
+    } > sram4
+
     /* Stabs debugging sections */
 
     .stab 0 : { *(.stab) }
diff --git a/boards/arm/stm32h7/stm32h747i-disco/scripts/flash.ld b/boards/arm/stm32h7/stm32h747i-disco/scripts/flash.ld
index c911636..062c446 100644
--- a/boards/arm/stm32h7/stm32h747i-disco/scripts/flash.ld
+++ b/boards/arm/stm32h7/stm32h747i-disco/scripts/flash.ld
@@ -183,6 +183,12 @@ SECTIONS
         _ebss = ABSOLUTE(.);
     } > sram
 
+    /* Emit the the D3 power domain section for locating BDMA data */
+
+    .sram4 :
+    {
+    } > sram4
+
     /* Stabs debugging sections. */
 
     .stab 0 : { *(.stab) }
diff --git a/boards/arm/stm32h7/stm32h747i-disco/scripts/kernel.space.ld b/boards/arm/stm32h7/stm32h747i-disco/scripts/kernel.space.ld
index 8e53c94..20ea359 100644
--- a/boards/arm/stm32h7/stm32h747i-disco/scripts/kernel.space.ld
+++ b/boards/arm/stm32h7/stm32h747i-disco/scripts/kernel.space.ld
@@ -94,6 +94,13 @@ SECTIONS
         _ebss = ABSOLUTE(.);
     } > ksram
 
+    /* Emit the the D3 power domain section for locating BDMA data */
+
+    .sram4 :
+    {
+    } > sram4
+
+
     /* Stabs debugging sections */
 
     .stab 0 : { *(.stab) }