[PATCH] bsps/stm32h7: add stm32h747i-disco-m4 BSP variant

Karel Gardas karel at functional.vision
Wed Jun 1 19:14:39 UTC 2022


This patch adds stm32h747i-disco-m4 BSP variant and puts it in sync
with the stm32h747i-disco BSP variant hardware support. That means,
only USART 1, 2 and UART 8 are enabled. Also SDRAM 2 is set to 32MB,
SDRAM 1 size is set to 0.

Sponsored-By:	Precidata
---
 spec/build/bsps/arm/stm32h7/abi.yml           |  1 +
 .../arm/stm32h7/bspstm32h747i-disco-m4.yml    | 24 +++++++++++++++++++
 spec/build/bsps/arm/stm32h7/optbootcore.yml   |  1 +
 spec/build/bsps/arm/stm32h7/optenuart4.yml    |  1 +
 spec/build/bsps/arm/stm32h7/optenuart5.yml    |  1 +
 spec/build/bsps/arm/stm32h7/optenuart7.yml    |  1 +
 spec/build/bsps/arm/stm32h7/optenuart9.yml    |  1 +
 spec/build/bsps/arm/stm32h7/optenusart10.yml  |  1 +
 spec/build/bsps/arm/stm32h7/optenusart3.yml   |  1 +
 spec/build/bsps/arm/stm32h7/optenusart6.yml   |  1 +
 spec/build/bsps/arm/stm32h7/optlinkcmds.yml   |  1 +
 .../bsps/arm/stm32h7/optmemflashorigin.yml    |  1 +
 spec/build/bsps/arm/stm32h7/optmemflashsz.yml |  1 +
 .../build/bsps/arm/stm32h7/optmemsdram1sz.yml |  1 +
 .../build/bsps/arm/stm32h7/optmemsdram2sz.yml |  1 +
 spec/build/bsps/arm/stm32h7/optpwrsupply.yml  |  1 +
 .../arm/stm32h7/optusart1alternatefunc.yml    |  1 +
 .../bsps/arm/stm32h7/optusart1gpiopins.yml    |  1 +
 .../bsps/arm/stm32h7/optusart1gpioregs.yml    |  1 +
 spec/build/bsps/arm/stm32h7/optvariant.yml    |  1 +
 20 files changed, 43 insertions(+)
 create mode 100644 spec/build/bsps/arm/stm32h7/bspstm32h747i-disco-m4.yml

diff --git a/spec/build/bsps/arm/stm32h7/abi.yml b/spec/build/bsps/arm/stm32h7/abi.yml
index dd751cb72e..38cb179707 100644
--- a/spec/build/bsps/arm/stm32h7/abi.yml
+++ b/spec/build/bsps/arm/stm32h7/abi.yml
@@ -16,6 +16,7 @@ default-by-variant:
   - -mfloat-abi=hard
   variants:
   - arm/stm32h757i-eval-m4
+  - arm/stm32h747i-disco-m4
 enabled-by: true
 links: []
 name: ABI_FLAGS
diff --git a/spec/build/bsps/arm/stm32h7/bspstm32h747i-disco-m4.yml b/spec/build/bsps/arm/stm32h7/bspstm32h747i-disco-m4.yml
new file mode 100644
index 0000000000..6356ccf942
--- /dev/null
+++ b/spec/build/bsps/arm/stm32h7/bspstm32h747i-disco-m4.yml
@@ -0,0 +1,24 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+arch: arm
+bsp: stm32h747i-disco-m4
+build-type: bsp
+cflags: []
+copyrights:
+- Copyright (C) 2022 Karel Gardas <karel at functional.vision>
+cppflags: []
+enabled-by: true
+family: stm32h7
+includes: []
+install: []
+links:
+- role: build-dependency
+  uid: grp
+- role: build-dependency
+  uid: tststm32h757i-eval
+source:
+- bsps/arm/stm32h7/boards/stm/stm32h747i-disco/stm32h7-config-clk.c
+- bsps/arm/stm32h7/boards/stm/stm32h747i-disco/stm32h7-config-osc.c
+- bsps/arm/stm32h7/boards/stm/stm32h747i-disco/stm32h7-config-per.c
+- bsps/arm/stm32h7/boards/stm/stm32h747i-disco/system_stm32h7xx.c
+- bsps/shared/cache/nocache.c
+type: build
diff --git a/spec/build/bsps/arm/stm32h7/optbootcore.yml b/spec/build/bsps/arm/stm32h7/optbootcore.yml
index 6d1a500ede..2a0c5504f8 100644
--- a/spec/build/bsps/arm/stm32h7/optbootcore.yml
+++ b/spec/build/bsps/arm/stm32h7/optbootcore.yml
@@ -15,6 +15,7 @@ default-by-variant:
 - value: CORE_CM4
   variants:
   - arm/stm32h757i-eval-m4
