From 124912445c7585d1ff5e9aea11210dac4fbbbd91 Mon Sep 17 00:00:00 2001 From: Karel Gardas Date: Mon, 16 May 2022 13:01:39 +0200 Subject: 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 --- spec/build/bsps/arm/stm32h7/bspstm32h757i-eval.yml | 21 ++++++++++++++++++++ spec/build/bsps/arm/stm32h7/grp.yml | 2 ++ spec/build/bsps/arm/stm32h7/optbootcore.yml | 23 ++++++++++++++++++++++ spec/build/bsps/arm/stm32h7/optlinkcmds.yml | 1 + spec/build/bsps/arm/stm32h7/optpwrsupply.yml | 1 + spec/build/bsps/arm/stm32h7/optusart1gpioregs.yml | 3 +++ spec/build/bsps/arm/stm32h7/optvariant.yml | 3 +++ 7 files changed, 54 insertions(+) create mode 100644 spec/build/bsps/arm/stm32h7/bspstm32h757i-eval.yml create mode 100644 spec/build/bsps/arm/stm32h7/optbootcore.yml (limited to 'spec/build/bsps/arm') 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 +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 @@ -83,6 +83,8 @@ links: uid: optprintkinstance - role: build-dependency uid: optpwrsupply +- role: build-dependency + uid: optbootcore - role: build-dependency uid: optusart1gpiopins - role: build-dependency 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 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: [] -- cgit v1.2.3