summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Gardas <karel@functional.vision>2022-05-16 13:01:39 +0200
committerKarel Gardas <karel@functional.vision>2022-05-27 20:17:32 +0200
commit124912445c7585d1ff5e9aea11210dac4fbbbd91 (patch)
treed532480ae564922adca8a6e55e9286535eb080fd
parentbsps/stm32h7: add board C files for stm32h757i-eval BSP (diff)
downloadrtems-124912445c7585d1ff5e9aea11210dac4fbbbd91.tar.bz2
bsps/stm32h7: add configuration and enable build of stm32h757i-eval BSP
This is minimalist configuration for the stm32h757i-eval BSP provided here. The only general enhancement worth mention is boot core configuration which is needed here as this is the first dual-core board supported by stm32h7 BSP family and we need to choose boot core in order to get C files compiling well. Sponsored-By: Precidata
-rw-r--r--spec/build/bsps/arm/stm32h7/bspstm32h757i-eval.yml21
-rw-r--r--spec/build/bsps/arm/stm32h7/grp.yml2
-rw-r--r--spec/build/bsps/arm/stm32h7/optbootcore.yml23
-rw-r--r--spec/build/bsps/arm/stm32h7/optlinkcmds.yml1
-rw-r--r--spec/build/bsps/arm/stm32h7/optpwrsupply.yml1
-rw-r--r--spec/build/bsps/arm/stm32h7/optusart1gpioregs.yml3
-rw-r--r--spec/build/bsps/arm/stm32h7/optvariant.yml3
7 files changed, 54 insertions, 0 deletions
diff --git a/spec/build/bsps/arm/stm32h7/bspstm32h757i-eval.yml b/spec/build/bsps/arm/stm32h7/bspstm32h757i-eval.yml
new file mode 100644
index 0000000000..4ef5690a65
--- /dev/null
+++ b/spec/build/bsps/arm/stm32h7/bspstm32h757i-eval.yml
@@ -0,0 +1,21 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+arch: arm
+bsp: stm32h757i-eval
+build-type: bsp
+cflags: []
+copyrights:
+- Copyright (C) 2022 Karel Gardas <karel@functional.vision>
+cppflags: []
+enabled-by: true
+family: stm32h7
+includes: []
+install: []
+links:
+- role: build-dependency
+ uid: grp
+source:
+- bsps/arm/stm32h7/boards/stm/stm32h757i-eval/stm32h7-config-clk.c
+- bsps/arm/stm32h7/boards/stm/stm32h757i-eval/stm32h7-config-osc.c
+- bsps/arm/stm32h7/boards/stm/stm32h757i-eval/stm32h7-config-per.c
+- bsps/arm/stm32h7/boards/stm/stm32h757i-eval/system_stm32h7xx.c
+type: build
diff --git a/spec/build/bsps/arm/stm32h7/grp.yml b/spec/build/bsps/arm/stm32h7/grp.yml
index 7cb8f698cc..401b8b415a 100644
--- a/spec/build/bsps/arm/stm32h7/grp.yml
+++ b/spec/build/bsps/arm/stm32h7/grp.yml
@@ -84,6 +84,8 @@ links:
- role: build-dependency
uid: optpwrsupply
- role: build-dependency
+ uid: optbootcore
+- role: build-dependency
uid: optusart1gpiopins
- role: build-dependency
uid: optusart1gpioregs
diff --git a/spec/build/bsps/arm/stm32h7/optbootcore.yml b/spec/build/bsps/arm/stm32h7/optbootcore.yml
new file mode 100644
index 0000000000..53ffb496cc
--- /dev/null
+++ b/spec/build/bsps/arm/stm32h7/optbootcore.yml
@@ -0,0 +1,23 @@
+actions:
+- get-string: null
+- script: |
+ cores = ["CORE_CM7", "CORE_CM4", "BOOT_CORE_DEFINE_NOT_NEEDED"]
+ if value not in cores:
+ conf.fatal("STM32H7 boot core '{}' is not one of {}".format(value, cores))
+ conf.define_cond(value, True)
+build-type: option
+default: BOOT_CORE_DEFINE_NOT_NEEDED
+default-by-variant:
+- value: CORE_CM7
+ variants:
+ - arm/stm32h757i-eval
+enabled-by: true
+format: '{}'
+links: []
+name: STM32H7_BOOT_CORE
+description: |
+ Select the boot core. Possible values are CORE_CM7 and CORE_CM4
+type: build
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+copyrights:
+- Copyright (C) 2022 Karel Gardas <karel@functional.vision>
diff --git a/spec/build/bsps/arm/stm32h7/optlinkcmds.yml b/spec/build/bsps/arm/stm32h7/optlinkcmds.yml
index 18a1983f63..a7281addd8 100644
--- a/spec/build/bsps/arm/stm32h7/optlinkcmds.yml
+++ b/spec/build/bsps/arm/stm32h7/optlinkcmds.yml
@@ -7,6 +7,7 @@ default-by-variant:
- value: linkcmds.flash
variants:
- arm/stm32h7b3i-dk
+ - arm/stm32h757i-eval
enabled-by: true
format: '{}'
links: []
diff --git a/spec/build/bsps/arm/stm32h7/optpwrsupply.yml b/spec/build/bsps/arm/stm32h7/optpwrsupply.yml
index d7eeb63906..76888fc1ca 100644
--- a/spec/build/bsps/arm/stm32h7/optpwrsupply.yml
+++ b/spec/build/bsps/arm/stm32h7/optpwrsupply.yml
@@ -7,6 +7,7 @@ default-by-variant:
- value: PWR_DIRECT_SMPS_SUPPLY
variants:
- arm/stm32h7b3i-dk
+ - arm/stm32h757i-eval
enabled-by: true
format: '{}'
links: []
diff --git a/spec/build/bsps/arm/stm32h7/optusart1gpioregs.yml b/spec/build/bsps/arm/stm32h7/optusart1gpioregs.yml
index 46d10616bb..e389efe6a9 100644
--- a/spec/build/bsps/arm/stm32h7/optusart1gpioregs.yml
+++ b/spec/build/bsps/arm/stm32h7/optusart1gpioregs.yml
@@ -7,6 +7,9 @@ default-by-variant:
- value: GPIOA
variants:
- arm/stm32h7b3i-dk
+- value: GPIOB
+ variants:
+ - arm/stm32h757i-eval
enabled-by: true
format: '{}'
links: []
diff --git a/spec/build/bsps/arm/stm32h7/optvariant.yml b/spec/build/bsps/arm/stm32h7/optvariant.yml
index 5d77ece120..fd77d26f7f 100644
--- a/spec/build/bsps/arm/stm32h7/optvariant.yml
+++ b/spec/build/bsps/arm/stm32h7/optvariant.yml
@@ -17,6 +17,9 @@ default-by-variant:
- value: STM32H7B3xxQ
variants:
- arm/stm32h7b3i-dk
+- value: STM32H757xx
+ variants:
+ - arm/stm32h757i-eval
enabled-by: true
format: '{}'
links: []