+  - arm/stm32h747i-disco-m4
 enabled-by: true
 format: '{}'
 links: []
diff --git a/spec/build/bsps/arm/stm32h7/optenuart4.yml b/spec/build/bsps/arm/stm32h7/optenuart4.yml
index d165f4144e..11cdb1088c 100644
--- a/spec/build/bsps/arm/stm32h7/optenuart4.yml
+++ b/spec/build/bsps/arm/stm32h7/optenuart4.yml
@@ -9,6 +9,7 @@ default-by-variant:
   - arm/stm32h757i-eval
   - arm/stm32h757i-eval-m4
   - arm/stm32h747i-disco
+  - arm/stm32h747i-disco-m4
 enabled-by: true
 format: '{}'
 links: []
diff --git a/spec/build/bsps/arm/stm32h7/optenuart5.yml b/spec/build/bsps/arm/stm32h7/optenuart5.yml
index f691d9bbc4..722ebb2bdf 100644
--- a/spec/build/bsps/arm/stm32h7/optenuart5.yml
+++ b/spec/build/bsps/arm/stm32h7/optenuart5.yml
@@ -10,6 +10,7 @@ default-by-variant:
   - arm/stm32h757i-eval
   - arm/stm32h757i-eval-m4
   - arm/stm32h747i-disco
+  - arm/stm32h747i-disco-m4
 enabled-by: true
 format: '{}'
 links: []
diff --git a/spec/build/bsps/arm/stm32h7/optenuart7.yml b/spec/build/bsps/arm/stm32h7/optenuart7.yml
index dc160d31dc..c4cef258c0 100644
--- a/spec/build/bsps/arm/stm32h7/optenuart7.yml
+++ b/spec/build/bsps/arm/stm32h7/optenuart7.yml
@@ -10,6 +10,7 @@ default-by-variant:
   - arm/stm32h757i-eval
   - arm/stm32h757i-eval-m4
   - arm/stm32h747i-disco
+  - arm/stm32h747i-disco-m4
 enabled-by: true
 format: '{}'
 links: []
diff --git a/spec/build/bsps/arm/stm32h7/optenuart9.yml b/spec/build/bsps/arm/stm32h7/optenuart9.yml
index aec036bd22..009766e291 100644
--- a/spec/build/bsps/arm/stm32h7/optenuart9.yml
+++ b/spec/build/bsps/arm/stm32h7/optenuart9.yml
@@ -10,6 +10,7 @@ default-by-variant:
   - arm/stm32h757i-eval
   - arm/stm32h757i-eval-m4
   - arm/stm32h747i-disco
+  - arm/stm32h747i-disco-m4
 enabled-by: true
 format: '{}'
 links: []
diff --git a/spec/build/bsps/arm/stm32h7/optenusart10.yml b/spec/build/bsps/arm/stm32h7/optenusart10.yml
index ee4f5785d9..f8eb979c69 100644
--- a/spec/build/bsps/arm/stm32h7/optenusart10.yml
+++ b/spec/build/bsps/arm/stm32h7/optenusart10.yml
@@ -10,6 +10,7 @@ default-by-variant:
   - arm/stm32h757i-eval
   - arm/stm32h757i-eval-m4
   - arm/stm32h747i-disco
+  - arm/stm32h747i-disco-m4
 enabled-by: true
 format: '{}'
 links: []
diff --git a/spec/build/bsps/arm/stm32h7/optenusart3.yml b/spec/build/bsps/arm/stm32h7/optenusart3.yml
index af6cd5185f..1fe1c8af46 100644
--- a/spec/build/bsps/arm/stm32h7/optenusart3.yml
+++ b/spec/build/bsps/arm/stm32h7/optenusart3.yml
@@ -10,6 +10,7 @@ default-by-variant:
   - arm/stm32h757i-eval
   - arm/stm32h757i-eval-m4
   - arm/stm32h747i-disco
+  - arm/stm32h747i-disco-m4
 enabled-by: true
 format: '{}'
 links: []
diff --git a/spec/build/bsps/arm/stm32h7/optenusart6.yml b/spec/build/bsps/arm/stm32h7/optenusart6.yml
index fbf0b16e77..9092df3f03 100644
--- a/spec/build/bsps/arm/stm32h7/optenusart6.yml
+++ b/spec/build/bsps/arm/stm32h7/optenusart6.yml
@@ -10,6 +10,7 @@ default-by-variant:
   - arm/stm32h757i-eval
   - arm/stm32h757i-eval-m4
   - arm/stm32h747i-disco
+  - arm/stm32h747i-disco-m4
 enabled-by: true
 format: '{}'
 links: []
diff --git a/spec/build/bsps/arm/stm32h7/optlinkcmds.yml b/spec/build/bsps/arm/stm32h7/optlinkcmds.yml
index 5632a3416a..197b384d03 100644
--- a/spec/build/bsps/arm/stm32h7/optlinkcmds.yml
+++ b/spec/build/bsps/arm/stm32h7/optlinkcmds.yml
@@ -10,6 +10,7 @@ default-by-variant:
   - arm/stm32h757i-eval
   - arm/stm32h757i-eval-m4
   - arm/stm32h747i-disco
+  - arm/stm32h747i-disco-m4
 enabled-by: true
 format: '{}'
 links: []
diff --git a/spec/build/bsps/arm/stm32h7/optmemflashorigin.yml b/spec/build/bsps/arm/stm32h7/optmemflashorigin.yml
index f36a7da8b9..c276b6f6ce 100644
--- a/spec/build/bsps/arm/stm32h7/optmemflashorigin.yml
+++ b/spec/build/bsps/arm/stm32h7/optmemflashorigin.yml
@@ -7,6 +7,7 @@ default-by-variant:
 - value: 0x8100000
   variants:
   - arm/stm32h757i-eval-m4
+  - arm/stm32h747i-disco-m4
 enabled-by: true
 format: '{:#010x}'
 links: []
diff --git a/spec/build/bsps/arm/stm32h7/optmemflashsz.yml b/spec/build/bsps/arm/stm32h7/optmemflashsz.yml
index 5bb89abb33..c718b11697 100644
--- a/spec/build/bsps/arm/stm32h7/optmemflashsz.yml
+++ b/spec/build/bsps/arm/stm32h7/optmemflashsz.yml
@@ -8,6 +8,7 @@ default-by-variant:
 - value: 0x100000
   variants:
   - arm/stm32h757i-eval-m4
+  - arm/stm32h747i-disco-m4
 enabled-by: true
 format: '{:#010x}'
 links: []
diff --git a/spec/build/bsps/arm/stm32h7/optmemsdram1sz.yml b/spec/build/bsps/arm/stm32h7/optmemsdram1sz.yml
index 4a243b0261..ed5cf8737b 100644
--- a/spec/build/bsps/arm/stm32h7/optmemsdram1sz.yml
+++ b/spec/build/bsps/arm/stm32h7/optmemsdram1sz.yml
@@ -10,6 +10,7 @@ default-by-variant:
   - arm/stm32h757i-eval
   - arm/stm32h757i-eval-m4
   - arm/stm32h747i-disco
+  - arm/stm32h747i-disco-m4
 enabled-by: true
 format: '{:#010x}'
 links: []
diff --git a/spec/build/bsps/arm/stm32h7/optmemsdram2sz.yml b/spec/build/bsps/arm/stm32h7/optmemsdram2sz.yml
index 57ded49f23..10ba7db2fd 100644
--- a/spec/build/bsps/arm/stm32h7/optmemsdram2sz.yml
+++ b/spec/build/bsps/arm/stm32h7/optmemsdram2sz.yml
@@ -9,6 +9,7 @@ default-by-variant:
   - arm/stm32h757i-eval
   - arm/stm32h757i-eval-m4
   - arm/stm32h747i-disco
+  - arm/stm32h747i-disco-m4
 enabled-by: true
 format: '{:#010x}'
 links: []
diff --git a/spec/build/bsps/arm/stm32h7/optpwrsupply.yml b/spec/build/bsps/arm/stm32h7/optpwrsupply.yml
index 94b2403da7..effdbbffe0 100644
--- a/spec/build/bsps/arm/stm32h7/optpwrsupply.yml
+++ b/spec/build/bsps/arm/stm32h7/optpwrsupply.yml
@@ -10,6 +10,7 @@ default-by-variant:
   - arm/stm32h757i-eval
   - arm/stm32h757i-eval-m4
   - arm/stm32h747i-disco
+  - arm/stm32h747i-disco-m4
 enabled-by: true
 format: '{}'
 links: []
diff --git a/spec/build/bsps/arm/stm32h7/optusart1alternatefunc.yml b/spec/build/bsps/arm/stm32h7/optusart1alternatefunc.yml
index 61982d94ed..ef6ad31e6a 100644
--- a/spec/build/bsps/arm/stm32h7/optusart1alternatefunc.yml
+++ b/spec/build/bsps/arm/stm32h7/optusart1alternatefunc.yml
@@ -8,6 +8,7 @@ default-by-variant:
   variants:
   - arm/stm32h7b3i-dk
   - arm/stm32h747i-disco
+  - arm/stm32h747i-disco-m4
 enabled-by: true
 format: '{}'
 links: []
diff --git a/spec/build/bsps/arm/stm32h7/optusart1gpiopins.yml b/spec/build/bsps/arm/stm32h7/optusart1gpiopins.yml
index 5150dd2d04..f4e532683e 100644
--- a/spec/build/bsps/arm/stm32h7/optusart1gpiopins.yml
+++ b/spec/build/bsps/arm/stm32h7/optusart1gpiopins.yml
@@ -8,6 +8,7 @@ default-by-variant:
   variants:
   - arm/stm32h7b3i-dk
   - arm/stm32h747i-disco
+  - arm/stm32h747i-disco-m4
 enabled-by: true
 format: '{}'
 links: []
diff --git a/spec/build/bsps/arm/stm32h7/optusart1gpioregs.yml b/spec/build/bsps/arm/stm32h7/optusart1gpioregs.yml
index d91fe73d37..974327c524 100644
--- a/spec/build/bsps/arm/stm32h7/optusart1gpioregs.yml
+++ b/spec/build/bsps/arm/stm32h7/optusart1gpioregs.yml
@@ -8,6 +8,7 @@ default-by-variant:
   variants:
   - arm/stm32h7b3i-dk
   - arm/stm32h747i-disco
+  - arm/stm32h747i-disco-m4
 - value: GPIOB
   variants:
   - arm/stm32h757i-eval
diff --git a/spec/build/bsps/arm/stm32h7/optvariant.yml b/spec/build/bsps/arm/stm32h7/optvariant.yml
index b7ce814e52..720a40c63d 100644
--- a/spec/build/bsps/arm/stm32h7/optvariant.yml
+++ b/spec/build/bsps/arm/stm32h7/optvariant.yml
@@ -24,6 +24,7 @@ default-by-variant:
 - value: STM32H747xx
   variants:
   - arm/stm32h747i-disco
+  - arm/stm32h747i-disco-m4
 enabled-by: true
 format: '{}'
 links: []
-- 
2.25.1



More information about the devel mailing list